instances

package
v2.0.7-testonly+incomp... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// VpcPathPrefix  VPC URL path prefix
	VpcPathPrefix = "v1/instances"

	// IksPathPrefix  IKS URL path prefix
	IksPathPrefix = "v2/storage/"

	// 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 New

New ...

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

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL