Documentation
¶
Index ¶
- Constants
- func DefaultMap() map[string]string
- func GetExternalTrafficPolicy(n *devopsV1.Nginx) coreV1.ServiceExternalTrafficPolicyType
- func GetIngressAnnotations(n *devopsV1.Nginx) map[string]string
- func GetIngressClassName(n *devopsV1.Nginx) *string
- func GetIngressDefaultBackend(n *devopsV1.Nginx) *networkingV1.IngressBackend
- func GetIngressLabels(n *devopsV1.Nginx) map[string]string
- func GetIngressRule(n *devopsV1.Nginx, path, host string) networkingV1.IngressRule
- func GetIngressRules(n *devopsV1.Nginx) []networkingV1.IngressRule
- func GetObjectMeta(res ResourceType, n *devopsV1.Nginx, labels, annotations map[string]string) metaV1.ObjectMeta
- func GetServiceAnnotations(n *devopsV1.Nginx) map[string]string
- func GetServiceLabels(n *devopsV1.Nginx) map[string]string
- func GetServicePorts() []coreV1.ServicePort
- func GetServiceSelector(n *devopsV1.Nginx) map[string]string
- func GetServiceType(n *devopsV1.Nginx) coreV1.ServiceType
- func GetTypeMeta(res ResourceType) metaV1.TypeMeta
- func LabelsForNginx(name string) map[string]string
- func LambdaCompare(f func() bool, a, b interface{}) interface{}
- func MakeKeyForNginx(key string) string
- func MergeMap(a, b map[string]string) map[string]string
- func NewDeployment(n *devopsV1.Nginx) (*appsV1.Deployment, error)
- func NewIngress(n *devopsV1.Nginx) *networkingV1.Ingress
- func NewService(n *devopsV1.Nginx) *coreV1.Service
- type ResourceType
- type StringUtils
Constants ¶
View Source
const ( Deployment = ResourceType("deployment") Service = ResourceType("service") Ingress = ResourceType("ingress") )
Variables ¶
This section is empty.
Functions ¶
func DefaultMap ¶
func GetExternalTrafficPolicy ¶
func GetExternalTrafficPolicy(n *devopsV1.Nginx) coreV1.ServiceExternalTrafficPolicyType
func GetIngressClassName ¶
func GetIngressDefaultBackend ¶
func GetIngressDefaultBackend(n *devopsV1.Nginx) *networkingV1.IngressBackend
func GetIngressRule ¶
func GetIngressRule(n *devopsV1.Nginx, path, host string) networkingV1.IngressRule
func GetIngressRules ¶
func GetIngressRules(n *devopsV1.Nginx) []networkingV1.IngressRule
func GetObjectMeta ¶
func GetObjectMeta(res ResourceType, n *devopsV1.Nginx, labels, annotations map[string]string) metaV1.ObjectMeta
func GetServicePorts ¶
func GetServicePorts() []coreV1.ServicePort
func GetServiceType ¶
func GetServiceType(n *devopsV1.Nginx) coreV1.ServiceType
func GetTypeMeta ¶
func GetTypeMeta(res ResourceType) metaV1.TypeMeta
func LabelsForNginx ¶
func LambdaCompare ¶
func LambdaCompare(f func() bool, a, b interface{}) interface{}
func MakeKeyForNginx ¶
func NewDeployment ¶
func NewDeployment(n *devopsV1.Nginx) (*appsV1.Deployment, error)
func NewIngress ¶
func NewIngress(n *devopsV1.Nginx) *networkingV1.Ingress
Types ¶
type ResourceType ¶
type ResourceType string
type StringUtils ¶
func NewDefaultStringUtils ¶
func NewDefaultStringUtils(value, defaulted string) *StringUtils
func NewStringUtils ¶
func NewStringUtils(value string) *StringUtils
func (*StringUtils) IsEmpty ¶
func (s *StringUtils) IsEmpty() bool
func (*StringUtils) ValueOrDefault ¶
func (s *StringUtils) ValueOrDefault() string
Click to show internal directories.
Click to hide internal directories.