Documentation ¶
Index ¶
- Constants
- type Error
- type ErrorCode
- type ErrorItem
- type ErrorTarget
- type ErrorType
- type GenerationType
- type IksError
- type ListVolumeFilters
- type Profile
- type ResourceGroup
- type Snapshot
- type SnapshotList
- type StatusType
- type Volume
- type VolumeAttachment
- type VolumeAttachmentList
- type VolumeEncryptionKey
- type VolumeList
- type Zone
Constants ¶
View Source
const ( // APIVersion is the target RIaaS API spec version APIVersion = "2019-01-01" // UserAgent identifies IKS to the RIaaS API UserAgent = "IBM-Kubernetes-Service" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorCode ¶
type ErrorCode string
ErrorCode ...
type ErrorItem ¶
type ErrorItem struct { Code ErrorCode `json:"code,omitempty"` Message string `json:"message,omitempty"` MoreInfo string `json:"more_info,omitempty"` Target *ErrorTarget `json:"reqID,omitempty"` }
ErrorItem ...
type ErrorTarget ¶
type ErrorTarget struct { Name string `json:"name,omitempty"` Type ErrorType `json:"type,omitempty"` }
ErrorTarget ...
type ErrorType ¶
type ErrorType string
ErrorType ...
type IksError ¶
type IksError struct { ReqID string `json:"incidentID" binding:"required"` ID string `json:"code" binding:"required"` Err string `json:"description" binding:"required"` Type ErrorType `json:"type" binding:"required"` RecoveryCLI string `json:"recoveryCLI,omitempty"` RecoveryUI string `json:"recoveryUI,omitempty"` RC int `json:"rc,omitempty"` }
IksError ...
type ListVolumeFilters ¶
type ListVolumeFilters struct { ResourceGroupID string Tag string ZoneName string VolumeName string }
ListVolumeFilters ...
type Profile ¶
type Profile struct { CRN string `json:"crn,omitempty"` Href string `json:"href,omitempty"` Name string `json:"name,omitempty"` }
Profile ...
type ResourceGroup ¶
type ResourceGroup struct { Href string `json:"href,omitempty"` ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` }
ResourceGroup ...
type Snapshot ¶
type Snapshot struct { Href string `json:"href,omitempty"` ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` ResourceGroup *ResourceGroup `json:"resource_group,omitempty"` CRN string `json:"crn,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` Status StatusType `json:"status,omitempty"` Tags []string `json:"tags,omitempty"` }
Snapshot ...
type SnapshotList ¶
type SnapshotList struct {
Snapshots []*Snapshot `json:"snapshot,omitempty"`
}
SnapshotList ...
type Volume ¶
type Volume struct { Href string `json:"href,omitempty"` ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Capacity int64 `json:"capacity,omitempty"` Iops int64 `json:"iops,omitempty"` VolumeEncryptionKey *VolumeEncryptionKey `json:"encryption_key,omitempty"` ResourceGroup *ResourceGroup `json:"resource_group,omitempty"` Tags []string `json:"tags,omitempty"` Generation GenerationType `json:"generation,omitempty"` Profile *Profile `json:"profile,omitempty"` Snapshot *Snapshot `json:"snapshot,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` Status StatusType `json:"status,omitempty"` VolumeAttachments *[]VolumeAttachment `json:"volume_attachments,omitempty"` Zone *Zone `json:"zone,omitempty"` CRN string `json:"crn,omitempty"` }
Volume ...
type VolumeAttachment ¶
type VolumeAttachment struct { ID string `json:"id"` Href string `json:"href,omitempty"` Name string `json:"name,omitempty"` // Status of volume attachment named - attaching , attached, detaching Status string `json:"status,omitempty"` Type string `json:"type,omitempty"` //boot, data // InstanceID this volume is attached to InstanceID *string `json:"instance_id,omitempty"` ClusterID *string `json:"clusterID,omitempty"` Volume *Volume `json:"volume,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` // If set to true, when deleting the instance the volume will also be deleted DeleteVolumeOnInstanceDelete bool `json:"delete_volume_on_instance_delete,omitempty"` }
VolumeAttachment for riaas client
func NewVolumeAttachment ¶
func NewVolumeAttachment(volumeAttachmentRequest provider.VolumeAttachmentRequest) VolumeAttachment
NewVolumeAttachment creates VolumeAttachment from VolumeAttachmentRequest
func (*VolumeAttachment) ToVolumeAttachmentResponse ¶
func (va *VolumeAttachment) ToVolumeAttachmentResponse() *provider.VolumeAttachmentResponse
ToVolumeAttachmentResponse converts VolumeAttachment VolumeAttachmentResponse
type VolumeAttachmentList ¶
type VolumeAttachmentList struct {
VolumeAttachments []VolumeAttachment `json:"volume_attachments,omitempty"`
}
VolumeAttachmentList ...
type VolumeEncryptionKey ¶
type VolumeEncryptionKey struct {
CRN string `json:"crn,omitempty"`
}
VolumeEncryptionKey ...
type VolumeList ¶
type VolumeList struct { Volumes []*Volume `json:"volumes,omitempty"` Limit int `json:"limit,omitempty"` TotalCount int `json:"total_count,omitempty"` }
VolumeList ...
Click to show internal directories.
Click to hide internal directories.