Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) AddWhitelistForDeployment(deploymentid string, whitelist Whitelist) (*Recipe, []error)
- func (c *Client) DeleteWhitelistForDeployment(deploymentid string, whitelistID string) (*Recipe, []error)
- func (c *Client) GetRecipe(deploymentid string, recipeid string) (*Recipe, []error)
- func (c *Client) GetRecipesForDeployment(deploymentid string) (*[]Recipe, []error)
- func (c *Client) GetWhitelistForDeployment(deploymentid string) (*Whitelist, []error)
- func (c *Client) SetAPIToken(newtoken string)
- func (c *Client) SetLogger(enableLogging bool, logger io.Writer) *Client
- type Errors
- type Instance
- type Link
- type Recipe
- type Whitelist
Constants ¶
View Source
const ( BxUsSouthApiBase = "https://composebroker-dashboard-public.mybluemix.net/api/2016-07/" BxUsEastApiBase = "https://composebroker-dashboard-public.us-east.mybluemix.net/api/2016-07/" BxEuGbApiBase = "https://composebroker-dashboard-public.eu-gb.mybluemix.net/api/2016-07/" BxEuDeApiBase = "https://composebroker-dashboard-public.eu-de.mybluemix.net/api/2016-07/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // The number of times to retry a failing request if the status code is // retryable (e.g. for HTTP 429 or 500) Retries int // The interval to wait between retries. gorequest does not yet support // exponential back-off on retries RetryInterval time.Duration // RetryStatusCodes is the list of status codes to retry for RetryStatusCodes []int // contains filtered or unexported fields }
Client is a structure that holds session information for the API
func NewClientByRegion ¶ added in v0.2.0
func (*Client) AddWhitelistForDeployment ¶
func (c *Client) AddWhitelistForDeployment(deploymentid string, whitelist Whitelist) (*Recipe, []error)
GetRecipe gets status of Recipe
func (*Client) DeleteWhitelistForDeployment ¶
func (c *Client) DeleteWhitelistForDeployment(deploymentid string, whitelistID string) (*Recipe, []error)
GetRecipe gets status of Recipe
func (*Client) GetRecipesForDeployment ¶
GetRecipesForDeployment gets deployment recipe life
func (*Client) GetWhitelistForDeployment ¶
GetRecipe gets status of Recipe
func (*Client) SetAPIToken ¶
SetAPIToken overrides the API token
type Recipe ¶
type Recipe struct { ID string `json:"id"` Template string `json:"template"` Status string `json:"status"` StatusDetail string `json:"status_detail"` AccountID string `json:"account_id"` DeploymentID string `json:"deployment_id"` Name string `json:"name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Embedded struct { Recipes []Recipe `json:"recipes"` } `json:"_embedded"` }
Recipe structure
Click to show internal directories.
Click to hide internal directories.