k8s

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: UPL-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIServerURL

func GetAPIServerURL(client clipkg.Client) (string, error)

GetAPIServerURL gets the external URL of the API server provided by the user

Types

type KubeConfig

type KubeConfig struct {
	Clusters       []kcCluster `json:"clusters"`
	Users          []kcUser    `json:"users"`
	Contexts       []kcContext `json:"contexts"`
	CurrentContext string      `json:"current-context"`
}

KubeConfig represents a kubeconfig object used to connect using a token

type KubeconfigBuilder

type KubeconfigBuilder struct {
	ClusterName string
	Server      string
	CertAuth    string
	UserName    string
	UserToken   string
	ContextName string
}

KubeconfigBuilder contains fields needed to build a KubeConfig object

func (*KubeconfigBuilder) Build

func (b *KubeconfigBuilder) Build() KubeConfig

Build creates a KubeConfig object using the fields of the builder

Jump to

Keyboard shortcuts

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