Documentation ¶
Index ¶
- Variables
- func AvailableAddons() []string
- type Addon
- type AddonBackend
- type AgentPod
- type Gatherer
- type LogsAddon
- type Options
- type OutputDirectory
- func (o *OutputDirectory) CreateAddonDir(name string, more ...string) (string, error)
- func (o *OutputDirectory) CreateClusterResource(resource string, name string) (io.WriteCloser, error)
- func (o *OutputDirectory) CreateContainerLog(namespace string, pod string, container string, name string) (io.WriteCloser, error)
- func (o *OutputDirectory) CreateNamespacedResource(namespace string, resource string, name string) (io.WriteCloser, error)
- type Queuer
- type RemoteCommand
- type RemoteDirectory
- type RookAddon
- type WorkFunc
- type WorkQueue
Constants ¶
This section is empty.
Variables ¶
View Source
var Image = "quay.io/nirsof/gather:latest"
View Source
var Version = "latest"
Replaced during build with actual values.
Functions ¶
func AvailableAddons ¶
func AvailableAddons() []string
Types ¶
type Addon ¶
type Addon interface { // Inspect a resource and gather related data. Inspect(*unstructured.Unstructured) error }
func NewLogsAddon ¶
func NewLogsAddon(backend AddonBackend) (Addon, error)
func NewPVCAddon ¶
func NewPVCAddon(backend AddonBackend) (Addon, error)
func NewRookAddon ¶
func NewRookAddon(backend AddonBackend) (Addon, error)
type AddonBackend ¶
type AddonBackend interface { // Config returns the rest config for this cluster that can be used to // create a new client. Config() *rest.Config // HTTPClient returns the http client connected to the cluster. It can be // used to create a new client sharing the same http client. HTTPClient() *http.Client // Output returns the output for this gathering. Output() *OutputDirectory // Options returns gathering options for this cluster. Options() *Options // Queue function on the work queue. Queue(WorkFunc) // GatherResource gathers the specified resource asynchronically. GatherResource(schema.GroupVersionResource, types.NamespacedName) }
type AgentPod ¶
type AgentPod struct { Client *kubernetes.Clientset Log *zap.SugaredLogger Pod *corev1.Pod }
func NewAgentPod ¶
func NewAgentPod(name string, client *kubernetes.Clientset, log *zap.SugaredLogger) *AgentPod
func (*AgentPod) WaitUntilRunning ¶
type LogsAddon ¶
type LogsAddon struct { AddonBackend // contains filtered or unexported fields }
func (*LogsAddon) Inspect ¶
func (a *LogsAddon) Inspect(pod *unstructured.Unstructured) error
type OutputDirectory ¶
type OutputDirectory struct {
// contains filtered or unexported fields
}
func (*OutputDirectory) CreateAddonDir ¶
func (o *OutputDirectory) CreateAddonDir(name string, more ...string) (string, error)
func (*OutputDirectory) CreateClusterResource ¶
func (o *OutputDirectory) CreateClusterResource(resource string, name string) (io.WriteCloser, error)
func (*OutputDirectory) CreateContainerLog ¶
func (o *OutputDirectory) CreateContainerLog(namespace string, pod string, container string, name string) (io.WriteCloser, error)
func (*OutputDirectory) CreateNamespacedResource ¶
func (o *OutputDirectory) CreateNamespacedResource(namespace string, resource string, name string) (io.WriteCloser, error)
type RemoteCommand ¶
type RemoteCommand struct {
// contains filtered or unexported fields
}
func NewRemoteCommand ¶
func NewRemoteCommand(pod *corev1.Pod, opts *Options, log *zap.SugaredLogger, directroy string) *RemoteCommand
func (*RemoteCommand) Filename ¶
func (c *RemoteCommand) Filename(command ...string) string
func (*RemoteCommand) Gather ¶
func (c *RemoteCommand) Gather(command ...string) error
type RemoteDirectory ¶
type RemoteDirectory struct {
// contains filtered or unexported fields
}
func NewRemoteDirectory ¶
func NewRemoteDirectory(pod *corev1.Pod, opts *Options, log *zap.SugaredLogger) *RemoteDirectory
type RookAddon ¶
type RookAddon struct { AddonBackend // contains filtered or unexported fields }
func (*RookAddon) Inspect ¶
func (a *RookAddon) Inspect(cephcluster *unstructured.Unstructured) error
type WorkQueue ¶
type WorkQueue struct {
// contains filtered or unexported fields
}
func NewWorkQueue ¶
Click to show internal directories.
Click to hide internal directories.