manifest

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 NewAgnHostContainerBuilder

func NewAgnHostContainerBuilder() *Container

func NewBusyBoxContainerBuilder

func NewBusyBoxContainerBuilder() *Container

func (*Container) AddContainerPort

func (c *Container) AddContainerPort(containerPort v1.ContainerPort) *Container

func (*Container) AddVolumeMount

func (c *Container) AddVolumeMount(volumeMount v1.VolumeMount) *Container

func (*Container) Args

func (c *Container) Args(arg []string) *Container

func (*Container) Build

func (w *Container) Build() v1.Container

func (*Container) Command

func (c *Container) Command(cmd []string) *Container

func (*Container) Image

func (c *Container) Image(image string) *Container

func (*Container) ImagePullPolicy

func (c *Container) ImagePullPolicy(policy v1.PullPolicy) *Container

func (*Container) ImageRepository

func (c *Container) ImageRepository(imageRepository string) *Container

func (*Container) Name

func (c *Container) Name(name string) *Container

func (*Container) Resources

func (c *Container) Resources(resource v1.ResourceRequirements) *Container

type DeploymentBuilder

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

func NewDefaultDeploymentBuilder

func NewDefaultDeploymentBuilder() *DeploymentBuilder

func (*DeploymentBuilder) AddLabel

func (d *DeploymentBuilder) AddLabel(labelKey string, labelValue string) *DeploymentBuilder

func (*DeploymentBuilder) AddVolume

func (d *DeploymentBuilder) AddVolume(volume corev1.Volume) *DeploymentBuilder

func (*DeploymentBuilder) Build

func (d *DeploymentBuilder) Build() *v1.Deployment

func (*DeploymentBuilder) Container

func (d *DeploymentBuilder) Container(container corev1.Container) *DeploymentBuilder

func (*DeploymentBuilder) Name

func (*DeploymentBuilder) Namespace

func (d *DeploymentBuilder) Namespace(namespace string) *DeploymentBuilder

func (*DeploymentBuilder) NodeSelector

func (d *DeploymentBuilder) NodeSelector(selector map[string]string) *DeploymentBuilder

func (*DeploymentBuilder) OS

func (*DeploymentBuilder) Replicas

func (d *DeploymentBuilder) Replicas(replicas int) *DeploymentBuilder

func (*DeploymentBuilder) TerminationGracePeriod

func (d *DeploymentBuilder) TerminationGracePeriod(tg int) *DeploymentBuilder

type EgressRuleBuilder

type EgressRuleBuilder struct {
	To   []network.NetworkPolicyPeer
	Port []network.NetworkPolicyPort
}

func NewEgressRuleBuilder

func NewEgressRuleBuilder() *EgressRuleBuilder

func (*EgressRuleBuilder) AddPeer

func (er *EgressRuleBuilder) AddPeer(nsSelector map[string]string, podSelector map[string]string, acceptCIDR string) *EgressRuleBuilder

func (*EgressRuleBuilder) AddPort

func (er *EgressRuleBuilder) AddPort(port int, protocol v1.Protocol) *EgressRuleBuilder

func (*EgressRuleBuilder) Build

type IngressRuleBuilder

type IngressRuleBuilder struct {
	From []network.NetworkPolicyPeer
	Port []network.NetworkPolicyPort
}

func NewIngressRuleBuilder

func NewIngressRuleBuilder() *IngressRuleBuilder

func (*IngressRuleBuilder) AddPeer

func (ir *IngressRuleBuilder) AddPeer(nsSelector map[string]string, podSelector map[string]string, acceptCIDR string) *IngressRuleBuilder

func (*IngressRuleBuilder) AddPort

func (ir *IngressRuleBuilder) AddPort(port int, protocol v1.Protocol) *IngressRuleBuilder

func (*IngressRuleBuilder) Build

type NetworkPolicyBuilder

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

func NewNetworkPolicyBuilder

func NewNetworkPolicyBuilder() *NetworkPolicyBuilder

func (*NetworkPolicyBuilder) AddEgressRule

func (*NetworkPolicyBuilder) AddIngressRule

func (*NetworkPolicyBuilder) Build

func (*NetworkPolicyBuilder) Name

func (*NetworkPolicyBuilder) Namespace

func (n *NetworkPolicyBuilder) Namespace(namespace string) *NetworkPolicyBuilder

func (*NetworkPolicyBuilder) PodSelector

func (n *NetworkPolicyBuilder) PodSelector(labelKey string, labelValue string) *NetworkPolicyBuilder

func (*NetworkPolicyBuilder) SetPolicyType added in v1.1.2

func (n *NetworkPolicyBuilder) SetPolicyType(ingress bool, egress bool) *NetworkPolicyBuilder

type PodBuilder

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

func NewDefaultPodBuilder

func NewDefaultPodBuilder() *PodBuilder

func (*PodBuilder) AddLabel

func (p *PodBuilder) AddLabel(labelkey string, labelValue string) *PodBuilder

func (*PodBuilder) AddVolume

func (p *PodBuilder) AddVolume(volume v1.Volume) *PodBuilder

func (*PodBuilder) Annotations

func (p *PodBuilder) Annotations(annotations map[string]string) *PodBuilder

func (*PodBuilder) Build

func (p *PodBuilder) Build() *v1.Pod

func (*PodBuilder) Container

func (p *PodBuilder) Container(container v1.Container) *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) OS

func (p *PodBuilder) OS(os string) *PodBuilder

func (*PodBuilder) RestartPolicy

func (p *PodBuilder) RestartPolicy(policy v1.RestartPolicy) *PodBuilder

func (*PodBuilder) ServiceAccount

func (p *PodBuilder) ServiceAccount(serviceAccountName string) *PodBuilder

func (*PodBuilder) TerminationGracePeriod

func (p *PodBuilder) TerminationGracePeriod(terminationGracePeriod int) *PodBuilder

type ServiceBuilder

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

func NewHTTPService

func NewHTTPService() *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

Jump to

Keyboard shortcuts

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