Documentation
¶
Index ¶
- func AddServiceSecret(ctx *Context, serviceId, secretName, secretData string) error
- func CreateInstance(ctx *Context, serviceId string, token string, body map[string]interface{}) (map[string]interface{}, error)
- func GetInstance(ctx *Context, serviceId string, name string, token string) (map[string]interface{}, error)
- func GetLogsForInstance(context *Context, serviceId, name, token string) ([]string, error)
- func ListInstances(context *Context, serviceId, token string) ([]map[string]interface{}, error)
- func RemoveInstance(ctx *Context, serviceId string, name string, token string) error
- type Auth
- type Context
- func (ctx *Context) ActivateService(serviceId string) error
- func (ctx *Context) GetEnvironment() string
- func (ctx *Context) GetPersonalAccessToken() string
- func (ctx *Context) GetServiceAccessToken(serviceId string) (string, error)
- func (ctx *Context) RefreshServiceAccessToken(serviceId string) (string, error)
- type ContextConfig
- type FetchError
- type Port
- type Service
- type ServiceAccessToken
- type ServiceInstanceOption
- type ServiceMetadata
- type SubscriptionFee
- type Subscriptions
- type UnauthorizedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddServiceSecret ¶
func CreateInstance ¶
func GetInstance ¶
func GetLogsForInstance ¶
func ListInstances ¶
Types ¶
type Context ¶
func NewContext ¶
func NewContext(config *ContextConfig) (*Context, error)
func (*Context) ActivateService ¶
func (*Context) GetEnvironment ¶
func (*Context) GetPersonalAccessToken ¶
func (*Context) GetServiceAccessToken ¶
type ContextConfig ¶
type FetchError ¶
func (FetchError) Error ¶
func (e FetchError) Error() string
type Port ¶
type Service ¶
type Service struct { ServiceId string `json:"serviceId"` Metadata ServiceMetadata `json:"serviceMetadata"` ApiUrl string `json:"apiUrl"` ServiceInstanceOptions []ServiceInstanceOption `json:"serviceInstanceOptions"` OpenSourceLicense string `json:"openSourceLicense"` OpenSourceLicenseText string `json:"openSourceLicenseText"` ServiceType string `json:"serviceType"` Status string `json:"status"` }
type ServiceAccessToken ¶
type ServiceInstanceOption ¶ added in v0.0.4
type ServiceMetadata ¶ added in v0.0.4
type ServiceMetadata struct { OwnerTeamId string `json:"ownerTeamId"` CompanyName string `json:"companyName"` Title string `json:"title"` Description string `json:"description"` DocumentationUrl string `json:"documentationUrl"` RepoUrl string `json:"repoUrl"` ImagePreviewUrl string `json:"imagePreviewUrl"` InstanceNoun string `json:"instanceNoun"` IndicativePricing string `json:"indicativePricing"` SubscriptionFee SubscriptionFee `json:"subscriptionFee"` ExcludeFromFree bool `json:"excludeFromFree"` Category string `json:"category"` Keywords []string `json:"keywords"` }
type SubscriptionFee ¶ added in v0.0.4
type Subscriptions ¶
type UnauthorizedError ¶
type UnauthorizedError struct{}
func (UnauthorizedError) Error ¶
func (e UnauthorizedError) Error() string
Click to show internal directories.
Click to hide internal directories.