namespace

package
v0.0.0-...-f48519d Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfNameForProjectName

func ConfNameForProjectName(name string) string

Types

type ClusterNamespaces

type ClusterNamespaces struct {
	ClusterName string
	Namespaces  []string
}

type NamespaceLocation

type NamespaceLocation struct {
	Cluster   string `yaml:"clusterName"`
	ProjectID string `yaml:"projectId"`
	Location  string `yaml:"clusterLocation"`
}

func (NamespaceLocation) ConnectToCluster

func (nl NamespaceLocation) ConnectToCluster()

type ProjectNamespaces

type ProjectNamespaces struct {
	ProjectId string
	Clusters  []ClusterNamespaces
}

func GetNamespacesForProject

func GetNamespacesForProject(project string) (ProjectNamespaces, error)

func GetPNs

func GetPNs(ctx context.Context, projectId string) (ProjectNamespaces, error)

func ScanProjectsForNamespaces

func ScanProjectsForNamespaces(projects []string, verbose bool) []ProjectNamespaces

Jump to

Keyboard shortcuts

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