Documentation ¶
Index ¶
- type Provider
- type UnsupportedNodeDrainProvider
- func (u *UnsupportedNodeDrainProvider) CordonAttachments(ctx context.Context, in *api.SdkNodeCordonAttachmentsRequest) (*api.SdkNodeCordonAttachmentsResponse, error)
- func (u *UnsupportedNodeDrainProvider) DrainAttachments(ctx context.Context, in *api.SdkNodeDrainAttachmentsRequest) (*api.SdkJobResponse, error)
- func (u *UnsupportedNodeDrainProvider) UncordonAttachments(ctx context.Context, in *api.SdkNodeUncordonAttachmentsRequest) (*api.SdkNodeUncordonAttachmentsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { // DrainAttachments creates a task to drain volume attachments // from the provided node in the cluster. DrainAttachments(ctx context.Context, in *api.SdkNodeDrainAttachmentsRequest) (*api.SdkJobResponse, error) // CordonAttachments disables any new volume attachments // from the provided node in the cluster. Existing volume attachments // will stay on the node. CordonAttachments(ctx context.Context, in *api.SdkNodeCordonAttachmentsRequest) (*api.SdkNodeCordonAttachmentsResponse, error) // UncordonAttachments re-enables volume attachments // on the provided node in the cluster. UncordonAttachments(ctx context.Context, in *api.SdkNodeUncordonAttachmentsRequest) (*api.SdkNodeUncordonAttachmentsResponse, error) }
Provider is a collection of APIs for performing different kinds of drain operations on a node
func NewDefaultNodeDrainProvider ¶
func NewDefaultNodeDrainProvider() Provider
NewDefaultNodeDrainProvider does not any node drain related operations
type UnsupportedNodeDrainProvider ¶
type UnsupportedNodeDrainProvider struct { }
UnsupportedNodeDrainProvider unsupported implementation of drain.
func (*UnsupportedNodeDrainProvider) CordonAttachments ¶
func (u *UnsupportedNodeDrainProvider) CordonAttachments( ctx context.Context, in *api.SdkNodeCordonAttachmentsRequest, ) (*api.SdkNodeCordonAttachmentsResponse, error)
func (*UnsupportedNodeDrainProvider) DrainAttachments ¶
func (u *UnsupportedNodeDrainProvider) DrainAttachments( ctx context.Context, in *api.SdkNodeDrainAttachmentsRequest, ) (*api.SdkJobResponse, error)
func (*UnsupportedNodeDrainProvider) UncordonAttachments ¶
func (u *UnsupportedNodeDrainProvider) UncordonAttachments( ctx context.Context, in *api.SdkNodeUncordonAttachmentsRequest, ) (*api.SdkNodeUncordonAttachmentsResponse, error)
Click to show internal directories.
Click to hide internal directories.