items

package
v1.0.0-beta7 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemInterface

type ItemInterface interface {
	GetNamespace() string
	GetName() string
}

type JobCollection

type JobCollection map[string]*JobItem

type JobItem

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

func Job

func Job(ns string, n string) *JobItem

func (*JobItem) GetName

func (i *JobItem) GetName() string

func (*JobItem) GetNamespace

func (i *JobItem) GetNamespace() string

func (*JobItem) IsComplete

func (i *JobItem) IsComplete() bool

func (*JobItem) WithComplete

func (i *JobItem) WithComplete(complete bool) *JobItem

func (*JobItem) WithCompleteFromJob

func (i *JobItem) WithCompleteFromJob(job *batchv1.Job) *JobItem

type NamespacedJobCollection

type NamespacedJobCollection map[string]JobCollection

func (NamespacedJobCollection) AreAllComplete

func (c NamespacedJobCollection) AreAllComplete() bool

func (NamespacedJobCollection) Contains

func (NamespacedJobCollection) ContainsNamespacedName

func (c NamespacedJobCollection) ContainsNamespacedName(ns string, n string) bool

func (NamespacedJobCollection) EnsureNamespace

func (c NamespacedJobCollection) EnsureNamespace(ns string)

func (NamespacedJobCollection) TotalCount

func (c NamespacedJobCollection) TotalCount() int

type NamespacedPodCollection

type NamespacedPodCollection map[string]PodCollection

func (NamespacedPodCollection) AreAllReady

func (c NamespacedPodCollection) AreAllReady() bool

func (NamespacedPodCollection) Contains

func (NamespacedPodCollection) ContainsNamespacedName

func (c NamespacedPodCollection) ContainsNamespacedName(ns string, n string) bool

func (NamespacedPodCollection) EnsureNamespace

func (c NamespacedPodCollection) EnsureNamespace(ns string)

func (NamespacedPodCollection) TotalCount

func (c NamespacedPodCollection) TotalCount() int

type NamespacedServiceCollection

type NamespacedServiceCollection map[string]ServiceCollection

func (NamespacedServiceCollection) AreAllAvailable

func (c NamespacedServiceCollection) AreAllAvailable(onlyOnePerServiceRequired bool) bool

func (NamespacedServiceCollection) Contains

func (NamespacedServiceCollection) ContainsNamespacedName

func (c NamespacedServiceCollection) ContainsNamespacedName(ns string, n string) bool

func (NamespacedServiceCollection) ContainsPod

func (NamespacedServiceCollection) DeletePod

func (NamespacedServiceCollection) EnsureNamespace

func (c NamespacedServiceCollection) EnsureNamespace(ns string)

func (NamespacedServiceCollection) GetPods

func (NamespacedServiceCollection) TotalCount

func (c NamespacedServiceCollection) TotalCount() int

type PodCollection

type PodCollection map[string]*PodItem

func (PodCollection) Contains

func (c PodCollection) Contains(i ItemInterface) bool

func (PodCollection) ContainsName

func (c PodCollection) ContainsName(n string) bool

type PodItem

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

func Pod

func Pod(ns string, n string) *PodItem

func (*PodItem) GetName

func (i *PodItem) GetName() string

func (*PodItem) GetNamespace

func (i *PodItem) GetNamespace() string

func (*PodItem) IsReady

func (i *PodItem) IsReady() bool

func (*PodItem) WithReady

func (i *PodItem) WithReady(ready bool) *PodItem

func (*PodItem) WithReadyFromPod

func (i *PodItem) WithReadyFromPod(pod *corev1.Pod) *PodItem

type ServiceCollection

type ServiceCollection map[string]*ServiceItem

func (ServiceCollection) DeletePod

func (c ServiceCollection) DeletePod(i ItemInterface)

type ServiceItem

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

func Service

func Service(ns string, n string) *ServiceItem

func (ServiceItem) DeletePod

func (c ServiceItem) DeletePod(i ItemInterface)

func (*ServiceItem) GetChildren

func (i *ServiceItem) GetChildren() *PodCollection

func (*ServiceItem) GetName

func (i *ServiceItem) GetName() string

func (*ServiceItem) GetNamespace

func (i *ServiceItem) GetNamespace() string

func (*ServiceItem) GetPod

func (i *ServiceItem) GetPod(pod ItemInterface) (*PodItem, bool)

func (*ServiceItem) IsAtLeastOneAvailable

func (i *ServiceItem) IsAtLeastOneAvailable() bool

func (*ServiceItem) IsAvailable

func (i *ServiceItem) IsAvailable() bool

func (*ServiceItem) WithChildren

func (i *ServiceItem) WithChildren(children PodCollection) *ServiceItem

Jump to

Keyboard shortcuts

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