collect

package
v0.9.35 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 41 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterInfo

func ClusterInfo(ctx *Context) (map[string][]byte, error)

func ClusterResources

func ClusterResources(ctx *Context) (map[string][]byte, error)

func Copy

func Copy(ctx *Context, copyCollector *troubleshootv1beta1.Copy) (map[string][]byte, error)

func CreateCollector

func CreateCollector(client client.Client, scheme *runtime.Scheme, ownerRef metav1.Object, jobName string, jobNamespace string, serviceAccountName string, jobType string, collect *troubleshootv1beta1.Collect, image string, pullPolicy string) (*corev1.ConfigMap, *corev1.Pod, error)

func Data added in v0.9.14

func Data(ctx *Context, dataCollector *troubleshootv1beta1.Data) (map[string][]byte, error)

func DeterministicIDForCollector

func DeterministicIDForCollector(collector *troubleshootv1beta1.Collect) string

func Exec

func Exec(ctx *Context, execCollector *troubleshootv1beta1.Exec) (map[string][]byte, error)

func HTTP

func HTTP(ctx *Context, httpCollector *troubleshootv1beta1.HTTP) (map[string][]byte, error)

func IsRBACError added in v0.9.15

func IsRBACError(err error) bool

func Logs

func Logs(ctx *Context, logsCollector *troubleshootv1beta1.Logs) (map[string][]byte, error)

func Mysql added in v0.9.27

func Mysql(ctx *Context, databaseCollector *troubleshootv1beta1.Database) (map[string][]byte, error)

func Postgres added in v0.9.27

func Postgres(ctx *Context, databaseCollector *troubleshootv1beta1.Database) (map[string][]byte, error)

func Redis added in v0.9.27

func Redis(ctx *Context, databaseCollector *troubleshootv1beta1.Database) (map[string][]byte, error)

func Run

func Run(ctx *Context, runCollector *troubleshootv1beta1.Run) (map[string][]byte, error)

func Secret

func Secret(ctx *Context, secretCollector *troubleshootv1beta1.Secret) (map[string][]byte, error)

Types

type ClusterVersion

type ClusterVersion struct {
	Info   *version.Info `json:"info"`
	String string        `json:"string"`
}

type Collector

type Collector struct {
	Collect      *troubleshootv1beta1.Collect
	Redact       bool
	RBACErrors   []error
	ClientConfig *rest.Config
	Namespace    string
}

func (*Collector) CheckRBAC added in v0.9.15

func (c *Collector) CheckRBAC() error

func (*Collector) GetContext added in v0.9.6

func (c *Collector) GetContext() *Context

func (*Collector) GetDisplayName added in v0.9.5

func (c *Collector) GetDisplayName() string

func (*Collector) RunCollectorSync

func (c *Collector) RunCollectorSync(globalRedactors []*troubleshootv1beta1.Redact) (map[string][]byte, error)

type Collectors added in v0.9.15

type Collectors []*Collector

func (Collectors) CheckRBAC added in v0.9.15

func (cs Collectors) CheckRBAC() error

type Context added in v0.9.6

type Context struct {
	Redact       bool
	ClientConfig *rest.Config
	Namespace    string
}

type DatabaseConnection added in v0.9.27

type DatabaseConnection struct {
	IsConnected bool   `json:"isConnected"`
	Error       string `json:"error,omitempty"`
	Version     string `json:"version,omitempty"`
}

type FoundSecret

type FoundSecret struct {
	Namespace    string `json:"namespace"`
	Name         string `json:"name"`
	Key          string `json:"key"`
	SecretExists bool   `json:"secretExists"`
	KeyExists    bool   `json:"keyExists"`
	Value        string `json:"value,omitempty"`
}

type RBACError added in v0.9.15

type RBACError struct {
	DisplayName string
	Namespace   string
	Resource    string
	Verb        string
}

func (RBACError) Error added in v0.9.15

func (e RBACError) Error() string

Jump to

Keyboard shortcuts

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