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
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
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
Click to show internal directories.
Click to hide internal directories.