Documentation ¶
Index ¶
- func YamlToStruct(reader io.Reader, writer io.Writer) error
- type AccessMode
- type Affinity
- type Annotations
- type ApiVersion
- type Arg
- type ClusterIP
- type ClusterName
- type ClusterRole
- type ClusterRoleApplier
- type ClusterRoleBinding
- type ClusterRoleBindingApplier
- type ClusterRoleBindingConfiguration
- type ClusterRoleBindingName
- type ClusterRoleConfiguration
- type ClusterRoleName
- type Command
- type ConfigMap
- type ConfigMapApplier
- type ConfigMapConfiguration
- type ConfigMapData
- type ConfigMapKeyRef
- type ConfigMapType
- type Container
- type ContainerMount
- type ContainerMountPath
- type ContainerMountReadOnly
- type ContainerName
- type ContainerPort
- type ContainerPorts
- type ContainerResource
- type Context
- type CpuLimit
- type DaemonSet
- type DaemonSetApplier
- type DaemonSetConfiguration
- type DaemonSetSpec
- type Deployer
- type Deployment
- type DeploymentApplier
- type DeploymentConfiguration
- type DeploymentMaxSurge
- type DeploymentMaxUnavailable
- type DeploymentRevisionHistoryLimit
- type DeploymentSpec
- type DeploymentStrategy
- type DeploymentStrategyRollingUpdate
- type DeploymentStrategyType
- type Env
- type Exec
- type FieldRef
- type HttpGet
- type Image
- type ImagePullPolicy
- type Ingress
- type IngressApplier
- type IngressBackend
- type IngressBackendServiceName
- type IngressBackendServicePort
- type IngressHost
- type IngressHosts
- type IngressHttp
- type IngressPath
- type IngressPathPath
- type IngressRule
- type IngressSpec
- type IngressTLS
- type IngresseConfiguration
- type Kind
- type LabelSelector
- type Labels
- type MemoryLimit
- type Metadata
- type MetadataName
- type MountName
- type Namespace
- type NamespaceApplier
- type NamespaceConfiguration
- type NamespaceName
- type NodeAffinity
- type NodeSelector
- type NodeSelectorRequirement
- type NodeSelectorTerm
- type PodAffinity
- type PodAffinityTerm
- type PodAntiAffinity
- type PodConfigMapItem
- type PodConfigMapItemKey
- type PodConfigMapItemPath
- type PodConfigMapName
- type PodDisruptionBudget
- type PodDisruptionBudgetApplier
- type PodDisruptionBudgetConfiguration
- type PodDisruptionBudgetSpec
- type PodDnsPolicy
- type PodHostNetwork
- type PodHostPID
- type PodHostPath
- type PodNfsPath
- type PodNfsServer
- type PodSecretItem
- type PodSecretItemKey
- type PodSecretItemMode
- type PodSecretItemPath
- type PodSecretName
- type PodSpec
- type PodTemplate
- type PodVolume
- type PodVolumeConfigMap
- type PodVolumeEmptyDir
- type PodVolumeHost
- type PodVolumeNfs
- type PodVolumeSecret
- type PolicyRule
- type PortName
- type PortNumber
- type PortProtocol
- type PortTarget
- type PreferredSchedulingTerm
- type Probe
- type Replicas
- type Resources
- type Role
- type RoleApplier
- type RoleBinding
- type RoleBindingApplier
- type RoleBindingConfiguration
- type RoleBindingName
- type RoleConfiguration
- type RoleName
- type RoleRef
- type Secret
- type SecretApplier
- type SecretData
- type SecretKeyRef
- type SecretType
- type SecurityContext
- type SecurityContextCapabilities
- type Service
- type ServiceAccount
- type ServiceApplier
- type ServiceConfiguration
- type ServicePort
- type ServiceSelector
- type ServiceSpec
- type ServiceaccountApplier
- type ServiceaccountConfiguration
- type StatefulSet
- type StatefulSetApplier
- type StatefulSetConfiguration
- type StatefulSetSpec
- type Storage
- type StorageClass
- type StorageClassApplier
- type StorageClassConfiguration
- type StorageClassName
- type StorageClassParameters
- type StorageClassProvisioner
- type Subject
- type TcpSocket
- type Toleration
- type UpdateStrategy
- type ValueFrom
- type VolumeClaimTemplate
- type VolumeClaimTemplatesSpec
- type VolumeClaimTemplatesSpecResources
- type VolumeClaimTemplatesSpecResourcesRequests
- type WeightedPodAffinityTerm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessMode ¶
type AccessMode string
func (AccessMode) String ¶
func (a AccessMode) String() string
type Affinity ¶
type Affinity struct { NodeAffinity NodeAffinity `yaml:"nodeAffinity,omitempty"` PodAffinity PodAffinity `yaml:"podAffinity,omitempty"` PodAntiAffinity PodAntiAffinity `yaml:"podAntiAffinity,omitempty"` }
type Annotations ¶
type ApiVersion ¶
type ApiVersion string
type ClusterName ¶
type ClusterName string
type ClusterRole ¶
type ClusterRole struct { ApiVersion ApiVersion `yaml:"apiVersion,omitempty"` Kind Kind `yaml:"kind,omitempty"` Metadata Metadata `yaml:"metadata,omitempty"` Rules []PolicyRule `yaml:"rules,omitempty"` }
func (ClusterRole) String ¶
func (c ClusterRole) String() string
type ClusterRoleApplier ¶
type ClusterRoleApplier struct { Context Context ClusterRole ClusterRole }
type ClusterRoleBinding ¶
type ClusterRoleBinding struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Subjects []Subject `yaml:"subjects"` RoleRef RoleRef `yaml:"roleRef"` }
func (ClusterRoleBinding) String ¶
func (n ClusterRoleBinding) String() string
type ClusterRoleBindingApplier ¶
type ClusterRoleBindingApplier struct { Context Context ClusterRoleBinding ClusterRoleBinding }
func (*ClusterRoleBindingApplier) Apply ¶
func (s *ClusterRoleBindingApplier) Apply(ctx context.Context) error
type ClusterRoleBindingConfiguration ¶
type ClusterRoleBindingConfiguration struct { Context Context ClusterRoleBinding ClusterRoleBinding Requirements []world.Configuration }
func (*ClusterRoleBindingConfiguration) Applier ¶
func (c *ClusterRoleBindingConfiguration) Applier() (world.Applier, error)
func (*ClusterRoleBindingConfiguration) Children ¶
func (c *ClusterRoleBindingConfiguration) Children(ctx context.Context) (world.Configurations, error)
type ClusterRoleBindingName ¶
type ClusterRoleBindingName string
func (ClusterRoleBindingName) String ¶
func (n ClusterRoleBindingName) String() string
type ClusterRoleConfiguration ¶
type ClusterRoleConfiguration struct { Context Context ClusterRole ClusterRole Requirements []world.Configuration }
func (*ClusterRoleConfiguration) Applier ¶
func (c *ClusterRoleConfiguration) Applier() (world.Applier, error)
func (*ClusterRoleConfiguration) Children ¶
func (c *ClusterRoleConfiguration) Children(ctx context.Context) (world.Configurations, error)
type ClusterRoleName ¶
type ClusterRoleName string
func (ClusterRoleName) String ¶
func (c ClusterRoleName) String() string
type ConfigMap ¶
type ConfigMap struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Data ConfigMapData `yaml:"data"` }
type ConfigMapApplier ¶
type ConfigMapConfiguration ¶
type ConfigMapConfiguration struct { Context Context ConfigMap ConfigMap Requirements []world.Configuration }
func (*ConfigMapConfiguration) Applier ¶
func (d *ConfigMapConfiguration) Applier() (world.Applier, error)
func (*ConfigMapConfiguration) Children ¶
func (d *ConfigMapConfiguration) Children(ctx context.Context) (world.Configurations, error)
type ConfigMapData ¶
type ConfigMapKeyRef ¶
type ConfigMapType ¶
type ConfigMapType string
type Container ¶
type Container struct { Name ContainerName `yaml:"name"` Image Image `yaml:"image"` Command []Command `yaml:"command,omitempty"` Args []Arg `yaml:"args,omitempty"` Env []Env `yaml:"env,omitempty"` Ports ContainerPorts `yaml:"ports,omitempty"` Resources Resources `yaml:"resources,omitempty"` VolumeMounts []ContainerMount `yaml:"volumeMounts,omitempty"` ReadinessProbe Probe `yaml:"readinessProbe,omitempty"` LivenessProbe Probe `yaml:"livenessProbe,omitempty"` SecurityContext SecurityContext `yaml:"securityContext,omitempty"` ImagePullPolicy ImagePullPolicy `yaml:"imagePullPolicy,omitempty"` }
type ContainerMount ¶
type ContainerMount struct { Path ContainerMountPath `yaml:"mountPath"` Name MountName `yaml:"name"` ReadOnly ContainerMountReadOnly `yaml:"readOnly"` }
type ContainerMountPath ¶
type ContainerMountPath string
type ContainerMountReadOnly ¶
type ContainerMountReadOnly bool
type ContainerName ¶
type ContainerName string
type ContainerPort ¶
type ContainerPort struct { ContainerPort PortNumber `yaml:"containerPort,omitempty"` HostPort PortNumber `yaml:"hostPort,omitempty"` Name PortName `yaml:"name,omitempty"` Protocol PortProtocol `yaml:"protocol,omitempty"` }
type ContainerPorts ¶
type ContainerPorts []ContainerPort
type ContainerResource ¶
type ContainerResource struct { Cpu CpuLimit `yaml:"cpu"` Memory MemoryLimit `yaml:"memory"` }
type DaemonSet ¶
type DaemonSet struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Spec DaemonSetSpec `yaml:"spec"` }
type DaemonSetApplier ¶
type DaemonSetConfiguration ¶
type DaemonSetConfiguration struct { Context Context DaemonSet DaemonSet Requirements []world.Configuration }
func (*DaemonSetConfiguration) Applier ¶
func (d *DaemonSetConfiguration) Applier() (world.Applier, error)
func (*DaemonSetConfiguration) Children ¶
func (d *DaemonSetConfiguration) Children(ctx context.Context) (world.Configurations, error)
type DaemonSetSpec ¶
type DaemonSetSpec struct { Selector LabelSelector `yaml:"selector,omitempty"` Template PodTemplate `yaml:"template"` }
type Deployment ¶
type Deployment struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Spec DeploymentSpec `yaml:"spec"` }
func (Deployment) String ¶
func (s Deployment) String() string
type DeploymentApplier ¶
type DeploymentApplier struct { Context Context Deployment Deployment }
type DeploymentConfiguration ¶
type DeploymentConfiguration struct { Context Context Deployment Deployment Requirements []world.Configuration }
func (*DeploymentConfiguration) Applier ¶
func (d *DeploymentConfiguration) Applier() (world.Applier, error)
func (*DeploymentConfiguration) Children ¶
func (d *DeploymentConfiguration) Children(ctx context.Context) (world.Configurations, error)
type DeploymentMaxSurge ¶
type DeploymentMaxSurge int
type DeploymentMaxUnavailable ¶
type DeploymentMaxUnavailable int
type DeploymentRevisionHistoryLimit ¶
type DeploymentRevisionHistoryLimit int
type DeploymentSpec ¶
type DeploymentSpec struct { Replicas Replicas `yaml:"replicas"` RevisionHistoryLimit DeploymentRevisionHistoryLimit `yaml:"revisionHistoryLimit"` Selector LabelSelector `yaml:"selector,omitempty"` Strategy DeploymentStrategy `yaml:"strategy"` Template PodTemplate `yaml:"template"` }
type DeploymentStrategy ¶
type DeploymentStrategy struct { Type DeploymentStrategyType `yaml:"type"` RollingUpdate DeploymentStrategyRollingUpdate `yaml:"rollingUpdate,omitempty"` }
type DeploymentStrategyRollingUpdate ¶
type DeploymentStrategyRollingUpdate struct { MaxSurge DeploymentMaxSurge `yaml:"maxSurge,omitempty"` }
type DeploymentStrategyType ¶
type DeploymentStrategyType string
type HttpGet ¶
type HttpGet struct { Host string `yaml:"host,omitempty"` Path string `yaml:"path,omitempty"` Port PortNumber `yaml:"port,omitempty"` Scheme string `yaml:"scheme,omitempty"` }
type ImagePullPolicy ¶
type ImagePullPolicy string
type Ingress ¶
type Ingress struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Spec IngressSpec `yaml:"spec"` }
type IngressApplier ¶
type IngressBackend ¶
type IngressBackend struct { ServiceName IngressBackendServiceName `yaml:"serviceName"` ServicePort IngressBackendServicePort `yaml:"servicePort"` }
type IngressBackendServiceName ¶
type IngressBackendServiceName string
type IngressBackendServicePort ¶
type IngressBackendServicePort string
type IngressHost ¶
type IngressHost string
func (IngressHost) String ¶
func (i IngressHost) String() string
type IngressHosts ¶
type IngressHosts []IngressHost
type IngressHttp ¶
type IngressHttp struct {
Paths []IngressPath `yaml:"paths"`
}
type IngressPath ¶
type IngressPath struct { Backends IngressBackend `yaml:"backend"` Path IngressPathPath `yaml:"path"` }
type IngressPathPath ¶
type IngressPathPath string
type IngressRule ¶
type IngressRule struct { Host IngressHost `yaml:"host"` Http IngressHttp `yaml:"http"` }
type IngressSpec ¶
type IngressSpec struct { Rules []IngressRule `yaml:"rules"` TLS []IngressTLS `yaml:"tls,omitempty"` }
type IngressTLS ¶
type IngresseConfiguration ¶
type IngresseConfiguration struct { Context Context Ingress Ingress Requirements []world.Configuration }
func BuildIngressConfigurationWithCertManager ¶
func BuildIngressConfigurationWithCertManager( context Context, namespace NamespaceName, name MetadataName, serviceName IngressBackendServiceName, servicePort IngressBackendServicePort, path IngressPathPath, hosts ...IngressHost, ) *IngresseConfiguration
func (*IngresseConfiguration) Applier ¶
func (i *IngresseConfiguration) Applier() (world.Applier, error)
func (*IngresseConfiguration) Children ¶
func (i *IngresseConfiguration) Children(ctx context.Context) (world.Configurations, error)
type LabelSelector ¶
type LabelSelector struct {
MatchLabels Labels `yaml:"matchLabels,omitempty"`
}
type MemoryLimit ¶
type MemoryLimit string
type Metadata ¶
type Metadata struct { Namespace NamespaceName `yaml:"namespace,omitempty"` Name MetadataName `yaml:"name,omitempty"` Labels Labels `yaml:"labels,omitempty"` Annotations Annotations `yaml:"annotations,omitempty"` }
type MetadataName ¶
type MetadataName string
func (MetadataName) String ¶
func (m MetadataName) String() string
type Namespace ¶
type Namespace struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` }
type NamespaceApplier ¶
type NamespaceConfiguration ¶
type NamespaceConfiguration struct { Context Context Namespace Namespace Requirements []world.Configuration }
func (*NamespaceConfiguration) Applier ¶
func (d *NamespaceConfiguration) Applier() (world.Applier, error)
func (*NamespaceConfiguration) Children ¶
func (d *NamespaceConfiguration) Children(ctx context.Context) (world.Configurations, error)
type NamespaceName ¶
type NamespaceName string
func (NamespaceName) String ¶
func (n NamespaceName) String() string
type NodeAffinity ¶
type NodeAffinity struct { PreferredDuringSchedulingIgnoredDuringExecution []PreferredSchedulingTerm `yaml:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` RequiredDuringSchedulingIgnoredDuringExecution NodeSelector `yaml:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` }
type NodeSelector ¶
type NodeSelector struct {
NodeSelectorTerms []NodeSelectorTerm `yaml:"nodeSelectorTerms,omitempty"`
}
type NodeSelectorRequirement ¶
type NodeSelectorTerm ¶
type NodeSelectorTerm struct { MatchExpressions []NodeSelectorRequirement `yaml:"matchExpressions,omitempty"` MatchFields []NodeSelectorRequirement `yaml:"matchFields,omitempty"` }
type PodAffinity ¶
type PodAffinity struct { PreferredDuringSchedulingIgnoredDuringExecution WeightedPodAffinityTerm `yaml:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` RequiredDuringSchedulingIgnoredDuringExecution PodAffinityTerm `yaml:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` }
type PodAffinityTerm ¶
type PodAffinityTerm struct { LabelSelector LabelSelector `yaml:"labelSelector,omitempty"` Namespaces string `yaml:"namespaces,omitempty"` TopologyKey string `yaml:"topologyKey,omitempty"` }
type PodAntiAffinity ¶
type PodAntiAffinity struct { PreferredDuringSchedulingIgnoredDuringExecution WeightedPodAffinityTerm `yaml:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` RequiredDuringSchedulingIgnoredDuringExecution PodAffinityTerm `yaml:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` }
type PodConfigMapItem ¶
type PodConfigMapItem struct { Key PodConfigMapItemKey `yaml:"key"` Path PodConfigMapItemPath `yaml:"path"` }
type PodConfigMapItemKey ¶
type PodConfigMapItemKey string
type PodConfigMapItemPath ¶
type PodConfigMapItemPath string
type PodConfigMapName ¶
type PodConfigMapName string
type PodDisruptionBudget ¶
type PodDisruptionBudget struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Spec PodDisruptionBudgetSpec `yaml:"spec"` }
func (PodDisruptionBudget) String ¶
func (s PodDisruptionBudget) String() string
type PodDisruptionBudgetApplier ¶
type PodDisruptionBudgetApplier struct { Context Context PodDisruptionBudget PodDisruptionBudget }
func (*PodDisruptionBudgetApplier) Apply ¶
func (s *PodDisruptionBudgetApplier) Apply(ctx context.Context) error
type PodDisruptionBudgetConfiguration ¶
type PodDisruptionBudgetConfiguration struct { Context Context PodDisruptionBudget PodDisruptionBudget Requirements []world.Configuration }
func (*PodDisruptionBudgetConfiguration) Applier ¶
func (d *PodDisruptionBudgetConfiguration) Applier() (world.Applier, error)
func (*PodDisruptionBudgetConfiguration) Children ¶
func (d *PodDisruptionBudgetConfiguration) Children(ctx context.Context) (world.Configurations, error)
type PodDisruptionBudgetSpec ¶
type PodDisruptionBudgetSpec struct { MinAvailable int `yaml:"minAvailable,omitempty"` Selector LabelSelector `yaml:"selector"` }
type PodDnsPolicy ¶
type PodDnsPolicy string
type PodHostNetwork ¶
type PodHostNetwork bool
type PodHostPID ¶
type PodHostPID bool
type PodHostPath ¶
type PodHostPath string
func (PodHostPath) String ¶
func (p PodHostPath) String() string
type PodNfsPath ¶
type PodNfsPath string
type PodNfsServer ¶
type PodNfsServer string
type PodSecretItem ¶
type PodSecretItem struct { Key PodSecretItemKey `yaml:"key,omitempty"` Mode PodSecretItemMode `yaml:"mode,omitempty"` Path PodSecretItemPath `yaml:"path,omitempty"` }
type PodSecretItemKey ¶
type PodSecretItemKey string
type PodSecretItemMode ¶
type PodSecretItemMode int
type PodSecretItemPath ¶
type PodSecretItemPath string
type PodSecretName ¶
type PodSecretName string
type PodSpec ¶
type PodSpec struct { Tolerations []Toleration `yaml:"tolerations,omitempty"` Containers []Container `yaml:"containers,omitempty"` Volumes []PodVolume `yaml:"volumes,omitempty"` HostNetwork PodHostNetwork `yaml:"hostNetwork,omitempty"` HostPid PodHostPID `yaml:"hostPID,omitempty"` DnsPolicy PodDnsPolicy `yaml:"dnsPolicy,omitempty"` SecurityContext SecurityContext `yaml:"securityContext,omitempty"` ServiceAccountName string `yaml:"serviceAccountName,omitempty"` TerminationGracePeriodSeconds int `yaml:"terminationGracePeriodSeconds,omitempty"` Affinity Affinity `yaml:"affinity,omitempty"` }
type PodTemplate ¶
type PodVolume ¶
type PodVolume struct { Name MountName `yaml:"name"` Nfs PodVolumeNfs `yaml:"nfs,omitempty"` Host PodVolumeHost `yaml:"hostPath,omitempty"` ConfigMap PodVolumeConfigMap `yaml:"configMap,omitempty"` Secret PodVolumeSecret `yaml:"secret,omitempty"` EmptyDir *PodVolumeEmptyDir `yaml:"emptyDir,omitempty"` }
type PodVolumeConfigMap ¶
type PodVolumeConfigMap struct { Name PodConfigMapName `yaml:"name"` Items []PodConfigMapItem `yaml:"items"` }
type PodVolumeEmptyDir ¶
type PodVolumeEmptyDir struct{}
type PodVolumeHost ¶
type PodVolumeHost struct {
Path PodHostPath `yaml:"path"`
}
type PodVolumeNfs ¶
type PodVolumeNfs struct { Path PodNfsPath `yaml:"path"` Server PodNfsServer `yaml:"server"` }
type PodVolumeSecret ¶
type PodVolumeSecret struct { Name PodSecretName `yaml:"secretName"` Items []PodSecretItem `yaml:"items"` }
type PolicyRule ¶
type PortNumber ¶
type PortNumber int
func (PortNumber) Int ¶
func (p PortNumber) Int() int
func (PortNumber) String ¶
func (p PortNumber) String() string
type PortProtocol ¶
type PortProtocol string
func (PortProtocol) String ¶
func (p PortProtocol) String() string
type PortTarget ¶
type PortTarget string
type PreferredSchedulingTerm ¶
type PreferredSchedulingTerm struct { Preference NodeSelectorTerm `yaml:"preference,omitempty"` Weight int `yaml:"weight,omitempty"` }
type Probe ¶
type Probe struct { Exec Exec `yaml:"exec,omitempty"` HttpGet HttpGet `yaml:"httpGet,omitempty"` TcpSocket TcpSocket `yaml:"tcpSocket,omitempty"` InitialDelaySeconds int `yaml:"initialDelaySeconds,omitempty"` SuccessThreshold int `yaml:"successThreshold,omitempty"` FailureThreshold int `yaml:"failureThreshold,omitempty"` TimeoutSeconds int `yaml:"timeoutSeconds,omitempty"` PeriodSeconds int `yaml:"periodSeconds,omitempty"` }
type Resources ¶
type Resources struct { Limits ContainerResource `yaml:"limits"` Requests ContainerResource `yaml:"requests"` }
type Role ¶
type Role struct { ApiVersion ApiVersion `yaml:"apiVersion,omitempty"` Kind Kind `yaml:"kind,omitempty"` Metadata Metadata `yaml:"metadata,omitempty"` Rules []PolicyRule `yaml:"rules,omitempty"` }
type RoleApplier ¶
type RoleBinding ¶
type RoleBinding struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Subjects []Subject `yaml:"subjects"` RoleRef RoleRef `yaml:"roleRef"` }
func (RoleBinding) String ¶
func (r RoleBinding) String() string
type RoleBindingApplier ¶
type RoleBindingApplier struct { Context Context RoleBinding RoleBinding }
type RoleBindingConfiguration ¶
type RoleBindingConfiguration struct { Context Context RoleBinding RoleBinding Requirements []world.Configuration }
func (*RoleBindingConfiguration) Applier ¶
func (r *RoleBindingConfiguration) Applier() (world.Applier, error)
func (*RoleBindingConfiguration) Children ¶
func (r *RoleBindingConfiguration) Children(ctx context.Context) (world.Configurations, error)
type RoleBindingName ¶
type RoleBindingName string
func (RoleBindingName) String ¶
func (n RoleBindingName) String() string
type RoleConfiguration ¶
type RoleConfiguration struct { Context Context Role Role Requirements []world.Configuration }
func (*RoleConfiguration) Children ¶
func (r *RoleConfiguration) Children(ctx context.Context) (world.Configurations, error)
type Secret ¶
type Secret struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Type SecretType `yaml:"type"` Data SecretData `yaml:"data"` }
type SecretApplier ¶
type SecretData ¶
type SecretKeyRef ¶
type SecretType ¶
type SecretType string
type SecurityContext ¶
type SecurityContext struct { AllowPrivilegeEscalation bool `yaml:"allowPrivilegeEscalation,omitempty"` ReadOnlyRootFilesystem bool `yaml:"readOnlyRootFilesystem,omitempty"` Privileged bool `yaml:"privileged,omitempty"` RunAsUser int `yaml:"runAsUser,omitempty"` FsGroup int `yaml:"fsGroup,omitempty"` Capabilities SecurityContextCapabilities `yaml:"capabilities,omitempty"` }
type Service ¶
type Service struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Spec ServiceSpec `yaml:"spec"` }
type ServiceAccount ¶
type ServiceAccount struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` }
func (ServiceAccount) String ¶
func (n ServiceAccount) String() string
type ServiceApplier ¶
type ServiceConfiguration ¶
type ServiceConfiguration struct { Context Context Service Service Requirements []world.Configuration }
func (*ServiceConfiguration) Applier ¶
func (d *ServiceConfiguration) Applier() (world.Applier, error)
func (*ServiceConfiguration) Children ¶
func (d *ServiceConfiguration) Children(ctx context.Context) (world.Configurations, error)
type ServicePort ¶
type ServicePort struct { Name PortName `yaml:"name,omitempty"` Port PortNumber `yaml:"port"` Protocol PortProtocol `yaml:"protocol,omitempty"` TargetPort PortTarget `yaml:"targetPort,omitempty"` }
type ServiceSelector ¶
type ServiceSpec ¶
type ServiceSpec struct { Ports []ServicePort `yaml:"ports"` Selector ServiceSelector `yaml:"selector"` ClusterIP ClusterIP `yaml:"clusterIP,omitempty"` }
type ServiceaccountApplier ¶
type ServiceaccountApplier struct { Context Context Serviceaccount ServiceAccount }
func (*ServiceaccountApplier) Apply ¶
func (s *ServiceaccountApplier) Apply(ctx context.Context) error
type ServiceaccountConfiguration ¶
type ServiceaccountConfiguration struct { Context Context Serviceaccount ServiceAccount Requirements []world.Configuration }
func (*ServiceaccountConfiguration) Applier ¶
func (d *ServiceaccountConfiguration) Applier() (world.Applier, error)
func (*ServiceaccountConfiguration) Children ¶
func (d *ServiceaccountConfiguration) Children(ctx context.Context) (world.Configurations, error)
type StatefulSet ¶
type StatefulSet struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Spec StatefulSetSpec `yaml:"spec"` }
func (StatefulSet) String ¶
func (s StatefulSet) String() string
type StatefulSetApplier ¶
type StatefulSetApplier struct { Context Context StatefulSet StatefulSet }
type StatefulSetConfiguration ¶
type StatefulSetConfiguration struct { Context Context Requirements []world.Configuration StatefulSet StatefulSet }
func (*StatefulSetConfiguration) Applier ¶
func (n *StatefulSetConfiguration) Applier() (world.Applier, error)
func (*StatefulSetConfiguration) Children ¶
func (n *StatefulSetConfiguration) Children(ctx context.Context) (world.Configurations, error)
type StatefulSetSpec ¶
type StatefulSetSpec struct { ServiceName MetadataName `yaml:"serviceName"` Replicas Replicas `yaml:"replicas"` Selector LabelSelector `yaml:"selector,omitempty"` Template PodTemplate `yaml:"template"` VolumeClaimTemplates []VolumeClaimTemplate `yaml:"volumeClaimTemplates,omitempty"` UpdateStrategy UpdateStrategy `yaml:"updateStrategy,omitempty"` }
type StorageClass ¶
type StorageClass struct { ApiVersion ApiVersion `yaml:"apiVersion"` Kind Kind `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Provisioner StorageClassProvisioner `yaml:"provisioner"` Parameters StorageClassParameters `yaml:"parameters,omitempty"` }
func (StorageClass) String ¶
func (n StorageClass) String() string
type StorageClassApplier ¶
type StorageClassApplier struct { Context Context StorageClass StorageClass }
type StorageClassConfiguration ¶
type StorageClassConfiguration struct { Context Context StorageClass StorageClass Requirements []world.Configuration }
func (*StorageClassConfiguration) Applier ¶
func (d *StorageClassConfiguration) Applier() (world.Applier, error)
func (*StorageClassConfiguration) Children ¶
func (d *StorageClassConfiguration) Children(ctx context.Context) (world.Configurations, error)
type StorageClassName ¶
type StorageClassName string
func (StorageClassName) String ¶
func (s StorageClassName) String() string
type StorageClassParameters ¶
type StorageClassProvisioner ¶
type StorageClassProvisioner string
type TcpSocket ¶
type TcpSocket struct {
Port PortNumber `yaml:"port,omitempty"`
}
type Toleration ¶
type UpdateStrategy ¶
type UpdateStrategy struct {
Type string `yaml:"type,omitempty"`
}
type ValueFrom ¶
type ValueFrom struct { SecretKeyRef SecretKeyRef `yaml:"secretKeyRef,omitempty"` FieldRef FieldRef `yaml:"fieldRef,omitempty"` ConfigMapKeyRef ConfigMapKeyRef `yaml:"configMapKeyRef,omitempty"` }
type VolumeClaimTemplate ¶
type VolumeClaimTemplate struct { Metadata Metadata `yaml:"metadata,omitempty"` Spec VolumeClaimTemplatesSpec `yaml:"spec,omitempty"` }
type VolumeClaimTemplatesSpec ¶
type VolumeClaimTemplatesSpec struct { AccessModes []AccessMode `yaml:"accessModes,omitempty"` Resources VolumeClaimTemplatesSpecResources `yaml:"resources,omitempty"` }
type VolumeClaimTemplatesSpecResources ¶
type VolumeClaimTemplatesSpecResources struct {
Requests VolumeClaimTemplatesSpecResourcesRequests `yaml:"requests,omitempty"`
}
type VolumeClaimTemplatesSpecResourcesRequests ¶
type VolumeClaimTemplatesSpecResourcesRequests struct {
Storage Storage `yaml:"storage,omitempty"`
}
type WeightedPodAffinityTerm ¶
type WeightedPodAffinityTerm struct { PodAffinityTerm PodAffinityTerm `yaml:"podAffinityTerm,omitempty"` Weight int `yaml:"weight,omitempty"` }
Source Files ¶
- annotations.go
- apiversion.go
- clusterrole.go
- clusterrolebinding.go
- configmap.go
- container.go
- context.go
- daemonset.go
- deployer.go
- deployment.go
- ingress.go
- kind.go
- label.go
- metadata.go
- namespace.go
- pod.go
- poddisruptionbudget.go
- ports.go
- role.go
- rolebinding.go
- secret.go
- service.go
- serviceaccount.go
- statefulset.go
- storageclass.go
- yaml_to_struct.go
Click to show internal directories.
Click to hide internal directories.