Documentation ¶
Index ¶
Constants ¶
View Source
const (
KubeconfigDefaultPath = ".kube/config"
)
View Source
const StratusUserAgent = "stratus-red-team"
Variables ¶
View Source
var UniqueExecutionId = uuid.New()
Functions ¶
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
func GetStratusUserAgent ¶ added in v1.8.0
func GetStratusUserAgent() string
Types ¶
type AWSProvider ¶
type AWSProvider struct { UniqueCorrelationId uuid.UUID // unique value injected in the user-agent, to differentiate Stratus Red Team executions // 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 UniqueCorrelationId uuid.UUID // unique value injected in the user-agent, to differentiate Stratus Red Team executions // 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
Click to show internal directories.
Click to hide internal directories.