Documentation ¶
Index ¶
- type Container
- func (w *Container) Args(arg []string) *Container
- func (w *Container) Build() v1.Container
- func (w *Container) CapabilitiesForSecurityContext(add []v1.Capability, drop []v1.Capability) *Container
- func (w *Container) Command(cmd []string) *Container
- func (w *Container) Image(image string) *Container
- func (w *Container) ImagePullPolicy(policy v1.PullPolicy) *Container
- func (w *Container) LivenessProbe(probe *v1.Probe) *Container
- func (w *Container) Name(name string) *Container
- func (w *Container) Port(port v1.ContainerPort) *Container
- type DeploymentBuilder
- func (d *DeploymentBuilder) Build() *v1.Deployment
- func (d *DeploymentBuilder) Container(container corev1.Container) *DeploymentBuilder
- func (d *DeploymentBuilder) HostNetwork(hostNetwork bool) *DeploymentBuilder
- func (d *DeploymentBuilder) Labels(labels map[string]string) *DeploymentBuilder
- func (d *DeploymentBuilder) MountVolume(volume []corev1.Volume, volumeMount []corev1.VolumeMount) *DeploymentBuilder
- func (d *DeploymentBuilder) Name(name string) *DeploymentBuilder
- func (d *DeploymentBuilder) Namespace(namespace string) *DeploymentBuilder
- func (d *DeploymentBuilder) NodeName(nodeName string) *DeploymentBuilder
- func (d *DeploymentBuilder) NodeSelector(labelKey string, labelVal string) *DeploymentBuilder
- func (d *DeploymentBuilder) PodLabel(labelKey string, labelValue string) *DeploymentBuilder
- func (d *DeploymentBuilder) Replicas(replicas int) *DeploymentBuilder
- func (d *DeploymentBuilder) TerminationGracePeriod(tg int) *DeploymentBuilder
- type ENIConfigBuilder
- type JobBuilder
- func (j *JobBuilder) Build() *batchV1.Job
- func (j *JobBuilder) Container(container v1.Container) *JobBuilder
- func (j *JobBuilder) HostNetwork(hostNetwork bool) *JobBuilder
- func (j *JobBuilder) Name(name string) *JobBuilder
- func (j *JobBuilder) Namespace(namespace string) *JobBuilder
- func (j *JobBuilder) NodeName(nodeName string) *JobBuilder
- func (j *JobBuilder) NodeSelector(selectorKey string, selectorVal string) *JobBuilder
- func (j *JobBuilder) Parallelism(parallelism int) *JobBuilder
- func (j *JobBuilder) PodLabels(labelKey string, labelVal string) *JobBuilder
- func (j *JobBuilder) TerminationGracePeriod(terminationGracePeriod int) *JobBuilder
- type PodBuilder
- func (p *PodBuilder) Build() *v1.Pod
- func (p *PodBuilder) Container(container v1.Container) *PodBuilder
- func (p *PodBuilder) HostNetwork(hostNetwork bool) *PodBuilder
- func (p *PodBuilder) MountVolume(volume []v1.Volume, volumeMount []v1.VolumeMount) *PodBuilder
- func (p *PodBuilder) Name(name string) *PodBuilder
- func (p *PodBuilder) Namespace(namespace string) *PodBuilder
- func (p *PodBuilder) NodeName(nodeName string) *PodBuilder
- func (p *PodBuilder) NodeSelector(nodeLabelKey string, nodeLabelVal string) *PodBuilder
- func (p *PodBuilder) PodLabel(labelKey string, labelVal string) *PodBuilder
- func (p *PodBuilder) RestartPolicy(policy v1.RestartPolicy) *PodBuilder
- func (p *PodBuilder) TerminationGracePeriod(period int) *PodBuilder
- type ServiceBuilder
- func (s *ServiceBuilder) Annotations(annotations map[string]string) *ServiceBuilder
- func (s *ServiceBuilder) Build() *v1.Service
- func (s *ServiceBuilder) Name(name string) *ServiceBuilder
- func (s *ServiceBuilder) Namespace(namespace string) *ServiceBuilder
- func (s *ServiceBuilder) NodePort(nodePort int32) *ServiceBuilder
- func (s *ServiceBuilder) Port(port int32) *ServiceBuilder
- func (s *ServiceBuilder) Protocol(protocol v1.Protocol) *ServiceBuilder
- func (s *ServiceBuilder) Selector(labelKey string, labelVal string) *ServiceBuilder
- func (s *ServiceBuilder) ServiceType(serviceType v1.ServiceType) *ServiceBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewBaseContainer ¶
func NewBaseContainer() *Container
func NewBusyBoxContainerBuilder ¶
func NewBusyBoxContainerBuilder() *Container
func NewCurlContainer ¶
func NewCurlContainer() *Container
func NewNetCatAlpineContainer ¶
func NewNetCatAlpineContainer() *Container
func NewTestHelperContainer ¶
func NewTestHelperContainer() *Container
See test/agent/README.md in this repository for more details
func (*Container) CapabilitiesForSecurityContext ¶
func (w *Container) CapabilitiesForSecurityContext(add []v1.Capability, drop []v1.Capability) *Container
func (*Container) ImagePullPolicy ¶
func (w *Container) ImagePullPolicy(policy v1.PullPolicy) *Container
type DeploymentBuilder ¶
type DeploymentBuilder struct {
// contains filtered or unexported fields
}
func NewBusyBoxDeploymentBuilder ¶
func NewBusyBoxDeploymentBuilder() *DeploymentBuilder
func NewCalicoStarDeploymentBuilder ¶
func NewCalicoStarDeploymentBuilder() *DeploymentBuilder
func NewDefaultDeploymentBuilder ¶
func NewDefaultDeploymentBuilder() *DeploymentBuilder
func (*DeploymentBuilder) Build ¶
func (d *DeploymentBuilder) Build() *v1.Deployment
func (*DeploymentBuilder) Container ¶
func (d *DeploymentBuilder) Container(container corev1.Container) *DeploymentBuilder
func (*DeploymentBuilder) HostNetwork ¶
func (d *DeploymentBuilder) HostNetwork(hostNetwork bool) *DeploymentBuilder
func (*DeploymentBuilder) Labels ¶
func (d *DeploymentBuilder) Labels(labels map[string]string) *DeploymentBuilder
func (*DeploymentBuilder) MountVolume ¶
func (d *DeploymentBuilder) MountVolume(volume []corev1.Volume, volumeMount []corev1.VolumeMount) *DeploymentBuilder
func (*DeploymentBuilder) Name ¶
func (d *DeploymentBuilder) Name(name string) *DeploymentBuilder
func (*DeploymentBuilder) Namespace ¶
func (d *DeploymentBuilder) Namespace(namespace string) *DeploymentBuilder
func (*DeploymentBuilder) NodeName ¶
func (d *DeploymentBuilder) NodeName(nodeName string) *DeploymentBuilder
func (*DeploymentBuilder) NodeSelector ¶
func (d *DeploymentBuilder) NodeSelector(labelKey string, labelVal string) *DeploymentBuilder
func (*DeploymentBuilder) PodLabel ¶
func (d *DeploymentBuilder) PodLabel(labelKey string, labelValue string) *DeploymentBuilder
func (*DeploymentBuilder) Replicas ¶
func (d *DeploymentBuilder) Replicas(replicas int) *DeploymentBuilder
func (*DeploymentBuilder) TerminationGracePeriod ¶
func (d *DeploymentBuilder) TerminationGracePeriod(tg int) *DeploymentBuilder
type ENIConfigBuilder ¶
type ENIConfigBuilder struct {
// contains filtered or unexported fields
}
func NewENIConfigBuilder ¶
func NewENIConfigBuilder() *ENIConfigBuilder
func (*ENIConfigBuilder) Name ¶
func (e *ENIConfigBuilder) Name(name string) *ENIConfigBuilder
func (*ENIConfigBuilder) SecurityGroup ¶
func (e *ENIConfigBuilder) SecurityGroup(securityGroup []string) *ENIConfigBuilder
func (*ENIConfigBuilder) SubnetID ¶
func (e *ENIConfigBuilder) SubnetID(subnetID string) *ENIConfigBuilder
type JobBuilder ¶
type JobBuilder struct {
// contains filtered or unexported fields
}
func NewDefaultJobBuilder ¶
func NewDefaultJobBuilder() *JobBuilder
func (*JobBuilder) Build ¶
func (j *JobBuilder) Build() *batchV1.Job
func (*JobBuilder) Container ¶
func (j *JobBuilder) Container(container v1.Container) *JobBuilder
func (*JobBuilder) HostNetwork ¶
func (j *JobBuilder) HostNetwork(hostNetwork bool) *JobBuilder
func (*JobBuilder) Name ¶
func (j *JobBuilder) Name(name string) *JobBuilder
func (*JobBuilder) Namespace ¶
func (j *JobBuilder) Namespace(namespace string) *JobBuilder
func (*JobBuilder) NodeName ¶
func (j *JobBuilder) NodeName(nodeName string) *JobBuilder
func (*JobBuilder) NodeSelector ¶
func (j *JobBuilder) NodeSelector(selectorKey string, selectorVal string) *JobBuilder
func (*JobBuilder) Parallelism ¶
func (j *JobBuilder) Parallelism(parallelism int) *JobBuilder
func (*JobBuilder) PodLabels ¶
func (j *JobBuilder) PodLabels(labelKey string, labelVal string) *JobBuilder
func (*JobBuilder) TerminationGracePeriod ¶
func (j *JobBuilder) TerminationGracePeriod(terminationGracePeriod int) *JobBuilder
type PodBuilder ¶
type PodBuilder struct {
// contains filtered or unexported fields
}
func NewDefaultPodBuilder ¶
func NewDefaultPodBuilder() *PodBuilder
func (*PodBuilder) Build ¶
func (p *PodBuilder) Build() *v1.Pod
func (*PodBuilder) Container ¶
func (p *PodBuilder) Container(container v1.Container) *PodBuilder
func (*PodBuilder) HostNetwork ¶
func (p *PodBuilder) HostNetwork(hostNetwork bool) *PodBuilder
func (*PodBuilder) MountVolume ¶
func (p *PodBuilder) MountVolume(volume []v1.Volume, volumeMount []v1.VolumeMount) *PodBuilder
func (*PodBuilder) Name ¶
func (p *PodBuilder) Name(name string) *PodBuilder
func (*PodBuilder) Namespace ¶
func (p *PodBuilder) Namespace(namespace string) *PodBuilder
func (*PodBuilder) NodeName ¶
func (p *PodBuilder) NodeName(nodeName string) *PodBuilder
func (*PodBuilder) NodeSelector ¶
func (p *PodBuilder) NodeSelector(nodeLabelKey string, nodeLabelVal string) *PodBuilder
func (*PodBuilder) PodLabel ¶
func (p *PodBuilder) PodLabel(labelKey string, labelVal string) *PodBuilder
func (*PodBuilder) RestartPolicy ¶
func (p *PodBuilder) RestartPolicy(policy v1.RestartPolicy) *PodBuilder
func (*PodBuilder) TerminationGracePeriod ¶
func (p *PodBuilder) TerminationGracePeriod(period int) *PodBuilder
type ServiceBuilder ¶
type ServiceBuilder struct {
// contains filtered or unexported fields
}
func NewHTTPService ¶
func NewHTTPService() *ServiceBuilder
func (*ServiceBuilder) Annotations ¶
func (s *ServiceBuilder) Annotations(annotations map[string]string) *ServiceBuilder
func (*ServiceBuilder) Build ¶
func (s *ServiceBuilder) Build() *v1.Service
func (*ServiceBuilder) Name ¶
func (s *ServiceBuilder) Name(name string) *ServiceBuilder
func (*ServiceBuilder) Namespace ¶
func (s *ServiceBuilder) Namespace(namespace string) *ServiceBuilder
func (*ServiceBuilder) NodePort ¶
func (s *ServiceBuilder) NodePort(nodePort int32) *ServiceBuilder
func (*ServiceBuilder) Port ¶
func (s *ServiceBuilder) Port(port int32) *ServiceBuilder
func (*ServiceBuilder) Protocol ¶
func (s *ServiceBuilder) Protocol(protocol v1.Protocol) *ServiceBuilder
func (*ServiceBuilder) Selector ¶
func (s *ServiceBuilder) Selector(labelKey string, labelVal string) *ServiceBuilder
func (*ServiceBuilder) ServiceType ¶
func (s *ServiceBuilder) ServiceType(serviceType v1.ServiceType) *ServiceBuilder
Click to show internal directories.
Click to hide internal directories.