Documentation
¶
Index ¶
- func NewConnector() *connector
- func NewCreator(clientSet kubernetes.Interface) *creator
- func NewDeleter(clientSet kubernetes.Interface) *deleter
- func NewGetter(kubeContext KubeContext) *getter
- func ToContainerId(containerName string, pod *apiv1.Pod) (string, error)
- type ConnectionContext
- type Connector
- type Creator
- type Deleter
- type EventHandler
- type Getter
- type KubeContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnector ¶
func NewConnector() *connector
NewConnector returns new implementation of Connector
func NewCreator ¶
func NewCreator(clientSet kubernetes.Interface) *creator
NewCreator returns new implementation of Creator
func NewDeleter ¶
func NewDeleter(clientSet kubernetes.Interface) *deleter
NewDeleter returns new implementation of Deleter
func NewGetter ¶
func NewGetter(kubeContext KubeContext) *getter
NewGetter returns new implementation of Getter
Types ¶
type ConnectionContext ¶ added in v0.4.0
type ConnectionContext struct { KubeContext Namespace string }
type Connector ¶
type Connector interface {
Connect(clientGetter genericclioptions.RESTClientGetter) (kubernetes.Interface, string, error)
}
type EventHandler ¶
type Getter ¶
type Getter interface { GetPod(podName, namespace string, ctx context.Context) (*apiv1.Pod, error) GetProfilingPod(cfg *config.ProfilerConfig, ctx context.Context) (*apiv1.Pod, error) GetPodLogs(pod *apiv1.Pod, handler EventHandler, ctx context.Context) (chan bool, chan string, error) GetRemoteFile(pod *apiv1.Pod, remoteFileName string, localFileName string, compressor api.Compressor) error }
type KubeContext ¶ added in v0.7.0
type KubeContext struct { ClientSet kubernetes.Interface RestConfig *rest.Config }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.