Documentation ¶
Index ¶
- type API
- func (api API) AppList() (list AppList, err error)
- func (api API) CreateActivity(config ActivityConfig) (activity Activity, err error)
- func (api API) CreateApp(name, engine string) (app AppBundle, err error)
- func (api API) EngineDetails(id string) (list EngineDetails, err error)
- func (api API) EngineList() (list EngineList, err error)
- func (api API) UserId() (nickname string, err error)
- type Activity
- type ActivityConfig
- type Alias
- type AliasesList
- type AppBundle
- func (app *AppBundle) AliasDetail(alias string) (details Alias, err error)
- func (app AppBundle) Aliases() (list AliasesList, err error)
- func (app AppBundle) CreateAlias(alias string, version uint) (result Alias, err error)
- func (app AppBundle) CreateVersion(engine string) (result AppBundle, err error)
- func (app *AppBundle) Delete() (err error)
- func (app AppBundle) DeleteAlias(alias string) (err error)
- func (app AppBundle) DeleteVersion(version uint) (err error)
- func (app *AppBundle) Details(alias string) (details AppDetails, err error)
- func (app AppBundle) ModifyAlias(alias string, version uint) (result Alias, err error)
- func (app AppBundle) Upload(data []byte) (err error)
- func (app *AppBundle) VersionDetails(version uint) (details AppData, err error)
- func (app AppBundle) Versions() (list VersionList, err error)
- type AppData
- type AppDetails
- type AppList
- type AppParameters
- type AppUploadError
- type CreateAppRequest
- type EngineDetails
- type EngineList
- type FormData
- type InfoList
- type Param
- type Setting
- type VersionList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Authenticator oauth.ForgeAuthenticator DesignAutomationPath string UploadAppURL string }
API struct holds all paths necessary to access Design Automation API
func NewAPI ¶ added in v0.2.0
func NewAPI(authenticator oauth.ForgeAuthenticator) API
NewAPI returns a DesignAutomation API client with default configurations
func (API) CreateActivity ¶
func (api API) CreateActivity(config ActivityConfig) (activity Activity, err error)
CreateActivity creates an activity given an app
name - should be unique and will be the appID engine - engineId to be used by this app (check EngineList)
func (API) CreateApp ¶
CreateApp creates an app with given name and using specified engine
name - should be unique and will be the appID engine - engineId to be used by this app (check EngineList)
func (API) EngineDetails ¶
func (api API) EngineDetails(id string) (list EngineDetails, err error)
EngineDetails gives details on an engine providing it's id.
func (API) EngineList ¶
func (api API) EngineList() (list EngineList, err error)
EngineList lists all available Engines.
type Activity ¶
type Activity struct { ActivityConfig // contains filtered or unexported fields }
func (Activity) CreateAlias ¶
CreateAlias creates a new alias for this Activity.
type ActivityConfig ¶
type AliasesList ¶
type AppBundle ¶
type AppBundle struct { Parameters AppParameters `json:"uploadParameters"` AppData // contains filtered or unexported fields }
func (*AppBundle) AliasDetail ¶
AliasDetail gets the details on given alias
func (AppBundle) Aliases ¶
func (app AppBundle) Aliases() (list AliasesList, err error)
Aliases lists all aliases for the specified AppBundle.
func (AppBundle) CreateAlias ¶
CreateAlias creates a new alias for this AppBundle.
Limit: 1. Number of aliases (LimitAliases).
func (AppBundle) CreateVersion ¶
func (AppBundle) DeleteAlias ¶
DeleteAlias the alias for this AppBundle.
func (AppBundle) DeleteVersion ¶
func (*AppBundle) Details ¶
func (app *AppBundle) Details(alias string) (details AppDetails, err error)
Details gets the details of the specified AppBundle, providing an alias
func (AppBundle) ModifyAlias ¶
ModifyAlias will switch the given alias to another existing version
func (*AppBundle) VersionDetails ¶
func (AppBundle) Versions ¶
func (app AppBundle) Versions() (list VersionList, err error)
Versions lists all aliases for the specified AppBundle.
type AppDetails ¶
type AppParameters ¶
type AppUploadError ¶
type CreateAppRequest ¶
type EngineDetails ¶
type EngineList ¶
type EngineList struct {
InfoList
}
type FormData ¶
type FormData struct { Key string `json:"key"` ContentType string `json:"content-type"` Policy string `json:"policy"` Status string `json:"success_action_status"` Redirect string `json:"success_action_redirect"` Signature string `json:"x-amz-signature"` Credential string `json:"x-amz-credential"` Algorithm string `json:"x-amz-algorithm"` Date string `json:"x-amz-date"` Encryption string `json:"x-amz-server-side-encryption"` Token string `json:"x-amz-security-token"` }