kubernetes

package
v0.0.0-...-f0e5f0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

func NewProviderFormat(source string) formatter.Format

NewProviderFormat for formatting output

func NewRegionFormat

func NewRegionFormat(source string) formatter.Format

NewRegionFormat for formatting output

func NewZoneFormat

func NewZoneFormat(source string) formatter.Format

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL