Documentation ¶
Index ¶
- type Action
- type DB
- func (db *DB) Count(value interface{}) error
- func (db *DB) Create(m model.Model) error
- func (db *DB) Delete(m model.Model) error
- func (db *DB) Find(out interface{}, where ...interface{}) error
- func (db *DB) First(out interface{}, where ...interface{}) error
- func (db *DB) Limit(limit interface{}) core.DBInterface
- func (db *DB) Model(value interface{}) core.DBInterface
- func (db *DB) Offset(offset interface{}) core.DBInterface
- func (db *DB) Preload(column string, conditions ...interface{}) core.DBInterface
- func (db *DB) Save(m model.Model) error
- func (db *DB) Update(attrs ...interface{}) error
- func (db *DB) Where(query interface{}, args ...interface{}) core.DBInterface
- type EntrypointListeners
- func (c *EntrypointListeners) Create(m *model.EntrypointListener) error
- func (c *EntrypointListeners) Delete(id *int64, m *model.EntrypointListener) core.ActionInterface
- func (c *EntrypointListeners) Get(id *int64, m model.Model) error
- func (c *EntrypointListeners) GetWithIncludes(id *int64, m model.Model, includes []string) error
- func (c *EntrypointListeners) Update(id *int64, oldM model.Model, m model.Model) error
- type KubeResources
- func (c *KubeResources) Create(m *model.KubeResource) error
- func (c *KubeResources) Delete(id *int64, m *model.KubeResource) core.ActionInterface
- func (c *KubeResources) Get(id *int64, m model.Model) error
- func (c *KubeResources) GetWithIncludes(id *int64, m model.Model, includes []string) error
- func (c *KubeResources) Refresh(m *model.KubeResource) error
- func (c *KubeResources) Start(id *int64, m *model.KubeResource) core.ActionInterface
- func (c *KubeResources) Stop(id *int64, m *model.KubeResource) core.ActionInterface
- func (c *KubeResources) Update(id *int64, oldM *model.KubeResource, m *model.KubeResource) error
- type KubernetesClient
- func (k *KubernetesClient) CreateResource(kind string, namespace string, objIn map[string]interface{}, ...) error
- func (k *KubernetesClient) DeleteResource(kind string, namespace string, name string) error
- func (k *KubernetesClient) EnsureNamespace(name string) error
- func (k *KubernetesClient) GetResource(kind string, namespace string, name string, out *json.RawMessage) error
- func (k *KubernetesClient) ListEvents(query string) ([]*kubernetes.Event, error)
- func (k *KubernetesClient) ListNamespaces(query string) ([]*kubernetes.Namespace, error)
- func (k *KubernetesClient) ListNodeHeapsterStats() ([]*kubernetes.HeapsterStats, error)
- func (k *KubernetesClient) ListNodes(query string) ([]*kubernetes.Node, error)
- func (k *KubernetesClient) ListPodHeapsterCPUUsageMetrics(namespace string, name string) ([]*kubernetes.HeapsterMetric, error)
- func (k *KubernetesClient) ListPodHeapsterRAMUsageMetrics(namespace string, name string) ([]*kubernetes.HeapsterMetric, error)
- func (k *KubernetesClient) ListPods(query string) ([]*kubernetes.Pod, error)
- type Nodes
- func (c *Nodes) Create(m *model.Node) error
- func (c *Nodes) Delete(id *int64, m *model.Node) core.ActionInterface
- func (c *Nodes) Get(id *int64, m model.Model) error
- func (c *Nodes) GetWithIncludes(id *int64, m model.Model, includes []string) error
- func (c *Nodes) HasPodsWithReservedResources(m *model.Node) (bool, error)
- func (c *Nodes) Update(id *int64, oldM model.Model, m model.Model) error
- type Provider
- func (p *Provider) CreateEntrypoint(m *model.Entrypoint, a *core.Action) error
- func (p *Provider) CreateEntrypointListener(m *model.EntrypointListener) error
- func (p *Provider) CreateKube(m *model.Kube, a *core.Action) error
- func (p *Provider) CreateNode(m *model.Node, a *core.Action) error
- func (p *Provider) CreateVolume(m *model.Volume, a *core.Action) error
- func (p *Provider) DeleteEntrypoint(m *model.Entrypoint) error
- func (p *Provider) DeleteEntrypointListener(m *model.EntrypointListener) error
- func (p *Provider) DeleteKube(m *model.Kube) error
- func (p *Provider) DeleteNode(m *model.Node) error
- func (p *Provider) DeleteVolume(m *model.Volume) error
- func (p *Provider) KubernetesVolumeDefinition(m *model.Volume) *kubernetes.Volume
- func (p *Provider) ResizeVolume(m *model.Volume, a *core.Action) error
- func (p *Provider) ValidateAccount(m *model.CloudAccount) error
- func (p *Provider) WaitForVolumeAvailable(m *model.Volume, a *core.Action) error
- type Provisioner
- type Sessions
- type Volumes
- func (c *Volumes) Create(m *model.Volume) error
- func (c *Volumes) Delete(id *int64, m *model.Volume) core.ActionInterface
- func (c *Volumes) Get(id *int64, m model.Model) error
- func (c *Volumes) GetWithIncludes(id *int64, m model.Model, includes []string) error
- func (c *Volumes) Resize(id *int64, m *model.Volume) core.ActionInterface
- func (c *Volumes) Update(id *int64, oldM *model.Volume, m *model.Volume) error
- func (c *Volumes) WaitForAvailable(id *int64, m *model.Volume) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { NowFn func() error AsyncFn func() error CancellableWaitForFn func(string, time.Duration, time.Duration, func() (bool, error)) error GetStatusFn func() *model.ActionStatus }
func (*Action) CancellableWaitFor ¶
func (*Action) GetStatus ¶
func (a *Action) GetStatus() *model.ActionStatus
type DB ¶
type DB struct { CreateFn func(model.Model) error SaveFn func(model.Model) error FindFn func(out interface{}, where ...interface{}) error FirstFn func(out interface{}, where ...interface{}) error DeleteFn func(m model.Model) error PreloadFn func(column string, conditions ...interface{}) core.DBInterface WhereFn func(query interface{}, args ...interface{}) core.DBInterface LimitFn func(limit interface{}) core.DBInterface OffsetFn func(offset interface{}) core.DBInterface ModelFn func(value interface{}) core.DBInterface UpdateFn func(attrs ...interface{}) error CountFn func(interface{}) error }
func (*DB) Limit ¶
func (db *DB) Limit(limit interface{}) core.DBInterface
func (*DB) Model ¶
func (db *DB) Model(value interface{}) core.DBInterface
func (*DB) Offset ¶
func (db *DB) Offset(offset interface{}) core.DBInterface
func (*DB) Preload ¶
func (db *DB) Preload(column string, conditions ...interface{}) core.DBInterface
func (*DB) Where ¶
func (db *DB) Where(query interface{}, args ...interface{}) core.DBInterface
type EntrypointListeners ¶
type EntrypointListeners struct { CreateFn func(*model.EntrypointListener) error GetFn func(*int64, model.Model) error GetWithIncludesFn func(*int64, model.Model, []string) error UpdateFn func(*int64, model.Model, model.Model) error DeleteFn func(*int64, *model.EntrypointListener) core.ActionInterface }
func (*EntrypointListeners) Create ¶
func (c *EntrypointListeners) Create(m *model.EntrypointListener) error
func (*EntrypointListeners) Delete ¶
func (c *EntrypointListeners) Delete(id *int64, m *model.EntrypointListener) core.ActionInterface
func (*EntrypointListeners) GetWithIncludes ¶
type KubeResources ¶
type KubeResources struct { CreateFn func(*model.KubeResource) error GetFn func(*int64, model.Model) error GetWithIncludesFn func(*int64, model.Model, []string) error UpdateFn func(*int64, *model.KubeResource, *model.KubeResource) error DeleteFn func(*int64, *model.KubeResource) core.ActionInterface StartFn func(*int64, *model.KubeResource) core.ActionInterface StopFn func(*int64, *model.KubeResource) core.ActionInterface RefreshFn func(*model.KubeResource) error }
func (*KubeResources) Create ¶
func (c *KubeResources) Create(m *model.KubeResource) error
func (*KubeResources) Delete ¶
func (c *KubeResources) Delete(id *int64, m *model.KubeResource) core.ActionInterface
func (*KubeResources) GetWithIncludes ¶
func (*KubeResources) Refresh ¶
func (c *KubeResources) Refresh(m *model.KubeResource) error
func (*KubeResources) Start ¶
func (c *KubeResources) Start(id *int64, m *model.KubeResource) core.ActionInterface
func (*KubeResources) Stop ¶
func (c *KubeResources) Stop(id *int64, m *model.KubeResource) core.ActionInterface
func (*KubeResources) Update ¶
func (c *KubeResources) Update(id *int64, oldM *model.KubeResource, m *model.KubeResource) error
type KubernetesClient ¶
type KubernetesClient struct { EnsureNamespaceFn func(name string) error GetResourceFn func(kind string, namespace string, name string, out *json.RawMessage) error CreateResourceFn func(kind string, namespace string, objIn map[string]interface{}, out *json.RawMessage) error DeleteResourceFn func(kind string, namespace string, name string) error ListNamespacesFn func(query string) ([]*kubernetes.Namespace, error) ListEventsFn func(query string) ([]*kubernetes.Event, error) ListNodesFn func(query string) ([]*kubernetes.Node, error) ListPodsFn func(query string) ([]*kubernetes.Pod, error) ListNodeHeapsterStatsFn func() ([]*kubernetes.HeapsterStats, error) ListPodHeapsterCPUUsageMetricsFn func(namespace string, name string) ([]*kubernetes.HeapsterMetric, error) ListPodHeapsterRAMUsageMetricsFn func(namespace string, name string) ([]*kubernetes.HeapsterMetric, error) }
func (*KubernetesClient) CreateResource ¶
func (k *KubernetesClient) CreateResource(kind string, namespace string, objIn map[string]interface{}, out *json.RawMessage) error
func (*KubernetesClient) DeleteResource ¶
func (k *KubernetesClient) DeleteResource(kind string, namespace string, name string) error
func (*KubernetesClient) EnsureNamespace ¶
func (k *KubernetesClient) EnsureNamespace(name string) error
func (*KubernetesClient) GetResource ¶
func (k *KubernetesClient) GetResource(kind string, namespace string, name string, out *json.RawMessage) error
func (*KubernetesClient) ListEvents ¶
func (k *KubernetesClient) ListEvents(query string) ([]*kubernetes.Event, error)
func (*KubernetesClient) ListNamespaces ¶
func (k *KubernetesClient) ListNamespaces(query string) ([]*kubernetes.Namespace, error)
func (*KubernetesClient) ListNodeHeapsterStats ¶
func (k *KubernetesClient) ListNodeHeapsterStats() ([]*kubernetes.HeapsterStats, error)
func (*KubernetesClient) ListNodes ¶
func (k *KubernetesClient) ListNodes(query string) ([]*kubernetes.Node, error)
func (*KubernetesClient) ListPodHeapsterCPUUsageMetrics ¶
func (k *KubernetesClient) ListPodHeapsterCPUUsageMetrics(namespace string, name string) ([]*kubernetes.HeapsterMetric, error)
func (*KubernetesClient) ListPodHeapsterRAMUsageMetrics ¶
func (k *KubernetesClient) ListPodHeapsterRAMUsageMetrics(namespace string, name string) ([]*kubernetes.HeapsterMetric, error)
func (*KubernetesClient) ListPods ¶
func (k *KubernetesClient) ListPods(query string) ([]*kubernetes.Pod, error)
type Nodes ¶ added in v0.11.2
type Nodes struct { CreateFn func(*model.Node) error GetFn func(*int64, model.Model) error GetWithIncludesFn func(*int64, model.Model, []string) error UpdateFn func(*int64, model.Model, model.Model) error DeleteFn func(*int64, *model.Node) core.ActionInterface HasPodsWithReservedResourcesFn func(*model.Node) (bool, error) }
func (*Nodes) GetWithIncludes ¶ added in v0.11.2
func (*Nodes) HasPodsWithReservedResources ¶ added in v0.11.2
type Provider ¶
type Provider struct { ValidateAccountFn func(*model.CloudAccount) error CreateKubeFn func(*model.Kube, *core.Action) error DeleteKubeFn func(*model.Kube) error CreateNodeFn func(*model.Node, *core.Action) error DeleteNodeFn func(*model.Node) error CreateVolumeFn func(*model.Volume, *core.Action) error KubernetesVolumeDefinitionFn func(*model.Volume) *kubernetes.Volume WaitForVolumeAvailableFn func(*model.Volume, *core.Action) error ResizeVolumeFn func(*model.Volume, *core.Action) error DeleteVolumeFn func(*model.Volume) error CreateEntrypointFn func(*model.Entrypoint, *core.Action) error DeleteEntrypointFn func(*model.Entrypoint) error CreateEntrypointListenerFn func(*model.EntrypointListener) error DeleteEntrypointListenerFn func(*model.EntrypointListener) error }
func (*Provider) CreateEntrypoint ¶
func (*Provider) CreateEntrypointListener ¶
func (p *Provider) CreateEntrypointListener(m *model.EntrypointListener) error
func (*Provider) CreateVolume ¶
func (*Provider) DeleteEntrypoint ¶
func (p *Provider) DeleteEntrypoint(m *model.Entrypoint) error
func (*Provider) DeleteEntrypointListener ¶
func (p *Provider) DeleteEntrypointListener(m *model.EntrypointListener) error
func (*Provider) KubernetesVolumeDefinition ¶
func (p *Provider) KubernetesVolumeDefinition(m *model.Volume) *kubernetes.Volume
func (*Provider) ResizeVolume ¶
func (*Provider) ValidateAccount ¶
func (p *Provider) ValidateAccount(m *model.CloudAccount) error
type Provisioner ¶
type Provisioner struct { ProvisionFn func(*model.KubeResource) error IsRunningFn func(*model.KubeResource) (bool, error) TeardownFn func(*model.KubeResource) error }
func (*Provisioner) IsRunning ¶
func (p *Provisioner) IsRunning(m *model.KubeResource) (bool, error)
func (*Provisioner) Provision ¶
func (p *Provisioner) Provision(m *model.KubeResource) error
func (*Provisioner) Teardown ¶
func (p *Provisioner) Teardown(m *model.KubeResource) error
type Sessions ¶ added in v0.11.2
type Volumes ¶
type Volumes struct { CreateFn func(*model.Volume) error GetFn func(*int64, model.Model) error GetWithIncludesFn func(*int64, model.Model, []string) error UpdateFn func(*int64, *model.Volume, *model.Volume) error DeleteFn func(*int64, *model.Volume) core.ActionInterface ResizeFn func(*int64, *model.Volume) core.ActionInterface WaitForAvailableFn func(*int64, *model.Volume) error }
func (*Volumes) GetWithIncludes ¶
Click to show internal directories.
Click to hide internal directories.