Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 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 {
	Version string

	BaseURL   string
	AuthType  string // token, session
	AuthToken string

	Sessions      SessionsInterface
	Users         UsersInterface
	CloudAccounts CloudAccountsInterface
	Kubes         KubesInterface
	KubeResources KubeResourcesInterface
	Nodes         NodesInterface
	LoadBalancers LoadBalancersInterface
	HelmRepos     HelmReposInterface
	HelmCharts    HelmChartsInterface
	HelmReleases  HelmReleasesInterface
	// 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 CloudAccountsInterface added in v0.11.2

type CloudAccountsInterface interface {
	CollectionInterface
}

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 interface{}, 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 CollectionInterface added in v0.11.2

type CollectionInterface interface {
	List(model.List) error
	Create(model.Model) error
	Get(interface{}, model.Model) error
	GetWithIncludes(interface{}, model.Model, []string) error
	Update(interface{}, model.Model) error
	Delete(interface{}, model.Model) error
}

We don't use this directly, but instead compose other fake collections with

type HelmCharts added in v0.14.0

type HelmCharts struct {
	Collection
}

type HelmChartsInterface added in v0.14.0

type HelmChartsInterface interface {
	CollectionInterface
}

type HelmReleases added in v0.14.0

type HelmReleases struct {
	Collection
}

type HelmReleasesInterface added in v0.14.0

type HelmReleasesInterface interface {
	CollectionInterface
}

type HelmRepos added in v0.14.0

type HelmRepos struct {
	Collection
}

type HelmReposInterface added in v0.14.0

type HelmReposInterface interface {
	CollectionInterface
}

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 KubeResourcesInterface added in v0.11.2

type KubeResourcesInterface interface {
	CollectionInterface
	Start(*int64, *model.KubeResource) error
	Stop(*int64, *model.KubeResource) error
}

type Kubes

type Kubes struct {
	Collection
}

func (*Kubes) Provision added in v0.11.4

func (c *Kubes) Provision(id *int64, m *model.Kube) error

type KubesInterface added in v0.11.2

type KubesInterface interface {
	CollectionInterface
	Provision(*int64, *model.Kube) error
}

type LoadBalancers added in v0.14.0

type LoadBalancers struct {
	Collection
}

type LoadBalancersInterface added in v0.14.0

type LoadBalancersInterface interface {
	CollectionInterface
}

type Nodes

type Nodes struct {
	Collection
}

type NodesInterface added in v0.11.2

type NodesInterface interface {
	CollectionInterface
}

type Sessions added in v0.9.0

type Sessions struct {
	Collection
}

type SessionsInterface added in v0.11.2

type SessionsInterface interface {
	CollectionInterface
}

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 UsersInterface added in v0.11.2

type UsersInterface interface {
	CollectionInterface
	RegenerateAPIToken(interface{}, *model.User) error
}

Jump to

Keyboard shortcuts

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