instances

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: Apache-2.0 Imports: 6 Imported by: 8

Documentation

Index

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 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) 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

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