Documentation ¶
Index ¶
- func ClearOwnerReference(object interface{})
- func ClusterIP(object interface{})
- func ConfigMapFactory(base *corev1.ConfigMap, traits ...Trait) *corev1.ConfigMap
- func ContainerFactory(base *corev1.Container, traits ...Trait) *corev1.Container
- func Created(object interface{})
- func CronJobFactory(base *batchv1beta1.CronJob, traits ...Trait) *batchv1beta1.CronJob
- func Debug(obj runtime.Object, s *runtime.Scheme) string
- func Delete(object interface{})
- func DeploymentFactory(base *appsv1.Deployment, traits ...Trait) *appsv1.Deployment
- func EventFactory(base *corev1.Event, traits ...Trait) *corev1.Event
- func ExecProbe(command ...string) *corev1.Probe
- func HTTPProbe(port int, path string) *corev1.Probe
- func IPNone(object interface{})
- func IngressClassFactory(base *networkingv1.IngressClass, traits ...Trait) *networkingv1.IngressClass
- func IngressFactory(base *networkingv1.Ingress, traits ...Trait) *networkingv1.Ingress
- func IngressPathFactory(base *networkingv1.HTTPIngressPath, traits ...Trait) *networkingv1.HTTPIngressPath
- func IngressRuleFactory(base *networkingv1.IngressRule, traits ...Trait) *networkingv1.IngressRule
- func JobFactory(base *batchv1.Job, traits ...Trait) *batchv1.Job
- func LoadBalancer(object interface{})
- func MatchExpression(v ...metav1.LabelSelectorRequirement) *metav1.LabelSelector
- func MatchLabel(v map[string]string) *metav1.LabelSelector
- func NotReady(v interface{})
- func PodDisruptionBudgetFactory(base *policyv1.PodDisruptionBudget, traits ...Trait) *policyv1.PodDisruptionBudget
- func PodFactory(base *corev1.Pod, traits ...Trait) *corev1.Pod
- func PodFailed(v interface{})
- func Ready(v interface{})
- func RoleBindingFactory(base *rbacv1.RoleBinding, traits ...Trait) *rbacv1.RoleBinding
- func RoleFactory(base *rbacv1.Role, traits ...Trait) *rbacv1.Role
- func SecretFactory(base *corev1.Secret, traits ...Trait) *corev1.Secret
- func ServiceAccountFactory(base *corev1.ServiceAccount, traits ...Trait) *corev1.ServiceAccount
- func ServiceFactory(base *corev1.Service, traits ...Trait) *corev1.Service
- func TCPProbe(port int) *corev1.Probe
- func TrafficPolicyLocal(object interface{})
- type Trait
- func Annotation(k, v string) Trait
- func Args(args ...string) Trait
- func Container(c *corev1.Container) Trait
- func ControlledBy(v runtime.Object, s *runtime.Scheme) Trait
- func Controller(v string) Trait
- func Data(key string, value []byte) Trait
- func EnvFromField(k, v string) Trait
- func EnvVar(k, v string) Trait
- func Finalizer(v string) Trait
- func Host(v string) Trait
- func Image(image string, cmd []string) Trait
- func IngressClass(v *networkingv1.IngressClass) Trait
- func InitContainer(c *corev1.Container) Trait
- func Job(j *batchv1.Job) Trait
- func Label(v ...string) Trait
- func LabelMap(label map[string]string) Trait
- func Limits(lim corev1.ResourceList) Trait
- func LivenessProbe(p *corev1.Probe) Trait
- func MatchLabelSelector(label map[string]string) Trait
- func MinAvailable(v int) Trait
- func Name(v string) Trait
- func Namef(format string, a ...interface{}) Trait
- func Namespace(v string) Trait
- func Path(path string, pt networkingv1.PathType, svc *corev1.Service, port string) Trait
- func Pod(p *corev1.Pod) Trait
- func PolicyRule(apiGroups, resources, verbs []string) Trait
- func Port(name string, protocol corev1.Protocol, port int32) Trait
- func PreferredInterPodAntiAffinity(weight int32, selector *metav1.LabelSelector, key string) Trait
- func PullPolicy(p corev1.PullPolicy) Trait
- func ReadinessProbe(p *corev1.Probe) Trait
- func Reason(v string) Trait
- func Replicas(v int32) Trait
- func Requests(req corev1.ResourceList) Trait
- func RestartPolicy(policy corev1.RestartPolicy) Trait
- func Role(r *rbacv1.Role) Trait
- func Rule(rule *networkingv1.IngressRule) Trait
- func Schedule(v string) Trait
- func Selector(v ...string) Trait
- func ServiceAccount(v string) Trait
- func Subdomain(v string) Trait
- func Subject(v runtime.Object) Trait
- func TargetPort(name string, protocol corev1.Protocol, port int32, ...) Trait
- func UID() Trait
- func Volume(vol *VolumeSource) Trait
- type VolumeSource
- func NewConfigMapVolumeSource(name, path, configMapName string) *VolumeSource
- func NewEmptyDirVolumeSource(name, path string) *VolumeSource
- func NewPersistentVolumeClaimVolumeSource(name, path, pvcName string) *VolumeSource
- func NewSecretVolumeSource(name, path string, source *corev1.Secret, items ...corev1.KeyToPath) *VolumeSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearOwnerReference ¶ added in v0.13.0
func ClearOwnerReference(object interface{})
func ConfigMapFactory ¶ added in v0.13.0
func ContainerFactory ¶
func CronJobFactory ¶ added in v0.13.0
func CronJobFactory(base *batchv1beta1.CronJob, traits ...Trait) *batchv1beta1.CronJob
func DeploymentFactory ¶ added in v0.13.0
func DeploymentFactory(base *appsv1.Deployment, traits ...Trait) *appsv1.Deployment
func EventFactory ¶ added in v0.13.0
func IngressClassFactory ¶ added in v0.13.0
func IngressClassFactory(base *networkingv1.IngressClass, traits ...Trait) *networkingv1.IngressClass
func IngressFactory ¶ added in v0.13.0
func IngressFactory(base *networkingv1.Ingress, traits ...Trait) *networkingv1.Ingress
func IngressPathFactory ¶ added in v0.13.0
func IngressPathFactory(base *networkingv1.HTTPIngressPath, traits ...Trait) *networkingv1.HTTPIngressPath
func IngressRuleFactory ¶ added in v0.13.0
func IngressRuleFactory(base *networkingv1.IngressRule, traits ...Trait) *networkingv1.IngressRule
func LoadBalancer ¶ added in v0.13.0
func LoadBalancer(object interface{})
func MatchExpression ¶ added in v0.13.0
func MatchExpression(v ...metav1.LabelSelectorRequirement) *metav1.LabelSelector
func MatchLabel ¶ added in v0.13.0
func MatchLabel(v map[string]string) *metav1.LabelSelector
func NotReady ¶ added in v0.13.0
func NotReady(v interface{})
NotReady is the trait function for k8sfactory. The object is created but not ready.
func PodDisruptionBudgetFactory ¶ added in v0.13.0
func PodDisruptionBudgetFactory(base *policyv1.PodDisruptionBudget, traits ...Trait) *policyv1.PodDisruptionBudget
func RoleBindingFactory ¶ added in v0.13.0
func RoleBindingFactory(base *rbacv1.RoleBinding, traits ...Trait) *rbacv1.RoleBinding
func RoleFactory ¶ added in v0.13.0
func SecretFactory ¶ added in v0.13.0
func ServiceAccountFactory ¶ added in v0.13.0
func ServiceAccountFactory(base *corev1.ServiceAccount, traits ...Trait) *corev1.ServiceAccount
func ServiceFactory ¶ added in v0.13.0
func TrafficPolicyLocal ¶ added in v0.13.0
func TrafficPolicyLocal(object interface{})
Types ¶
type Trait ¶
type Trait func(object interface{})
func Annotation ¶
func Controller ¶ added in v0.13.0
func EnvFromField ¶ added in v0.13.0
func IngressClass ¶ added in v0.13.0
func IngressClass(v *networkingv1.IngressClass) Trait
func InitContainer ¶ added in v0.13.0
func Limits ¶ added in v0.13.0
func Limits(lim corev1.ResourceList) Trait
func LivenessProbe ¶ added in v0.13.0
func MatchLabelSelector ¶ added in v0.13.0
func MinAvailable ¶ added in v0.13.0
func PolicyRule ¶ added in v0.13.0
func PreferredInterPodAntiAffinity ¶ added in v0.13.0
func PreferredInterPodAntiAffinity(weight int32, selector *metav1.LabelSelector, key string) Trait
func PullPolicy ¶ added in v0.13.0
func PullPolicy(p corev1.PullPolicy) Trait
func ReadinessProbe ¶ added in v0.13.0
func Requests ¶ added in v0.13.0
func Requests(req corev1.ResourceList) Trait
func RestartPolicy ¶ added in v0.13.0
func RestartPolicy(policy corev1.RestartPolicy) Trait
func Rule ¶ added in v0.13.0
func Rule(rule *networkingv1.IngressRule) Trait
func ServiceAccount ¶ added in v0.13.0
func TargetPort ¶ added in v0.13.0
func Volume ¶ added in v0.13.0
func Volume(vol *VolumeSource) Trait
type VolumeSource ¶ added in v0.13.0
type VolumeSource struct { Mount corev1.VolumeMount Source corev1.Volume }
func NewConfigMapVolumeSource ¶ added in v0.13.0
func NewConfigMapVolumeSource(name, path, configMapName string) *VolumeSource
func NewEmptyDirVolumeSource ¶ added in v0.13.0
func NewEmptyDirVolumeSource(name, path string) *VolumeSource
func NewPersistentVolumeClaimVolumeSource ¶ added in v0.13.0
func NewPersistentVolumeClaimVolumeSource(name, path, pvcName string) *VolumeSource
func NewSecretVolumeSource ¶ added in v0.13.0
func (*VolumeSource) PathJoin ¶ added in v0.13.0
func (s *VolumeSource) PathJoin(elem ...string) string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.