Documentation ¶
Index ¶
- Constants
- type IKSVolumeAttachService
- type VolumeAttachManager
- type VolumeAttachService
- func (vs *VolumeAttachService) AttachVolume(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachment, error)
- func (vs *VolumeAttachService) DetachVolume(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*http.Response, error)
- func (vs *VolumeAttachService) GetVolumeAttachment(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachment, error)
- func (vs *VolumeAttachService) ListVolumeAttachment(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachmentList, error)
Constants ¶
View Source
const ( //VpcPathPrefix VPC URL path prefix VpcPathPrefix = "v1/instances" //IksPathPrefix IKS URL path prefix IksPathPrefix = "v2/storage/clusters/{cluster-id}/workers" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IKSVolumeAttachService ¶
type IKSVolumeAttachService struct {
VolumeAttachService
}
IKSVolumeAttachService ...
type VolumeAttachManager ¶
type VolumeAttachManager interface { // Create the volume with authorisation by passing required information in the volume object AttachVolume(*models.VolumeAttachment, *zap.Logger) (*models.VolumeAttachment, error) // GetVolumeAttachment retrives the single VolumeAttachment based on the instance ID and attachmentID GetVolumeAttachment(*models.VolumeAttachment, *zap.Logger) (*models.VolumeAttachment, error) // ListVolumeAttachment retrives the VolumeAttachment list for given server ListVolumeAttachment(*models.VolumeAttachment, *zap.Logger) (*models.VolumeAttachmentList, error) // Delete the volume DetachVolume(*models.VolumeAttachment, *zap.Logger) (*http.Response, error) }
VolumeAttachManager operations
func NewIKSVolumeAttachmentManager ¶
func NewIKSVolumeAttachmentManager(clientIn client.SessionClient) VolumeAttachManager
NewIKSVolumeAttachmentManager ...
type VolumeAttachService ¶
type VolumeAttachService struct {
// contains filtered or unexported fields
}
VolumeAttachService ...
func (*VolumeAttachService) AttachVolume ¶
func (vs *VolumeAttachService) AttachVolume(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachment, error)
AttachVolume attached volume to instances with givne volume attachment details
func (*VolumeAttachService) DetachVolume ¶
func (vs *VolumeAttachService) DetachVolume(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*http.Response, error)
DetachVolume retrives the volume attach status with givne volume attachment details
func (*VolumeAttachService) GetVolumeAttachment ¶
func (vs *VolumeAttachService) GetVolumeAttachment(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachment, error)
GetVolumeAttachment retrives the volume attach status with given volume attachment details
func (*VolumeAttachService) ListVolumeAttachment ¶
func (vs *VolumeAttachService) ListVolumeAttachment(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachmentList, error)
ListVolumeAttachment retrives the list volume attachments with givne volume attachment details
Source Files ¶
Click to show internal directories.
Click to hide internal directories.