Documentation
¶
Index ¶
- Variables
- func NewFakeClusterContext(appConfig configuration.ApplicationConfiguration, nodeSpecs []*NodeSpec) cluster_context.ClusterContext
- type FakeClusterContext
- func (c *FakeClusterContext) AddAnnotation(pod *v1.Pod, annotations map[string]string) error
- func (c *FakeClusterContext) AddClusterEventAnnotation(event *v1.Event, annotations map[string]string) error
- func (c *FakeClusterContext) AddClusterEventEventHandler(handler cache.ResourceEventHandlerFuncs)
- func (c *FakeClusterContext) AddPodEventHandler(handler cache.ResourceEventHandlerFuncs)
- func (c *FakeClusterContext) DeleteIngress(ingress *networking.Ingress) error
- func (c *FakeClusterContext) DeletePods(pods []*v1.Pod)
- func (c *FakeClusterContext) DeleteService(service *v1.Service) error
- func (c *FakeClusterContext) GetActiveBatchPods() ([]*v1.Pod, error)
- func (c *FakeClusterContext) GetAllPods() ([]*v1.Pod, error)
- func (c *FakeClusterContext) GetBatchPods() ([]*v1.Pod, error)
- func (c *FakeClusterContext) GetClusterId() string
- func (c *FakeClusterContext) GetClusterPool() string
- func (c *FakeClusterContext) GetIngresses(pod *v1.Pod) ([]*networking.Ingress, error)
- func (c *FakeClusterContext) GetNode(nodeName string) (*v1.Node, error)
- func (c *FakeClusterContext) GetNodeStatsSummary(ctx context.Context, node *v1.Node) (*v1alpha1.Summary, error)
- func (c *FakeClusterContext) GetNodes() ([]*v1.Node, error)
- func (c *FakeClusterContext) GetPodEvents(pod *v1.Pod) ([]*v1.Event, error)
- func (c *FakeClusterContext) GetServices(pod *v1.Pod) ([]*v1.Service, error)
- func (*FakeClusterContext) Stop()
- func (c *FakeClusterContext) SubmitIngress(ingress *networking.Ingress) (*networking.Ingress, error)
- func (c *FakeClusterContext) SubmitPod(pod *v1.Pod, owner string, ownerGroups []string) (*v1.Pod, error)
- func (c *FakeClusterContext) SubmitService(service *v1.Service) (*v1.Service, error)
- type NodeSpec
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewFakeClusterContext ¶
func NewFakeClusterContext(appConfig configuration.ApplicationConfiguration, nodeSpecs []*NodeSpec) cluster_context.ClusterContext
Types ¶
type FakeClusterContext ¶
type FakeClusterContext struct {
// contains filtered or unexported fields
}
func (*FakeClusterContext) AddAnnotation ¶
func (*FakeClusterContext) AddClusterEventAnnotation ¶ added in v0.3.33
func (*FakeClusterContext) AddClusterEventEventHandler ¶ added in v0.3.33
func (c *FakeClusterContext) AddClusterEventEventHandler(handler cache.ResourceEventHandlerFuncs)
func (*FakeClusterContext) AddPodEventHandler ¶
func (c *FakeClusterContext) AddPodEventHandler(handler cache.ResourceEventHandlerFuncs)
func (*FakeClusterContext) DeleteIngress ¶ added in v0.2.3
func (c *FakeClusterContext) DeleteIngress(ingress *networking.Ingress) error
func (*FakeClusterContext) DeletePods ¶
func (c *FakeClusterContext) DeletePods(pods []*v1.Pod)
func (*FakeClusterContext) DeleteService ¶ added in v0.1.34
func (c *FakeClusterContext) DeleteService(service *v1.Service) error
func (*FakeClusterContext) GetActiveBatchPods ¶
func (c *FakeClusterContext) GetActiveBatchPods() ([]*v1.Pod, error)
func (*FakeClusterContext) GetAllPods ¶
func (c *FakeClusterContext) GetAllPods() ([]*v1.Pod, error)
func (*FakeClusterContext) GetBatchPods ¶
func (c *FakeClusterContext) GetBatchPods() ([]*v1.Pod, error)
func (*FakeClusterContext) GetClusterId ¶
func (c *FakeClusterContext) GetClusterId() string
func (*FakeClusterContext) GetClusterPool ¶ added in v0.1.24
func (c *FakeClusterContext) GetClusterPool() string
func (*FakeClusterContext) GetIngresses ¶ added in v0.2.3
func (c *FakeClusterContext) GetIngresses(pod *v1.Pod) ([]*networking.Ingress, error)
func (*FakeClusterContext) GetNode ¶ added in v0.2.6
func (c *FakeClusterContext) GetNode(nodeName string) (*v1.Node, error)
func (*FakeClusterContext) GetNodeStatsSummary ¶ added in v0.1.29
func (*FakeClusterContext) GetPodEvents ¶ added in v0.1.2
func (*FakeClusterContext) GetServices ¶ added in v0.2.3
func (*FakeClusterContext) Stop ¶
func (*FakeClusterContext) Stop()
func (*FakeClusterContext) SubmitIngress ¶ added in v0.2.3
func (c *FakeClusterContext) SubmitIngress(ingress *networking.Ingress) (*networking.Ingress, error)
func (*FakeClusterContext) SubmitService ¶ added in v0.1.34
Click to show internal directories.
Click to hide internal directories.