client

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log *logger

Functions

This section is empty.

Types

type App

type App common.App

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) Components

func (r *AppResource) Components() *ComponentCollection

Relations

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 New

func New(url string, user string, pass string, verify bool) *Client

func (*Client) Apps

func (c *Client) Apps() *AppCollection

Resources ==============================================================================

func (*Client) Delete

func (c *Client) Delete(path string) error

func (*Client) Entrypoints added in v0.3.3

func (c *Client) Entrypoints() *EntrypointCollection

func (*Client) Get

func (c *Client) Get(path string, out interface{}) error

Request methods ==============================================================================

func (*Client) Patch added in v0.4.2

func (c *Client) Patch(path string, in interface{}, out interface{}) error

func (*Client) Post

func (c *Client) Post(path string, in interface{}, out interface{}) error

func (*Client) Put added in v0.4.0

func (c *Client) Put(path string, in interface{}, out interface{}) error

type Component

type Component common.Component

type ComponentCollection

type ComponentCollection struct {
	App *AppResource
	// contains filtered or unexported fields
}

func (*ComponentCollection) Create

func (*ComponentCollection) Get

func (*ComponentCollection) List

func (c *ComponentCollection) List() (*ComponentList, error)

func (*ComponentCollection) New

Collection-level ==============================================================================

func (*ComponentCollection) Update added in v0.4.0

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

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 (*EntrypointCollection) Get added in v0.3.3

func (*EntrypointCollection) List added in v0.3.3

func (*EntrypointCollection) New added in v0.3.3

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 Instance

type Instance common.Instance

type InstanceCollection

type InstanceCollection struct {
	App       *AppResource
	Component *ComponentResource
	Release   *ReleaseResource
	// contains filtered or unexported fields
}

func (*InstanceCollection) Get

func (*InstanceCollection) List

func (c *InstanceCollection) List() (*InstanceList, error)

func (*InstanceCollection) New

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 Release

type Release common.Release

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

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 ==============================================================================

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL