client

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log *logger

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL   string
	AuthType  string // token, session
	AuthToken string

	Sessions            *Sessions
	Users               *Users
	CloudAccounts       *CloudAccounts
	Kubes               *Kubes
	KubeResources       *KubeResources
	Volumes             *Volumes
	Entrypoints         *Entrypoints
	EntrypointListeners *EntrypointListeners
	Nodes               *Nodes
	// contains filtered or unexported fields
}

func New

func New(url string, authType string, authToken string, certFile string) *Client

type CloudAccounts

type CloudAccounts struct {
	Collection
}

type Collection

type Collection struct {
	// contains filtered or unexported fields
}

func (*Collection) Create

func (c *Collection) Create(item model.Model) error

func (*Collection) Delete

func (c *Collection) Delete(id interface{}, item model.Model) error

func (*Collection) Get

func (c *Collection) Get(id interface{}, item model.Model) error

func (*Collection) GetWithIncludes

func (c *Collection) GetWithIncludes(id *int64, item model.Model, includes []string) error

func (*Collection) List

func (c *Collection) List(list model.List) error

func (*Collection) Update

func (c *Collection) Update(id interface{}, item model.Model) error

type EntrypointListeners added in v0.11.0

type EntrypointListeners struct {
	Collection
}

type Entrypoints

type Entrypoints struct {
	Collection
}

type KubeResources added in v0.11.0

type KubeResources struct {
	Collection
}

func (*KubeResources) Start added in v0.11.0

func (c *KubeResources) Start(id *int64, m *model.KubeResource) error

func (*KubeResources) Stop added in v0.11.0

func (c *KubeResources) Stop(id *int64, m *model.KubeResource) error

type Kubes

type Kubes struct {
	Collection
}

type Nodes

type Nodes struct {
	Collection
}

type Sessions added in v0.9.0

type Sessions struct {
	Collection
}

type Users added in v0.9.0

type Users struct {
	Collection
}

func (*Users) RegenerateAPIToken added in v0.9.0

func (c *Users) RegenerateAPIToken(id interface{}, m *model.User) error

type Volumes

type Volumes struct {
	Collection
}

Jump to

Keyboard shortcuts

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