Giter Site home page Giter Site logo

devgraph-eyk-controller-sdk-go's Introduction

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

Usage

import deis "github.com/trilogy-group/devgraph-eyk-controller-sdk-go"
import "github.com/trilogy-group/devgraph-eyk-controller-sdk-go/apps"

Construct a deis 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 := deis.New(true, "deis.test.io", "abc123")
if err != nil {
    log.Fatal(err)
}
apps, _, err := apps.List(client, 100)
if err != nil {
    log.Fatal(err)
}

Authentication

import deis "github.com/trilogy-group/devgraph-eyk-controller-sdk-go"
import "github.com/trilogy-group/devgraph-eyk-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 := deis.New(true, "deis.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.

devgraph-eyk-controller-sdk-go's People

Contributors

mboersma avatar joshua-anderson avatar carmstrong avatar pasanchamikara avatar aledbf avatar kmala avatar notmaxx avatar johanneswuerbach avatar cryptophobia avatar helgi avatar krancour avatar higauravkohli avatar smothiki avatar xe avatar romansergey avatar developerinlondon avatar nathansamson avatar technosophos avatar zinuzoid avatar benwilber avatar shanejonas avatar rochacon avatar phspagiari avatar pmelmon avatar babarinde avatar ngpestelos avatar laurrentt avatar jgmize avatar fabiob avatar softr8 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.