Documentation ¶
Index ¶
- type Addon
- 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 ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addon ¶
type Addon interface { // Inspect a resource and gather related data. Inspect(*unstructured.Unstructured) error }
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 {
// contains filtered or unexported fields
}
func NewLogsAddon ¶
func (*LogsAddon) Inspect ¶
func (g *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 {
// contains filtered or unexported fields
}
func NewRookCephAddon ¶
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.