Documentation ¶
Index ¶
- Constants
- Variables
- type Build
- type BuildMeta
- type BuildPage
- type BuildResponse
- type Client
- func (pc *Client) CreateBuild(name, branch string) (r BuildResponse)
- func (pc *Client) CreateDeployment(environment, migrationMode, deploymentMode, release string) (r DeploymentResponse)
- func (pc *Client) GetAllBuilds() (meta []BuildMeta)
- func (pc *Client) GetBuild(code string) (meta BuildMeta)
- func (pc *Client) GetBuildLogReader(code string) io.ReadCloser
- func (pc *Client) GetCustomerProperties(environment, aspect string) (p Properties)
- func (pc *Client) GetDeployments(environment string) (r DeploymentPage)
- func (pc *Client) GetInitialPasswords(environment string) (p InitialPasswords)
- func (pc *Client) GetRunningDeployments(environment string) (r DeploymentPage)
- func (pc *Client) SaveCookieJar() error
- func (pc *Client) SetCustomerProperties(environment, aspect, filename string) (p Properties)
- type Deployment
- type DeploymentMeta
- type DeploymentPage
- type DeploymentResponse
- type InitialPasswordEntry
- type InitialPasswords
- type PageParams
- type Properties
Constants ¶
View Source
const CLOUD_APPLICATION = "commerce-cloud"
Variables ¶
View Source
var AllowedDeploymentModes = map[string]struct{}{
"ROLLING_UPDATE": {},
"RECREATE": {},
}
.../v1/deploymentmodes {"deploymentMode":["ROLLING_UPDATE","RECREATE"],"dataMigrationMode":["NONE","UPDATE","INITIALIZE"]}
View Source
var AllowedMigrationModes = map[string]struct{}{
"NONE": {},
"UPDATE": {},
"INITIALIZE": {},
}
View Source
var PORTAL, _ = url.Parse("https://portal.commerce.ondemand.com/")
Functions ¶
This section is empty.
Types ¶
type Build ¶
type BuildResponse ¶ added in v0.6.1
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateBuild ¶
func (pc *Client) CreateBuild(name, branch string) (r BuildResponse)
func (*Client) CreateDeployment ¶
func (pc *Client) CreateDeployment(environment, migrationMode, deploymentMode, release string) (r DeploymentResponse)
func (*Client) GetAllBuilds ¶
func (*Client) GetBuildLogReader ¶
func (pc *Client) GetBuildLogReader(code string) io.ReadCloser
func (*Client) GetCustomerProperties ¶
func (pc *Client) GetCustomerProperties(environment, aspect string) (p Properties)
func (*Client) GetDeployments ¶
func (pc *Client) GetDeployments(environment string) (r DeploymentPage)
func (*Client) GetInitialPasswords ¶
func (pc *Client) GetInitialPasswords(environment string) (p InitialPasswords)
func (*Client) GetRunningDeployments ¶
func (pc *Client) GetRunningDeployments(environment string) (r DeploymentPage)
func (*Client) SaveCookieJar ¶
func (*Client) SetCustomerProperties ¶
func (pc *Client) SetCustomerProperties(environment, aspect, filename string) (p Properties)
type Deployment ¶
type Deployment struct { EnvironmentCode string `json:"environmentCode"` DatabaseUpdateMode string `json:"databaseUpdateMode"` Strategy string `json:"strategy"` BuildCode string `json:"buildCode"` }
{"environmentCode":"d8","databaseUpdateMode":"NONE","strategy":"RECREATE","customerReleaseCode":"20180912.2","applicationCode":"commerce-cloud"}
func NewDeployment ¶
func NewDeployment(environment, migrationMode, updateMode, releaseCode string) Deployment
type DeploymentMeta ¶ added in v0.6.1
type DeploymentMeta struct { Code string SubscriptionCode string CreatedBy string CreatedTimestamp string BuildCode string EnvironmentCode string DatabaseUpdateMode string Strategy string ScheduledTimestamp string DeployedTimestamp string FailedTimestamp string UndeployedTimestamp string Status string CanceledBy string CanceledTimestamp string CancellationFinishedTimestamp string CancellationFailed string Cancelation string }
type DeploymentPage ¶ added in v0.6.1
type DeploymentPage struct { Value []DeploymentMeta Count int }
type DeploymentResponse ¶ added in v0.6.1
type InitialPasswordEntry ¶
type InitialPasswords ¶
type InitialPasswords struct { Key string Value []InitialPasswordEntry }
type PageParams ¶
type Properties ¶
func NewProperties ¶
func NewProperties(key, value string) Properties
Click to show internal directories.
Click to hide internal directories.