Documentation ¶
Index ¶
- Constants
- func NewProviderFormat(source string) formatter.Format
- func NewRegionFormat(source string) formatter.Format
- func NewZoneFormat(source string) formatter.Format
- type ProviderContext
- func (c *ProviderContext) KubeConfig() string
- func (c *ProviderContext) KubeConfigContent() string
- func (c *ProviderContext) KubeConfigName() string
- func (c *ProviderContext) KubernetesImagePullSecretName() string
- func (c *ProviderContext) KubernetesImageRegistry() string
- func (c *ProviderContext) KubernetesProvider() string
- func (c *ProviderContext) KubernetesPullSecret() string
- func (c *ProviderContext) KubernetesPullSecretName() string
- func (c *ProviderContext) KubernetesStorageClass() string
- func (c *ProviderContext) MarshalJSON() ([]byte, error)
- type RegionContext
- func (c *RegionContext) CertManagerClusterIssuer() string
- func (c *RegionContext) CertManagerIssuer() string
- func (c *RegionContext) KubeConfig() string
- func (c *RegionContext) KubeConfigContent() string
- func (c *RegionContext) KubeConfigName() string
- func (c *RegionContext) KubeDomain() string
- func (c *RegionContext) KubeNamespace() string
- func (c *RegionContext) KubePodAddressTemplate() string
- func (c *RegionContext) KubernetesImagePullSecretName() string
- func (c *RegionContext) KubernetesImageRegistry() string
- func (c *RegionContext) KubernetesProvider() string
- func (c *RegionContext) KubernetesPullSecret() string
- func (c *RegionContext) KubernetesPullSecretName() string
- func (c *RegionContext) KubernetesStorageClass() string
- func (c *RegionContext) MarshalJSON() ([]byte, error)
- func (c *RegionContext) Overrides() string
- type ZoneContext
- func (c *ZoneContext) CertManagerClusterIssuer() string
- func (c *ZoneContext) CertManagerIssuer() string
- func (c *ZoneContext) KubeConfig() string
- func (c *ZoneContext) KubeConfigContent() string
- func (c *ZoneContext) KubeConfigName() string
- func (c *ZoneContext) KubeDomain() string
- func (c *ZoneContext) KubeNamespace() string
- func (c *ZoneContext) KubePodAddressTemplate() string
- func (c *ZoneContext) KubernetesImagePullSecretName() string
- func (c *ZoneContext) KubernetesImageRegistry() string
- func (c *ZoneContext) KubernetesProvider() string
- func (c *ZoneContext) KubernetesPullSecret() string
- func (c *ZoneContext) KubernetesPullSecretName() string
- func (c *ZoneContext) KubernetesStorageClass() string
- func (c *ZoneContext) MarshalJSON() ([]byte, error)
- func (c *ZoneContext) Overrides() string
Constants ¶
const ( // Provider1 provides header for K8S Cloud Info Provider1 = "table {{.KubeConfig}}\t{{.KubeConfigContent}}\t{{.KubeConfigName}}" + "\t{{.KubernetesImagePullSecretName}}\t{{.KubernetesImageRegistry}}" // Provider2 provides header for K8S Cloud Info Provider2 = "table {{.KubernetesProvider}}\t{{.KubernetesPullSecret}}" + "\t{{.KubernetesPullSecretName}}\t{{.KubernetesStorageClass}}" // Region1 provides header for K8S Region Cloud Info Region1 = "table {{.CertManagerClusterIssuer}}\t{{.CertManagerIssuer}}" // Region2 provides header for K8S Region Cloud Info Region2 = "table {{.KubeConfig}}\t{{.KubeConfigContent}}\t{{.KubeConfigName}}\t{{.KubeDomain}}" // Region3 provides header for K8S Region Cloud Info Region3 = "table {{.KubeNamespace}}\t{{.KubePodAddressTemplate}}" + "\t{{.KubernetesImagePullSecretName}} " // Region4 provides header for K8S Region Cloud Info Region4 = "table {{.KubernetesImageRegistry}}\t{{.KubernetesProvider}}\t{{.KubernetesPullSecret}}" // Region5 provides header for K8S Region Cloud Info Region5 = "table {{.KubernetesPullSecretName}}\t{{.KubernetesStorageClass}}" // Region6 provides header for K8S Region Cloud Info Region6 = "table {{.Overrides}}" )
Variables ¶
This section is empty.
Functions ¶
func NewProviderFormat ¶
NewProviderFormat for formatting output
func NewRegionFormat ¶
NewRegionFormat for formatting output
func NewZoneFormat ¶
NewZoneFormat for formatting output
Types ¶
type ProviderContext ¶
type ProviderContext struct { formatter.HeaderContext formatter.Context Kube ybaclient.KubernetesInfo }
ProviderContext for provider outputs
func NewProviderContext ¶
func NewProviderContext() *ProviderContext
NewProviderContext creates a new context for rendering provider
func (*ProviderContext) KubeConfig ¶
func (c *ProviderContext) KubeConfig() string
KubeConfig returns the KubeConfig field.
func (*ProviderContext) KubeConfigContent ¶
func (c *ProviderContext) KubeConfigContent() string
KubeConfigContent returns the KubeConfigContent field.
func (*ProviderContext) KubeConfigName ¶
func (c *ProviderContext) KubeConfigName() string
KubeConfigName returns the KubeConfigName field.
func (*ProviderContext) KubernetesImagePullSecretName ¶
func (c *ProviderContext) KubernetesImagePullSecretName() string
KubernetesImagePullSecretName returns the KubernetesImagePullSecretName field.
func (*ProviderContext) KubernetesImageRegistry ¶
func (c *ProviderContext) KubernetesImageRegistry() string
KubernetesImageRegistry returns the KubernetesImageRegistry field.
func (*ProviderContext) KubernetesProvider ¶
func (c *ProviderContext) KubernetesProvider() string
KubernetesProvider returns the KubernetesProvider field.
func (*ProviderContext) KubernetesPullSecret ¶
func (c *ProviderContext) KubernetesPullSecret() string
KubernetesPullSecret returns the KubernetesPullSecret field.
func (*ProviderContext) KubernetesPullSecretName ¶
func (c *ProviderContext) KubernetesPullSecretName() string
KubernetesPullSecretName returns the KubernetesPullSecretName field.
func (*ProviderContext) KubernetesStorageClass ¶
func (c *ProviderContext) KubernetesStorageClass() string
KubernetesStorageClass returns the KubernetesStorageClass field.
func (*ProviderContext) MarshalJSON ¶
func (c *ProviderContext) MarshalJSON() ([]byte, error)
MarshalJSON function
type RegionContext ¶
type RegionContext struct { formatter.HeaderContext formatter.Context Region ybaclient.KubernetesRegionInfo }
RegionContext for provider outputs
func NewRegionContext ¶
func NewRegionContext() *RegionContext
NewRegionContext creates a new context for rendering provider
func (*RegionContext) CertManagerClusterIssuer ¶
func (c *RegionContext) CertManagerClusterIssuer() string
CertManagerClusterIssuer returns the CertManagerClusterIssuer field.
func (*RegionContext) CertManagerIssuer ¶
func (c *RegionContext) CertManagerIssuer() string
CertManagerIssuer returns the CertManagerIssuer field.
func (*RegionContext) KubeConfig ¶
func (c *RegionContext) KubeConfig() string
KubeConfig returns the KubeConfig field.
func (*RegionContext) KubeConfigContent ¶
func (c *RegionContext) KubeConfigContent() string
KubeConfigContent returns the KubeConfigContent field.
func (*RegionContext) KubeConfigName ¶
func (c *RegionContext) KubeConfigName() string
KubeConfigName returns the KubeConfigName field.
func (*RegionContext) KubeDomain ¶
func (c *RegionContext) KubeDomain() string
KubeDomain returns the KubeDomain field.
func (*RegionContext) KubeNamespace ¶
func (c *RegionContext) KubeNamespace() string
KubeNamespace returns the KubeNamespace field.
func (*RegionContext) KubePodAddressTemplate ¶
func (c *RegionContext) KubePodAddressTemplate() string
KubePodAddressTemplate returns the KubePodAddressTemplate field.
func (*RegionContext) KubernetesImagePullSecretName ¶
func (c *RegionContext) KubernetesImagePullSecretName() string
KubernetesImagePullSecretName returns the KubernetesImagePullSecretName field.
func (*RegionContext) KubernetesImageRegistry ¶
func (c *RegionContext) KubernetesImageRegistry() string
KubernetesImageRegistry returns the KubernetesImageRegistry field.
func (*RegionContext) KubernetesProvider ¶
func (c *RegionContext) KubernetesProvider() string
KubernetesProvider returns the KubernetesProvider field.
func (*RegionContext) KubernetesPullSecret ¶
func (c *RegionContext) KubernetesPullSecret() string
KubernetesPullSecret returns the KubernetesPullSecret field.
func (*RegionContext) KubernetesPullSecretName ¶
func (c *RegionContext) KubernetesPullSecretName() string
KubernetesPullSecretName returns the KubernetesPullSecretName field.
func (*RegionContext) KubernetesStorageClass ¶
func (c *RegionContext) KubernetesStorageClass() string
KubernetesStorageClass returns the KubernetesStorageClass field.
func (*RegionContext) MarshalJSON ¶
func (c *RegionContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*RegionContext) Overrides ¶
func (c *RegionContext) Overrides() string
Overrides returns the Overrides field.
type ZoneContext ¶
type ZoneContext struct { formatter.HeaderContext formatter.Context Zone ybaclient.KubernetesRegionInfo }
ZoneContext for provider outputs
func NewZoneContext ¶
func NewZoneContext() *ZoneContext
NewZoneContext creates a new context for rendering provider
func (*ZoneContext) CertManagerClusterIssuer ¶
func (c *ZoneContext) CertManagerClusterIssuer() string
CertManagerClusterIssuer returns the CertManagerClusterIssuer field.
func (*ZoneContext) CertManagerIssuer ¶
func (c *ZoneContext) CertManagerIssuer() string
CertManagerIssuer returns the CertManagerIssuer field.
func (*ZoneContext) KubeConfig ¶
func (c *ZoneContext) KubeConfig() string
KubeConfig returns the KubeConfig field.
func (*ZoneContext) KubeConfigContent ¶
func (c *ZoneContext) KubeConfigContent() string
KubeConfigContent returns the KubeConfigContent field.
func (*ZoneContext) KubeConfigName ¶
func (c *ZoneContext) KubeConfigName() string
KubeConfigName returns the KubeConfigName field.
func (*ZoneContext) KubeDomain ¶
func (c *ZoneContext) KubeDomain() string
KubeDomain returns the KubeDomain field.
func (*ZoneContext) KubeNamespace ¶
func (c *ZoneContext) KubeNamespace() string
KubeNamespace returns the KubeNamespace field.
func (*ZoneContext) KubePodAddressTemplate ¶
func (c *ZoneContext) KubePodAddressTemplate() string
KubePodAddressTemplate returns the KubePodAddressTemplate field.
func (*ZoneContext) KubernetesImagePullSecretName ¶
func (c *ZoneContext) KubernetesImagePullSecretName() string
KubernetesImagePullSecretName returns the KubernetesImagePullSecretName field.
func (*ZoneContext) KubernetesImageRegistry ¶
func (c *ZoneContext) KubernetesImageRegistry() string
KubernetesImageRegistry returns the KubernetesImageRegistry field.
func (*ZoneContext) KubernetesProvider ¶
func (c *ZoneContext) KubernetesProvider() string
KubernetesProvider returns the KubernetesProvider field.
func (*ZoneContext) KubernetesPullSecret ¶
func (c *ZoneContext) KubernetesPullSecret() string
KubernetesPullSecret returns the KubernetesPullSecret field.
func (*ZoneContext) KubernetesPullSecretName ¶
func (c *ZoneContext) KubernetesPullSecretName() string
KubernetesPullSecretName returns the KubernetesPullSecretName field.
func (*ZoneContext) KubernetesStorageClass ¶
func (c *ZoneContext) KubernetesStorageClass() string
KubernetesStorageClass returns the KubernetesStorageClass field.
func (*ZoneContext) MarshalJSON ¶
func (c *ZoneContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*ZoneContext) Overrides ¶
func (c *ZoneContext) Overrides() string
Overrides returns the Overrides field.