Documentation ¶
Index ¶
- Variables
- type Client
- type CloudAccounts
- type CloudAccountsInterface
- type Collection
- func (c *Collection) Create(item model.Model) error
- func (c *Collection) Delete(id interface{}, item model.Model) error
- func (c *Collection) Get(id interface{}, item model.Model) error
- func (c *Collection) GetWithIncludes(id interface{}, item model.Model, includes []string) error
- func (c *Collection) List(list model.List) error
- func (c *Collection) Update(id interface{}, item model.Model) error
- type CollectionInterface
- type EntrypointListeners
- type EntrypointListenersInterface
- type Entrypoints
- type EntrypointsInterface
- type KubeResources
- type KubeResourcesInterface
- type Kubes
- type KubesInterface
- type Nodes
- type NodesInterface
- type Sessions
- type SessionsInterface
- type Users
- type UsersInterface
- type Volumes
- type VolumesInterface
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 Volumes VolumesInterface Entrypoints EntrypointsInterface EntrypointListeners EntrypointListenersInterface Nodes NodesInterface // contains filtered or unexported fields }
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) GetWithIncludes ¶
func (c *Collection) GetWithIncludes(id interface{}, item model.Model, includes []string) 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 EntrypointListeners ¶ added in v0.11.0
type EntrypointListeners struct {
Collection
}
type EntrypointListenersInterface ¶ added in v0.11.2
type EntrypointListenersInterface interface { CollectionInterface }
type Entrypoints ¶
type Entrypoints struct {
Collection
}
type EntrypointsInterface ¶ added in v0.11.2
type EntrypointsInterface 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
}
type KubesInterface ¶ added in v0.11.2
type KubesInterface 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
}
type UsersInterface ¶ added in v0.11.2
type UsersInterface interface { CollectionInterface RegenerateAPIToken(interface{}, *model.User) error }
type Volumes ¶
type Volumes struct {
Collection
}
type VolumesInterface ¶ added in v0.11.2
type VolumesInterface interface { CollectionInterface }
Click to show internal directories.
Click to hide internal directories.