Documentation ¶
Index ¶
- Constants
- type IKSVolumeAttachService
- func (vs *IKSVolumeAttachService) AttachVolume(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachment, error)
- func (vs *IKSVolumeAttachService) DetachVolume(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*http.Response, error)
- func (vs *IKSVolumeAttachService) GetVolumeAttachment(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachment, error)
- func (vs *IKSVolumeAttachService) ListVolumeAttachments(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachmentList, error)
- 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) ListVolumeAttachments(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachmentList, error)
Constants ¶
const ( // VpcPathPrefix VPC URL path prefix VpcPathPrefix = "v1/instances" // IksPathPrefix IKS URL path prefix IksPathPrefix = "v2/storage/vpc/" // IksClusterQueryKey ... IksClusterQueryKey = "cluster" // IksWorkerQueryKey ... IksWorkerQueryKey = "worker" // IksVolumeQueryKey ... IksVolumeQueryKey = "volumeID" // IksVolumeAttachmentIDQueryKey ... IksVolumeAttachmentIDQueryKey = "volumeAttachmentID" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IKSVolumeAttachService ¶
type IKSVolumeAttachService struct {
// contains filtered or unexported fields
}
IKSVolumeAttachService ...
func (*IKSVolumeAttachService) AttachVolume ¶
func (vs *IKSVolumeAttachService) AttachVolume(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachment, error)
AttachVolume attached volume to instances with givne volume attachment details
func (*IKSVolumeAttachService) DetachVolume ¶
func (vs *IKSVolumeAttachService) DetachVolume(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*http.Response, error)
DetachVolume retrives the volume attach status with givne volume attachment details
func (*IKSVolumeAttachService) GetVolumeAttachment ¶
func (vs *IKSVolumeAttachService) GetVolumeAttachment(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachment, error)
GetVolumeAttachment retrives the volume attach status with given volume attachment details
func (*IKSVolumeAttachService) ListVolumeAttachments ¶
func (vs *IKSVolumeAttachService) ListVolumeAttachments(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachmentList, error)
ListVolumeAttachments retrives the list volume attachments with givne volume attachment details
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 ListVolumeAttachments(*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) ListVolumeAttachments ¶
func (vs *VolumeAttachService) ListVolumeAttachments(volumeAttachmentTemplate *models.VolumeAttachment, ctxLogger *zap.Logger) (*models.VolumeAttachmentList, error)
ListVolumeAttachments retrives the list volume attachments with givne volume attachment details