providers

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeconfigDefaultPath = ".kube/config"
)
View Source
const StratusUserAgent = "stratus-red-team"

Variables

This section is empty.

Functions

func EnsureAuthenticated added in v1.5.0

func EnsureAuthenticated(platform stratus.Platform) error

EnsureAuthenticated ensures that the current user is properly authenticated against a specific platform

func GetKubeConfigPath added in v1.3.0

func GetKubeConfigPath() string

GetKubeConfigPath returns the path of the kubeconfig, with the following priority: 1. KUBECONFIG environment variable 2. $HOME/.kube/config

Types

type AWSProvider

type AWSProvider struct {
	// contains filtered or unexported fields
}

func AWS

func AWS() *AWSProvider

func (*AWSProvider) GetConnection

func (m *AWSProvider) GetConnection() aws.Config

func (*AWSProvider) IsAuthenticatedAgainstAWS

func (m *AWSProvider) IsAuthenticatedAgainstAWS() bool

type K8sProvider added in v1.3.0

type K8sProvider struct {
	RestConfig *rest.Config
	// contains filtered or unexported fields
}

func K8s added in v1.3.0

func K8s() *K8sProvider

func (*K8sProvider) GetClient added in v1.3.0

func (m *K8sProvider) GetClient() *kubernetes.Clientset

GetClient is used to authenticate with Kubernetes and build the client from a kubeconfig

func (*K8sProvider) GetRestConfig added in v1.4.0

func (m *K8sProvider) GetRestConfig() *rest.Config

func (*K8sProvider) IsAuthenticated added in v1.3.0

func (m *K8sProvider) IsAuthenticated() bool

Jump to

Keyboard shortcuts

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