Skip to content

drycc/controller-sdk-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

974 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drycc Workflow is the open source fork of Drycc Workflow.
Please go here for more detail.
08/27/2018 Team Drycc blog comes online
08/20/2018 Drycc #community slack goes dark
08/10/2018 Drycc Workflow v2.19.4 fourth patch release
08/08/2018 Drycc website goes dark, then redirects to Azure Kubernetes Service
08/01/2018 Drycc Workflow v2.19.3 third patch release
07/17/2018 Drycc Workflow v2.19.2 second patch release
07/12/2018 Drycc Workflow v2.19.1 first patch release
06/29/2018 Drycc Workflow v2.19.0 first release in the open source fork of Drycc
06/16/2018 Drycc Workflow v2.19 series is announced
03/01/2018 End of Drycc Workflow maintenance: critical patches no longer merged
12/11/2017 Team Drycc slack community invites first volunteers
09/07/2017 Drycc Workflow v2.18 final release before entering maintenance mode
09/06/2017 Team Drycc slack community comes online

Controller Go SDK

Build Status codecov Go Report Card codebeat badge GoDoc

This is the Go SDK for interacting with the Drycc Controller.

Usage

import drycc "github.com/drycc/controller-sdk-go"
import "github.com/drycc/controller-sdk-go/apps"

Construct a drycc client to interact with the controller API. Then, get the first 100 apps the user has access to.

//                    Verify SSL, Controller URL, API Token
client, err := drycc.New(true, "drycc.test.io", "abc123")
if err != nil {
    log.Fatal(err)
}
apps, _, err := apps.List(client, 100)
if err != nil {
    log.Fatal(err)
}

Authentication

import drycc "github.com/drycc/controller-sdk-go"
import "github.com/drycc/controller-sdk-go/auth"

If you don't already have a token for a user, you can retrieve one with a username and password.

// Create a client with a blank token to pass to login.
client, err := drycc.New(true, "drycc.test.io", "")
if err != nil {
    log.Fatal(err)
}
token, err := auth.Login(client, "user", "password")
if err != nil {
    log.Fatal(err)
}
// Set the client to use the retrieved token
client.Token = token

For a complete usage guide to the SDK, see full package documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors