Documentation ¶
Index ¶
- Variables
- type App
- type AppCollection
- func (c *AppCollection) Create(m *App) (*AppResource, error)
- func (c *AppCollection) Get(name common.ID) (*AppResource, error)
- func (c *AppCollection) List() (*AppList, error)
- func (c *AppCollection) New(m *App) *AppResource
- func (c *AppCollection) Update(name common.ID, m *App) (*AppResource, error)
- type AppList
- type AppResource
- type Client
- func (c *Client) Apps() *AppCollection
- func (c *Client) Delete(path string) error
- func (c *Client) Entrypoints() *EntrypointCollection
- func (c *Client) Get(path string, out interface{}) error
- func (c *Client) Patch(path string, in interface{}, out interface{}) error
- func (c *Client) Post(path string, in interface{}, out interface{}) error
- func (c *Client) Put(path string, in interface{}, out interface{}) error
- type Component
- type ComponentCollection
- func (c *ComponentCollection) Create(m *Component) (*ComponentResource, error)
- func (c *ComponentCollection) Get(name common.ID) (*ComponentResource, error)
- func (c *ComponentCollection) List() (*ComponentList, error)
- func (c *ComponentCollection) New(m *Component) *ComponentResource
- func (c *ComponentCollection) Update(name common.ID, m *Component) (*ComponentResource, error)
- type ComponentList
- type ComponentResource
- func (r *ComponentResource) CurrentRelease() (*ReleaseResource, error)
- func (r *ComponentResource) Delete() error
- func (r *ComponentResource) Deploy() error
- func (r *ComponentResource) Releases() *ReleaseCollection
- func (r *ComponentResource) Save() (*ComponentResource, error)
- func (r *ComponentResource) TargetRelease() (*ReleaseResource, error)
- type Entrypoint
- type EntrypointCollection
- type EntrypointList
- type EntrypointResource
- type Instance
- type InstanceCollection
- type InstanceList
- type InstanceResource
- type Release
- type ReleaseCollection
- func (c *ReleaseCollection) Create(m *Release) (*ReleaseResource, error)
- func (c *ReleaseCollection) Get(timestamp common.ID) (*ReleaseResource, error)
- func (c *ReleaseCollection) List() (*ReleaseList, error)
- func (c *ReleaseCollection) MergeCreate(m *Release) (*ReleaseResource, error)
- func (c *ReleaseCollection) New(m *Release) *ReleaseResource
- func (c *ReleaseCollection) Update(timestamp common.ID, m *Release) (*ReleaseResource, error)
- type ReleaseList
- type ReleaseResource
Constants ¶
This section is empty.
Variables ¶
var Log *logger
Functions ¶
This section is empty.
Types ¶
type AppCollection ¶
type AppCollection struct {
// contains filtered or unexported fields
}
func (*AppCollection) Create ¶
func (c *AppCollection) Create(m *App) (*AppResource, error)
func (*AppCollection) Get ¶
func (c *AppCollection) Get(name common.ID) (*AppResource, error)
func (*AppCollection) List ¶
func (c *AppCollection) List() (*AppList, error)
func (*AppCollection) New ¶
func (c *AppCollection) New(m *App) *AppResource
Collection-level ==============================================================================
func (*AppCollection) Update ¶ added in v0.4.0
func (c *AppCollection) Update(name common.ID, m *App) (*AppResource, error)
type AppList ¶
type AppList struct {
Items []*AppResource
}
type AppResource ¶
type AppResource struct { *App // contains filtered or unexported fields }
func (*AppResource) Delete ¶
func (r *AppResource) Delete() error
func (*AppResource) Save ¶ added in v0.4.0
func (r *AppResource) Save() (*AppResource, error)
Resource-level ==============================================================================
type Client ¶
type Client struct { // Host string Username string Password string // contains filtered or unexported fields }
func (*Client) Apps ¶
func (c *Client) Apps() *AppCollection
Resources ==============================================================================
func (*Client) Entrypoints ¶ added in v0.3.3
func (c *Client) Entrypoints() *EntrypointCollection
func (*Client) Get ¶
Request methods ==============================================================================
type ComponentCollection ¶
type ComponentCollection struct { App *AppResource // contains filtered or unexported fields }
func (*ComponentCollection) Create ¶
func (c *ComponentCollection) Create(m *Component) (*ComponentResource, error)
func (*ComponentCollection) Get ¶
func (c *ComponentCollection) Get(name common.ID) (*ComponentResource, error)
func (*ComponentCollection) List ¶
func (c *ComponentCollection) List() (*ComponentList, error)
func (*ComponentCollection) New ¶
func (c *ComponentCollection) New(m *Component) *ComponentResource
Collection-level ==============================================================================
func (*ComponentCollection) Update ¶ added in v0.4.0
func (c *ComponentCollection) Update(name common.ID, m *Component) (*ComponentResource, error)
type ComponentList ¶
type ComponentList struct {
Items []*ComponentResource
}
type ComponentResource ¶
type ComponentResource struct { *Component // contains filtered or unexported fields }
func (*ComponentResource) CurrentRelease ¶
func (r *ComponentResource) CurrentRelease() (*ReleaseResource, error)
func (*ComponentResource) Delete ¶
func (r *ComponentResource) Delete() error
func (*ComponentResource) Deploy ¶ added in v0.4.0
func (r *ComponentResource) Deploy() error
func (*ComponentResource) Releases ¶
func (r *ComponentResource) Releases() *ReleaseCollection
Relations
func (*ComponentResource) Save ¶ added in v0.4.0
func (r *ComponentResource) Save() (*ComponentResource, error)
Resource-level ==============================================================================
func (*ComponentResource) TargetRelease ¶
func (r *ComponentResource) TargetRelease() (*ReleaseResource, error)
type Entrypoint ¶ added in v0.3.3
type Entrypoint common.Entrypoint
type EntrypointCollection ¶ added in v0.3.3
type EntrypointCollection struct {
// contains filtered or unexported fields
}
func (*EntrypointCollection) Create ¶ added in v0.3.3
func (c *EntrypointCollection) Create(m *Entrypoint) (*EntrypointResource, error)
func (*EntrypointCollection) Get ¶ added in v0.3.3
func (c *EntrypointCollection) Get(domain common.ID) (*EntrypointResource, error)
func (*EntrypointCollection) List ¶ added in v0.3.3
func (c *EntrypointCollection) List() (*EntrypointList, error)
func (*EntrypointCollection) New ¶ added in v0.3.3
func (c *EntrypointCollection) New(m *Entrypoint) *EntrypointResource
Collection-level ==============================================================================
type EntrypointList ¶ added in v0.3.3
type EntrypointList struct {
Items []*EntrypointResource
}
type EntrypointResource ¶ added in v0.3.3
type EntrypointResource struct { *Entrypoint // contains filtered or unexported fields }
func (*EntrypointResource) Delete ¶ added in v0.3.3
func (r *EntrypointResource) Delete() error
Resource-level ==============================================================================
type InstanceCollection ¶
type InstanceCollection struct { App *AppResource Component *ComponentResource Release *ReleaseResource // contains filtered or unexported fields }
func (*InstanceCollection) Get ¶
func (c *InstanceCollection) Get(id common.ID) (*InstanceResource, error)
func (*InstanceCollection) List ¶
func (c *InstanceCollection) List() (*InstanceList, error)
func (*InstanceCollection) New ¶
func (c *InstanceCollection) New(m *Instance) *InstanceResource
Collection-level ==============================================================================
type InstanceList ¶
type InstanceList struct {
Items []*InstanceResource
}
type InstanceResource ¶
type InstanceResource struct { *Instance // contains filtered or unexported fields }
func (*InstanceResource) Reload ¶
func (r *InstanceResource) Reload() error
func (*InstanceResource) Start ¶
func (r *InstanceResource) Start() error
func (*InstanceResource) Stop ¶
func (r *InstanceResource) Stop() error
func (*InstanceResource) WaitForStarted ¶
func (r *InstanceResource) WaitForStarted() error
func (*InstanceResource) WaitForStopped ¶
func (r *InstanceResource) WaitForStopped() error
type ReleaseCollection ¶
type ReleaseCollection struct { App *AppResource Component *ComponentResource // contains filtered or unexported fields }
func (*ReleaseCollection) Create ¶ added in v0.3.3
func (c *ReleaseCollection) Create(m *Release) (*ReleaseResource, error)
func (*ReleaseCollection) Get ¶
func (c *ReleaseCollection) Get(timestamp common.ID) (*ReleaseResource, error)
func (*ReleaseCollection) List ¶
func (c *ReleaseCollection) List() (*ReleaseList, error)
func (*ReleaseCollection) MergeCreate ¶ added in v0.4.2
func (c *ReleaseCollection) MergeCreate(m *Release) (*ReleaseResource, error)
func (*ReleaseCollection) New ¶
func (c *ReleaseCollection) New(m *Release) *ReleaseResource
Collection-level ==============================================================================
func (*ReleaseCollection) Update ¶ added in v0.4.0
func (c *ReleaseCollection) Update(timestamp common.ID, m *Release) (*ReleaseResource, error)
type ReleaseList ¶
type ReleaseList struct {
Items []*ReleaseResource
}
type ReleaseResource ¶
type ReleaseResource struct { *Release // contains filtered or unexported fields }
func (*ReleaseResource) Delete ¶
func (r *ReleaseResource) Delete() error
func (*ReleaseResource) Instances ¶
func (r *ReleaseResource) Instances() *InstanceCollection
Relations
func (*ReleaseResource) Save ¶ added in v0.4.0
func (r *ReleaseResource) Save() (*ReleaseResource, error)
Resource-level ==============================================================================