Documentation ¶
Overview ¶
Package application provides an Application type and pertinent methods for it.
Index ¶
- func List() (*http.Response, string, []error)
- type Application
- func (a *Application) Create() (*Application, *http.Response, []error)
- func (a *Application) Delete() (*Application, *http.Response, []error)
- func (a *Application) Deploy() (*Application, *http.Response, []error)
- func (a *Application) Patch(patchedApplication *Application) (*Application, *http.Response, []error)
- func (a *Application) Show() (*Application, *http.Response, []error)
- type Certificates
- type Location
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct { Addresses []string `json:"addresses,omitempty"` CreatedAt string `json:"created_at,omitempty"` CurrentDeployments map[string]string `json:"current_deployments,omitempty"` DeploymentToken string `json:"deployment_token,omitempty"` Environment map[string]string `json:"environment,omitempty"` Hash string `json:"hash,omitempty"` ImageURL string `json:"image_url"` Location Location `json:"location"` Metadata map[string]interface{} `json:"metadata,omitempty"` Name string `json:"name"` OwnerUUID string `json:"owner_uuid,omitempty"` Ports []string `json:"ports,omitempty"` Rules map[string]int `json:"rules,omitempty"` SSLPorts []string `json:"ssl_ports,omitempty"` Status string `json:"status,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` URL string `json:"url,omitempty"` UUID string `json:"uuid,omitempty"` APIVersion string `json:"api_version,omitempty"` Certificates Certificates `json:"certificates,omitempty"` }
Application type represents an Application in Kumoru.
func (*Application) Create ¶
func (a *Application) Create() (*Application, *http.Response, []error)
Create is a method on an Application which requests that the application be drafted in Kumoru.
func (*Application) Delete ¶
func (a *Application) Delete() (*Application, *http.Response, []error)
Delete is a method on an Application which request an Application be deleted in Kumoru.
func (*Application) Deploy ¶
func (a *Application) Deploy() (*Application, *http.Response, []error)
Deploy is method on an Application which will cause a deployment in Kumoru.
func (*Application) Patch ¶
func (a *Application) Patch(patchedApplication *Application) (*Application, *http.Response, []error)
Patch is a method on an application which will modify an existing Application.
func (*Application) Show ¶
func (a *Application) Show() (*Application, *http.Response, []error)
Show is a method on an Application which retrieves a particular Application from Kumoru.
type Certificates ¶
type Certificates struct { Certificate string `json:"certificate,omitempty"` PrivateKey string `json:"private_key,omitempty"` CertificateChain string `json:"certificate_chain,omitempty"` }
Certificates type which represents the SSL certificate to be used for an Application.
Click to show internal directories.
Click to hide internal directories.