exploit

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

Command represents the exploit command

Types

type Secret

type Secret struct {
	Data SecretDataObject `json:"data"`
}

Secret contains our extracted secret from etcd

type SecretDataObject

type SecretDataObject struct {
	CaCert string `json:"ca.crt"`
	Token  string `json:"token"`
}

SecretDataObject will contain the data from our secret

type SecretObject

type SecretObject struct {
	Kind      string `json:"kind,omitempty"`
	Namespace string `json:"namespace,omitempty"`
	Name      string `json:"name"`
}

SecretObject will contain our secret details are unmarshal

type ServiceAccount

type ServiceAccount struct {
	Secrets []SecretObject `json:"secrets"`
}

ServiceAccount is a rehash of k8s serviceAccount struct but only the bits we want (the secret name)

Jump to

Keyboard shortcuts

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