Documentation ¶
Index ¶
- type Container
- func (c *Container) AddContainerPort(containerPort v1.ContainerPort) *Container
- func (c *Container) AddVolumeMount(volumeMount v1.VolumeMount) *Container
- func (c *Container) Args(arg []string) *Container
- func (w *Container) Build() v1.Container
- func (c *Container) Command(cmd []string) *Container
- func (c *Container) Image(image string) *Container
- func (c *Container) ImagePullPolicy(policy v1.PullPolicy) *Container
- func (c *Container) ImageRepository(imageRepository string) *Container
- func (c *Container) Name(name string) *Container
- func (c *Container) Resources(resource v1.ResourceRequirements) *Container
- type DeploymentBuilder
- func (d *DeploymentBuilder) AddLabel(labelKey string, labelValue string) *DeploymentBuilder
- func (d *DeploymentBuilder) AddVolume(volume corev1.Volume) *DeploymentBuilder
- func (d *DeploymentBuilder) Build() *v1.Deployment
- func (d *DeploymentBuilder) Container(container corev1.Container) *DeploymentBuilder
- func (d *DeploymentBuilder) Name(name string) *DeploymentBuilder
- func (d *DeploymentBuilder) Namespace(namespace string) *DeploymentBuilder
- func (d *DeploymentBuilder) NodeSelector(selector map[string]string) *DeploymentBuilder
- func (d *DeploymentBuilder) OS(os string) *DeploymentBuilder
- func (d *DeploymentBuilder) Replicas(replicas int) *DeploymentBuilder
- func (d *DeploymentBuilder) TerminationGracePeriod(tg int) *DeploymentBuilder
- type EgressRuleBuilder
- type IngressRuleBuilder
- type NetworkPolicyBuilder
- func (n *NetworkPolicyBuilder) AddEgressRule(egressRule network.NetworkPolicyEgressRule) *NetworkPolicyBuilder
- func (n *NetworkPolicyBuilder) AddIngressRule(ingressRule network.NetworkPolicyIngressRule) *NetworkPolicyBuilder
- func (n *NetworkPolicyBuilder) Build() *network.NetworkPolicy
- func (n *NetworkPolicyBuilder) Name(name string) *NetworkPolicyBuilder
- func (n *NetworkPolicyBuilder) Namespace(namespace string) *NetworkPolicyBuilder
- func (n *NetworkPolicyBuilder) PodSelector(labelKey string, labelValue string) *NetworkPolicyBuilder
- func (n *NetworkPolicyBuilder) SetPolicyType(ingress bool, egress bool) *NetworkPolicyBuilder
- type PodBuilder
- func (p *PodBuilder) AddLabel(labelkey string, labelValue string) *PodBuilder
- func (p *PodBuilder) AddVolume(volume v1.Volume) *PodBuilder
- func (p *PodBuilder) Annotations(annotations map[string]string) *PodBuilder
- func (p *PodBuilder) Build() *v1.Pod
- func (p *PodBuilder) Container(container v1.Container) *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) OS(os string) *PodBuilder
- func (p *PodBuilder) RestartPolicy(policy v1.RestartPolicy) *PodBuilder
- func (p *PodBuilder) ServiceAccount(serviceAccountName string) *PodBuilder
- func (p *PodBuilder) TerminationGracePeriod(terminationGracePeriod int) *PodBuilder
- type 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 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) ImagePullPolicy ¶
func (c *Container) ImagePullPolicy(policy v1.PullPolicy) *Container
func (*Container) ImageRepository ¶
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 (d *DeploymentBuilder) Name(name string) *DeploymentBuilder
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 (d *DeploymentBuilder) OS(os string) *DeploymentBuilder
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 ¶
func (er *EgressRuleBuilder) Build() network.NetworkPolicyEgressRule
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 ¶
func (ir *IngressRuleBuilder) Build() network.NetworkPolicyIngressRule
type NetworkPolicyBuilder ¶
type NetworkPolicyBuilder struct {
// contains filtered or unexported fields
}
func NewNetworkPolicyBuilder ¶
func NewNetworkPolicyBuilder() *NetworkPolicyBuilder
func (*NetworkPolicyBuilder) AddEgressRule ¶
func (n *NetworkPolicyBuilder) AddEgressRule(egressRule network.NetworkPolicyEgressRule) *NetworkPolicyBuilder
func (*NetworkPolicyBuilder) AddIngressRule ¶
func (n *NetworkPolicyBuilder) AddIngressRule(ingressRule network.NetworkPolicyIngressRule) *NetworkPolicyBuilder
func (*NetworkPolicyBuilder) Build ¶
func (n *NetworkPolicyBuilder) Build() *network.NetworkPolicy
func (*NetworkPolicyBuilder) Name ¶
func (n *NetworkPolicyBuilder) Name(name string) *NetworkPolicyBuilder
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
Click to show internal directories.
Click to hide internal directories.