Documentation ¶
Index ¶
- Constants
- Variables
- func DecorateRuntimeContext(logger *log.Entry) *log.Entry
- func FillStruct(m map[string]interface{}, s interface{}) error
- func Log() *log.Entry
- func NewUUID() (string, error)
- func Pretty(i interface{}) string
- func RandString(n int) string
- func RegisterAppInstanceEndpoints(a *AppInstance)
- func RegisterAppTemplateEndpoints(a *AppTemplate)
- func RegisterRemoteProviderEndpoints(rp *RemoteProvider)
- func RegisterStorageInstanceEndpoints(a *StorageInstance)
- func RegisterStorageNodeEndpoints(a *StorageNode)
- func RegisterStorageTemplateEndpoints(a *StorageTemplate)
- func RegisterSystemEndpoints(a *System)
- func RegisterVolumeEndpoints(a *Volume)
- func RegisterVolumeTemplateEndpoints(a *VolumeTemplate)
- func RunCmd(cmd ...string) (string, error)
- func WithUserFields(ctx context.Context, l *log.Entry) *log.Entry
- type Access
- type AccessNetworkIpPool
- type AccessNetworkIpPoolDeleteRequest
- type AccessNetworkIpPoolSetRequest
- type AccessNetworkIpPools
- func (e *AccessNetworkIpPools) Create(ro *AccessNetworkIpPoolsCreateRequest) (*AccessNetworkIpPool, *ApiErrorResponse, error)
- func (e *AccessNetworkIpPools) Get(ro *AccessNetworkIpPoolsGetRequest) (*AccessNetworkIpPool, *ApiErrorResponse, error)
- func (e *AccessNetworkIpPools) List(ro *AccessNetworkIpPoolsListRequest) ([]*AccessNetworkIpPool, *ApiErrorResponse, error)
- type AccessNetworkIpPoolsCreateRequest
- type AccessNetworkIpPoolsGetRequest
- type AccessNetworkIpPoolsListRequest
- type AclPolicy
- type AclPolicyGetRequest
- type AclPolicyReloadRequest
- type AclPolicySetRequest
- type ApiConnection
- func (c *ApiConnection) ApiVersions() []string
- func (c *ApiConnection) Delete(ctxt context.Context, url string, ro *greq.RequestOptions) (*ApiOuter, *ApiErrorResponse, error)
- func (c *ApiConnection) Get(ctxt context.Context, url string, ro *greq.RequestOptions) (*ApiOuter, *ApiErrorResponse, error)
- func (c *ApiConnection) GetList(ctxt context.Context, url string, ro *greq.RequestOptions) (*ApiListOuter, *ApiErrorResponse, error)
- func (c *ApiConnection) Login(ctxt context.Context) (*ApiErrorResponse, error)
- func (c *ApiConnection) Logout()
- func (c *ApiConnection) Post(ctxt context.Context, url string, ro *greq.RequestOptions) (*ApiOuter, *ApiErrorResponse, error)
- func (c *ApiConnection) Put(ctxt context.Context, url string, ro *greq.RequestOptions) (*ApiOuter, *ApiErrorResponse, error)
- type ApiErrorResponse
- type ApiListOuter
- type ApiLogin
- type ApiOuter
- type ApiVersions
- type AppInstance
- func (e *AppInstance) Delete(ro *AppInstanceDeleteRequest) (*AppInstance, *ApiErrorResponse, error)
- func (e *AppInstance) GetMetadata(ro *AppInstanceMetadataGetRequest) (*AppInstanceMetadata, *ApiErrorResponse, error)
- func (e *AppInstance) Reload(ro *AppInstanceReloadRequest) (*AppInstance, *ApiErrorResponse, error)
- func (e *AppInstance) Set(ro *AppInstanceSetRequest) (*AppInstance, *ApiErrorResponse, error)
- func (e *AppInstance) SetMetadata(ro *AppInstanceMetadataSetRequest) (*AppInstanceMetadata, *ApiErrorResponse, error)
- type AppInstanceAppTemplate
- type AppInstanceDeleteRequest
- type AppInstanceMetadata
- type AppInstanceMetadataGetRequest
- type AppInstanceMetadataSetRequest
- type AppInstanceReloadRequest
- type AppInstanceSetRequest
- type AppInstances
- type AppInstancesCreateRequest
- type AppInstancesGetRequest
- type AppInstancesListRequest
- type AppTemplate
- type AppTemplateDeleteRequest
- type AppTemplateSetRequest
- type AppTemplates
- type AppTemplatesCreateRequest
- type AppTemplatesGetRequest
- type AppTemplatesListRequest
- type Auth
- type BootDrive
- type BootDrives
- type BootDrivesGetRequest
- type BootDrivesListRequest
- type ContextKey
- type Dns
- type FailureDomain
- type FailureDomainDeleteRequest
- type FailureDomainSetRequest
- type FailureDomains
- func (e *FailureDomains) Create(ro *FailureDomainsCreateRequest) (*FailureDomain, *ApiErrorResponse, error)
- func (e *FailureDomains) Get(ro *FailureDomainsGetRequest) (*FailureDomain, *ApiErrorResponse, error)
- func (e *FailureDomains) List(ro *FailureDomainsListRequest) ([]*FailureDomain, *ApiErrorResponse, error)
- type FailureDomainsCreateRequest
- type FailureDomainsGetRequest
- type FailureDomainsListRequest
- type FlashDevice
- type HWMetric
- type HWMetrics
- type HWMetricsRequest
- type Hdd
- type HttpProxy
- type IOMetric
- type IOMetrics
- type IOMetricsRequest
- type Initiator
- type InitiatorDeleteRequest
- type InitiatorGroup
- type InitiatorGroupDeleteRequest
- type InitiatorGroupSetRequest
- type InitiatorGroups
- func (e *InitiatorGroups) Create(ro *InitiatorGroupsCreateRequest) (*InitiatorGroup, *ApiErrorResponse, error)
- func (e *InitiatorGroups) Get(ro *InitiatorGroupsGetRequest) (*InitiatorGroup, *ApiErrorResponse, error)
- func (e *InitiatorGroups) List(ro *InitiatorGroupsListRequest) ([]*InitiatorGroup, *ApiErrorResponse, error)
- type InitiatorGroupsCreateRequest
- type InitiatorGroupsGetRequest
- type InitiatorGroupsListRequest
- type InitiatorSetRequest
- type Initiators
- type InitiatorsCreateRequest
- type InitiatorsGetRequest
- type InitiatorsListRequest
- type IntSet
- func (s *IntSet) Add(ns int)
- func (s *IntSet) Contains(ns int) bool
- func (s *IntSet) Delete(ns int)
- func (s *IntSet) Difference(ss *IntSet) *IntSet
- func (s *IntSet) Intersection(ss *IntSet) *IntSet
- func (s *IntSet) List() []int
- func (s *IntSet) SymDifference(ss *IntSet) *IntSet
- func (s *IntSet) Union(ss *IntSet) *IntSet
- type ListParams
- type ListRangeParams
- type LogFormatter
- type LogsUpload
- type LogsUploadRequest
- type Metrics
- type MetricsParams
- type Network
- type NetworkDevice
- type Nic
- type NvmFlashDevice
- type PerformancePolicy
- func (e *PerformancePolicy) Create(ro *PerformancePolicyCreateRequest) (*PerformancePolicy, *ApiErrorResponse, error)
- func (e *PerformancePolicy) Delete(ro *PerformancePolicyDeleteRequest) (*PerformancePolicy, *ApiErrorResponse, error)
- func (e *PerformancePolicy) Get(ro *PerformancePolicyGetRequest) (*PerformancePolicy, *ApiErrorResponse, error)
- func (e *PerformancePolicy) List(ro *PerformancePolicyListRequest) ([]*PerformancePolicy, *ApiErrorResponse, error)
- func (e *PerformancePolicy) Set(ro *PerformancePolicySetRequest) (*PerformancePolicy, *ApiErrorResponse, error)
- type PerformancePolicyCreateRequest
- type PerformancePolicyDeleteRequest
- type PerformancePolicyGetRequest
- type PerformancePolicyListRequest
- type PerformancePolicySetRequest
- type PlacementPolicies
- func (e *PlacementPolicies) Create(ro *PlacementPoliciesCreateRequest) (*PlacementPolicy, *ApiErrorResponse, error)
- func (e *PlacementPolicies) Get(ro *PlacementPoliciesGetRequest) (*PlacementPolicy, *ApiErrorResponse, error)
- func (e *PlacementPolicies) List(ro *PlacementPoliciesListRequest) ([]*PlacementPolicy, *ApiErrorResponse, error)
- type PlacementPoliciesCreateRequest
- type PlacementPoliciesGetRequest
- type PlacementPoliciesListRequest
- type PlacementPolicy
- func (e *PlacementPolicy) Delete(ro *PlacementPolicyDeleteRequest) (*PlacementPolicy, *ApiErrorResponse, error)
- func (p PlacementPolicy) MarshalJSON() ([]byte, error)
- func (e *PlacementPolicy) Reload(ro *PlacementPolicyReloadRequest) (*PlacementPolicy, *ApiErrorResponse, error)
- func (e *PlacementPolicy) Set(ro *PlacementPolicySetRequest) (*PlacementPolicy, *ApiErrorResponse, error)
- func (p PlacementPolicy) UnmarshalJSON(b []byte) error
- type PlacementPolicyDeleteRequest
- type PlacementPolicyReloadRequest
- type PlacementPolicySetRequest
- type Point
- type Psu
- type Quota
- type QuotaStatus
- type RemoteOperation
- type RemoteProvider
- func (e *RemoteProvider) Delete(ro *RemoteProviderDeleteRequest) (*RemoteProvider, *ApiErrorResponse, error)
- func (e *RemoteProvider) Reload(ro *RemoteProviderReloadRequest) (*RemoteProvider, *ApiErrorResponse, error)
- func (e *RemoteProvider) Set(ro *RemoteProviderSetRequest) (*RemoteProvider, *ApiErrorResponse, error)
- func (e *RemoteProvider) SetOperation(ao *RemoteProviderOperationsSetRequest) (*RemoteOperation, *ApiErrorResponse, error)
- type RemoteProviderAppTemplate
- type RemoteProviderDeleteRequest
- type RemoteProviderOperationsSetRequest
- type RemoteProviderReloadRequest
- type RemoteProviderSetRequest
- type RemoteProviders
- func (e *RemoteProviders) Create(ro *RemoteProvidersCreateRequest) (*RemoteProvider, *ApiErrorResponse, error)
- func (e *RemoteProviders) Get(ro *RemoteProvidersGetRequest) (*RemoteProvider, *ApiErrorResponse, error)
- func (e *RemoteProviders) List(ro *RemoteProvidersListRequest) ([]*RemoteProvider, *ApiErrorResponse, error)
- func (e *RemoteProviders) Refresh(ro *RemoteProvidersRefreshRequest) (*RemoteProvidersRefreshResponse, *ApiErrorResponse, error)
- type RemoteProvidersCreateRequest
- type RemoteProvidersGetRequest
- type RemoteProvidersListRequest
- type RemoteProvidersRefreshRequest
- type RemoteProvidersRefreshResponse
- type SDK
- type Snapshot
- type SnapshotDeleteRequest
- type SnapshotPolicies
- func (e *SnapshotPolicies) Create(ro *SnapshotPoliciesCreateRequest) (*SnapshotPolicy, *ApiErrorResponse, error)
- func (e *SnapshotPolicies) Get(ro *SnapshotPoliciesGetRequest) (*SnapshotPolicy, *ApiErrorResponse, error)
- func (e *SnapshotPolicies) List(ro *SnapshotPoliciesListRequest) ([]*SnapshotPolicy, *ApiErrorResponse, error)
- type SnapshotPoliciesCreateRequest
- type SnapshotPoliciesGetRequest
- type SnapshotPoliciesListRequest
- type SnapshotPolicy
- type SnapshotPolicyDeleteRequest
- type SnapshotPolicySetRequest
- type SnapshotReloadRequest
- type SnapshotSetRequest
- type Snapshots
- type SnapshotsCreateRequest
- type SnapshotsGetRequest
- type SnapshotsListRequest
- type StorageInstance
- func (e *StorageInstance) Delete(ro *StorageInstanceDeleteRequest) (*StorageInstance, *ApiErrorResponse, error)
- func (e *StorageInstance) Reload(ro *StorageInstanceReloadRequest) (*StorageInstance, *ApiErrorResponse, error)
- func (e *StorageInstance) Set(ro *StorageInstanceSetRequest) (*StorageInstance, *ApiErrorResponse, error)
- type StorageInstanceDeleteRequest
- type StorageInstanceReloadRequest
- type StorageInstanceSetRequest
- type StorageInstances
- func (e *StorageInstances) Create(ro *StorageInstancesCreateRequest) (*StorageInstance, *ApiErrorResponse, error)
- func (e *StorageInstances) Get(ro *StorageInstancesGetRequest) (*StorageInstance, *ApiErrorResponse, error)
- func (e *StorageInstances) List(ro *StorageInstancesListRequest) ([]*StorageInstance, *ApiErrorResponse, error)
- type StorageInstancesCreateRequest
- type StorageInstancesGetRequest
- type StorageInstancesListRequest
- type StorageNode
- type StorageNodeReloadRequest
- type StorageNodeSetRequest
- type StorageNodes
- type StorageNodesGetRequest
- type StorageNodesListRequest
- type StoragePool
- type StoragePoolDeleteRequest
- type StoragePoolSetRequest
- type StoragePools
- type StoragePoolsCreateRequest
- type StoragePoolsGetRequest
- type StoragePoolsListRequest
- type StorageTemplate
- type StorageTemplateDeleteRequest
- type StorageTemplateSetRequest
- type StorageTemplates
- func (e *StorageTemplates) Create(ro *StorageTemplatesCreateRequest) (*StorageTemplate, *ApiErrorResponse, error)
- func (e *StorageTemplates) Get(ro *StorageTemplatesGetRequest) (*StorageTemplate, *ApiErrorResponse, error)
- func (e *StorageTemplates) List(ro *StorageTemplatesListRequest) ([]*StorageTemplate, *ApiErrorResponse, error)
- type StorageTemplatesCreateRequest
- type StorageTemplatesGetRequest
- type StorageTemplatesListRequest
- type StringSet
- func (s *StringSet) Add(ns string)
- func (s *StringSet) Contains(ns string) bool
- func (s *StringSet) Delete(ns string)
- func (s *StringSet) Difference(ss *StringSet) *StringSet
- func (s *StringSet) Intersection(ss *StringSet) *StringSet
- func (s *StringSet) List() []string
- func (s *StringSet) SymDifference(ss *StringSet) *StringSet
- func (s *StringSet) Union(ss *StringSet) *StringSet
- type Subsystem
- type Subsystems
- type SubsystemsGetRequest
- type SubsystemsListRequest
- type System
- type SystemEvent
- type SystemEvents
- type SystemEventsRequest
- type SystemGetRequest
- type SystemReloadRequest
- type SystemSetRequest
- type Tenant
- type TenantDeleteRequest
- type TenantSetRequest
- type Tenants
- type TenantsCreateRequest
- type TenantsGetRequest
- type TenantsListRequest
- type Upgrade
- type UserData
- type UserDataGetRequest
- type UserDataSetRequest
- type UserDatas
- type UserDatasListRequest
- type Volume
- type VolumeDeleteRequest
- type VolumeReloadRequest
- type VolumeSetRequest
- type VolumeTemplate
- type VolumeTemplateDeleteRequest
- type VolumeTemplateSetRequest
- type VolumeTemplates
- func (e *VolumeTemplates) Create(ro *VolumeTemplatesCreateRequest) (*VolumeTemplate, *ApiErrorResponse, error)
- func (e *VolumeTemplates) Get(ro *VolumeTemplatesGetRequest) (*VolumeTemplate, *ApiErrorResponse, error)
- func (e *VolumeTemplates) List(ro *VolumeTemplatesListRequest) ([]*VolumeTemplate, *ApiErrorResponse, error)
- type VolumeTemplatesCreateRequest
- type VolumeTemplatesGetRequest
- type VolumeTemplatesListRequest
- type Volumes
- type VolumesCreateRequest
- type VolumesGetRequest
- type VolumesListRequest
- type WitnessPolicy
Constants ¶
View Source
const ( ProviderAWS = "AWS S3" ProviderGoogle = "Google Cloud" ProviderS3 = "S3 Object Store" )
View Source
const ( VERSION = "1.1.5" VERSION_HISTORY = `` /* 334-byte string literal not displayed */ )
View Source
const ( // SDK users can provide a map[string]interface{} with this key to those as additional // key/values in the logs UserLogFieldsCtxKey = ContextKey("user_log_fields") )
Variables ¶
View Source
var ( RetryTimeout = int64(300) ErrRetryTimeout = errors.New("timeout reached before request completed successfully during retries") InvalidRequest = 400 PermissionDenied = 401 Retry503 = 503 ConnectionError = 9998 RetryRequestAfterLogin = 9999 DateraDriver = fmt.Sprintf("Golang-SDK-%s", VERSION) )
View Source
var (
EndLogging = make(chan bool)
)
Functions ¶
func FillStruct ¶
func RegisterAppInstanceEndpoints ¶
func RegisterAppInstanceEndpoints(a *AppInstance)
func RegisterAppTemplateEndpoints ¶
func RegisterAppTemplateEndpoints(a *AppTemplate)
func RegisterRemoteProviderEndpoints ¶
func RegisterRemoteProviderEndpoints(rp *RemoteProvider)
func RegisterStorageInstanceEndpoints ¶
func RegisterStorageInstanceEndpoints(a *StorageInstance)
func RegisterStorageNodeEndpoints ¶
func RegisterStorageNodeEndpoints(a *StorageNode)
func RegisterStorageTemplateEndpoints ¶
func RegisterStorageTemplateEndpoints(a *StorageTemplate)
func RegisterSystemEndpoints ¶
func RegisterSystemEndpoints(a *System)
func RegisterVolumeEndpoints ¶
func RegisterVolumeEndpoints(a *Volume)
func RegisterVolumeTemplateEndpoints ¶
func RegisterVolumeTemplateEndpoints(a *VolumeTemplate)
Types ¶
type AccessNetworkIpPool ¶
type AccessNetworkIpPool struct { Path string `json:"path,omitempty" mapstructure:"path"` Name string `json:"name,omitempty" mapstructure:"name"` NetworkPaths []interface{} `json:"network_paths,omitempty" mapstructure:"network_paths"` Descr string `json:"descr,omitempty" mapstructure:"descr"` }
func (*AccessNetworkIpPool) Delete ¶
func (e *AccessNetworkIpPool) Delete(ro *AccessNetworkIpPoolDeleteRequest) (*AccessNetworkIpPool, *ApiErrorResponse, error)
func (*AccessNetworkIpPool) Set ¶
func (e *AccessNetworkIpPool) Set(ro *AccessNetworkIpPoolSetRequest) (*AccessNetworkIpPool, *ApiErrorResponse, error)
type AccessNetworkIpPools ¶
type AccessNetworkIpPools struct {
Path string
}
func (*AccessNetworkIpPools) Create ¶
func (e *AccessNetworkIpPools) Create(ro *AccessNetworkIpPoolsCreateRequest) (*AccessNetworkIpPool, *ApiErrorResponse, error)
func (*AccessNetworkIpPools) Get ¶
func (e *AccessNetworkIpPools) Get(ro *AccessNetworkIpPoolsGetRequest) (*AccessNetworkIpPool, *ApiErrorResponse, error)
func (*AccessNetworkIpPools) List ¶
func (e *AccessNetworkIpPools) List(ro *AccessNetworkIpPoolsListRequest) ([]*AccessNetworkIpPool, *ApiErrorResponse, error)
type AccessNetworkIpPoolsListRequest ¶
type AccessNetworkIpPoolsListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type AclPolicy ¶
type AclPolicy struct { Path string `json:"path,omitempty" mapstructure:"path"` Initiators []*Initiator `json:"initiators,omitempty" mapstructure:"initiators"` InitiatorGroups []*InitiatorGroups `json:"initiator_groups,omitempty" mapstructure:"initiator_groups"` }
func (*AclPolicy) Get ¶
func (e *AclPolicy) Get(ro *AclPolicyGetRequest) (*AclPolicy, *ApiErrorResponse, error)
func (*AclPolicy) Reload ¶
func (e *AclPolicy) Reload(ro *AclPolicyReloadRequest) (*AclPolicy, *ApiErrorResponse, error)
func (*AclPolicy) Set ¶
func (e *AclPolicy) Set(ro *AclPolicySetRequest) (*AclPolicy, *ApiErrorResponse, error)
type AclPolicyGetRequest ¶
type AclPolicyReloadRequest ¶
type AclPolicySetRequest ¶
type AclPolicySetRequest struct { Ctxt context.Context `json:"-"` Initiators []*Initiator `json:"initiators,omitempty" mapstructure:"initiators"` InitiatorGroups []*InitiatorGroups `json:"initiator_groups,omitempty" mapstructure:"initiator_groups"` }
type ApiConnection ¶
type ApiConnection struct {
// contains filtered or unexported fields
}
func GetConn ¶
func GetConn(ctxt context.Context) *ApiConnection
func NewApiConnection ¶
func NewApiConnection(c *udc.UDC, secure bool) *ApiConnection
func NewApiConnectionWithHTTPClient ¶ added in v1.2.0
func (*ApiConnection) ApiVersions ¶
func (c *ApiConnection) ApiVersions() []string
func (*ApiConnection) Delete ¶
func (c *ApiConnection) Delete(ctxt context.Context, url string, ro *greq.RequestOptions) (*ApiOuter, *ApiErrorResponse, error)
func (*ApiConnection) Get ¶
func (c *ApiConnection) Get(ctxt context.Context, url string, ro *greq.RequestOptions) (*ApiOuter, *ApiErrorResponse, error)
func (*ApiConnection) GetList ¶
func (c *ApiConnection) GetList(ctxt context.Context, url string, ro *greq.RequestOptions) (*ApiListOuter, *ApiErrorResponse, error)
func (*ApiConnection) Login ¶
func (c *ApiConnection) Login(ctxt context.Context) (*ApiErrorResponse, error)
func (*ApiConnection) Logout ¶ added in v1.2.2
func (c *ApiConnection) Logout()
func (*ApiConnection) Post ¶
func (c *ApiConnection) Post(ctxt context.Context, url string, ro *greq.RequestOptions) (*ApiOuter, *ApiErrorResponse, error)
func (*ApiConnection) Put ¶
func (c *ApiConnection) Put(ctxt context.Context, url string, ro *greq.RequestOptions) (*ApiOuter, *ApiErrorResponse, error)
type ApiErrorResponse ¶
type ApiErrorResponse struct { Name string `json:"name,omitempty"` Code int `json:"code,omitempty"` Http int `json:"http,omitempty"` Message string `json:"message,omitempty"` Ts string `json:"ts,omitempty"` Version string `json:"version,omitempty"` Op string `json:"op,omitempty"` Tenant string `json:"tenant,omitempty"` Path string `json:"path,omitempty"` Params map[string]string `json:"params,omitempty"` ConnInfo map[string]string `json:"connInfo,omitempty"` ClientId string `json:"client_id,omitempty"` ClientType string `json:"client_type,omitempty"` Id int `json:"api_req_id,omitempty"` TenancyClass string `json:"tenancy_class,omitempty"` Errors []string `json:"errors,omitempty"` }
type ApiListOuter ¶
type ApiVersions ¶
type ApiVersions struct {
ApiVersions []string `json:"api_versions"`
}
type AppInstance ¶
type AppInstance struct { AccessControlMode string `json:"access_control_mode,omitempty" mapstructure:"access_control_mode"` AdminState string `json:"admin_state,omitempty" mapstructure:"admin_state"` AppTemplate *AppInstanceAppTemplate `json:"app_template,omitempty" mapstructure:"app_template"` Causes []string `json:"causes,omitempty" mapstructure:"causes"` CloneSrc *AppInstance `json:"clone_src,omitempty" mapstructure:"clone_src"` CreateMode string `json:"create_mode,omitempty" mapstructure:"create_mode"` DeploymentState string `json:"deployment_state,omitempty" mapstructure:"deployment_state"` Descr string `json:"descr,omitempty" mapstructure:"descr"` Health string `json:"health,omitempty" mapstructure:"health"` Id string `json:"id,omitempty" mapstructure:"id"` Name string `json:"name,omitempty" mapstructure:"name"` OpState string `json:"op_state,omitempty" mapstructure:"op_state"` OperationPath string `json:"operation_path,omitempty" mapstructure:"operation_path"` Path string `json:"path,omitempty" mapstructure:"path"` RemoteRestorePercentage int `json:"remote_restore_percentage,omitempty" mapstructure:"remote_restore_percentage"` RemoteRestoreProgress string `json:"remote_restore_progress,omitempty" mapstructure:"remote_restore_progress"` RepairPriority string `json:"repair_priority,omitempty" mapstructure:"repair_priority"` RestorePoint string `json:"restore_point,omitempty" mapstructure:"restore_point"` RestoreProgress string `json:"restore_progress,omitempty" mapstructure:"restore_progress"` SnapshotPolicies []*SnapshotPolicy `json:"snapshot_policies,omitempty" mapstructure:"snapshot_policies"` Snapshots []*Snapshot `json:"snapshots,omitempty" mapstructure:"snapshots"` StorageInstances []*StorageInstance `json:"storage_instances,omitempty" mapstructure:"storage_instances"` StoragePool []*StoragePool `json:"storage_pool,omitempty" mapstructure:"storage_pool"` TemplateOverride map[string]interface{} `json:"template_override,omitempty" mapstructure:"template_override"` Uuid string `json:"uuid,omitempty" mapstructure:"uuid"` StorageInstancesEp *StorageInstances `json:"-"` SnapshotsEp *Snapshots `json:"-"` }
func (*AppInstance) Delete ¶
func (e *AppInstance) Delete(ro *AppInstanceDeleteRequest) (*AppInstance, *ApiErrorResponse, error)
func (*AppInstance) GetMetadata ¶
func (e *AppInstance) GetMetadata(ro *AppInstanceMetadataGetRequest) (*AppInstanceMetadata, *ApiErrorResponse, error)
func (*AppInstance) Reload ¶
func (e *AppInstance) Reload(ro *AppInstanceReloadRequest) (*AppInstance, *ApiErrorResponse, error)
func (*AppInstance) Set ¶
func (e *AppInstance) Set(ro *AppInstanceSetRequest) (*AppInstance, *ApiErrorResponse, error)
func (*AppInstance) SetMetadata ¶
func (e *AppInstance) SetMetadata(ro *AppInstanceMetadataSetRequest) (*AppInstanceMetadata, *ApiErrorResponse, error)
type AppInstanceAppTemplate ¶
type AppInstanceMetadata ¶
type AppInstanceSetRequest ¶
type AppInstanceSetRequest struct { Ctxt context.Context `json:"-"` AdminState string `json:"admin_state,omitempty" mapstructure:"admin_state"` Descr string `json:"descr,omitempty" mapstructure:"descr"` Force bool `json:"force,omitempty" mapstructure:"force"` Name string `json:"name,omitempty" mapstructure:"name"` Provisioned string `json:"provisioned,omitempty" mapstructure:"provisioned"` RemoteProvider string `json:"remote_provider,omitempty" mapstructure:"remote_provider"` RemoteRestorePoint string `json:"remote_restore_point,omitempty" mapstructure:"remote_restore_point"` RepairPriority string `json:"repair_priority,omitempty" mapstructure:"repair_priority"` RestorePoint string `json:"restore_point,omitempty" mapstructure:"restore_point"` SnapshotPolicies []*SnapshotPolicy `json:"snapshot_policies,omitempty" mapstructure:"snapshot_policies"` StorageInstances []*StorageInstance `json:"storage_instances,omitempty" mapstructure:"storage_instances"` StoragePool []*StoragePool `json:"storage_pool,omitempty" mapstructure:"storage_pool"` }
type AppInstances ¶
type AppInstances struct {
Path string
}
func (*AppInstances) Create ¶
func (e *AppInstances) Create(ro *AppInstancesCreateRequest) (*AppInstance, *ApiErrorResponse, error)
func (*AppInstances) Get ¶
func (e *AppInstances) Get(ro *AppInstancesGetRequest) (*AppInstance, *ApiErrorResponse, error)
func (*AppInstances) List ¶
func (e *AppInstances) List(ro *AppInstancesListRequest) ([]*AppInstance, *ApiErrorResponse, error)
type AppInstancesCreateRequest ¶
type AppInstancesCreateRequest struct { Ctxt context.Context `json:"-"` AppTemplate *AppInstanceAppTemplate `json:"app_template,omitempty" mapstructure:"app_template"` CloneSnapshotSrc *Snapshot `json:"clone_snapshot_src,omitempty" mapstructure:"clone_snapshot_src"` CloneVolumeSrc *Volume `json:"clone_volume_src,omitempty" mapstructure:"clone_volume_src"` CloneSrc *AppInstance `json:"clone_src,omitempty" mapstructure:"clone_src"` CreateMode string `json:"create_mode,omitempty" mapstructure:"create_mode"` Descr string `json:"descr,omitempty" mapstructure:"descr"` Name string `json:"name,omitempty" mapstructure:"name"` RepairPriority string `json:"repair_priority,omitempty" mapstructure:"repair_priority"` SnapshotPolicies []*SnapshotPolicy `json:"snapshot_policies,omitempty" mapstructure:"snapshot_policies"` StorageInstances []*StorageInstance `json:"storage_instances,omitempty" mapstructure:"storage_instances"` StoragePool []*StoragePool `json:"storage_pool,omitempty" mapstructure:"storage_pool"` TemplateOverride map[string]interface{} `json:"template_override,omitempty" mapstructure:"template_override"` }
type AppInstancesGetRequest ¶
type AppInstancesListRequest ¶
type AppInstancesListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type AppTemplate ¶
type AppTemplate struct { Path string `json:"path,omitempty" mapstructure:"path"` AppInstances []*AppInstance `json:"app_instances,omitempty" mapstructure:"app_instances"` Name string `json:"name,omitempty" mapstructure:"name"` Descr string `json:"descr,omitempty" mapstructure:"descr"` SnapshotPolicies []*SnapshotPolicy `json:"snapshot_policies,omitempty" mapstructure:"snapshot_policies"` StorageTemplates []*StorageTemplate `json:"storage_templates,omitempty" mapstructure:"storage_templates"` StorageTemplatesEp *StorageTemplates `json:"-"` }
func (*AppTemplate) Delete ¶
func (e *AppTemplate) Delete(ro *AppTemplateDeleteRequest) (*AppTemplate, *ApiErrorResponse, error)
func (*AppTemplate) Set ¶
func (e *AppTemplate) Set(ro *AppTemplateSetRequest) (*AppTemplate, *ApiErrorResponse, error)
type AppTemplateSetRequest ¶
type AppTemplateSetRequest struct { Ctxt context.Context `json:"-"` Descr string `json:"descr,omitempty" mapstructure:"descr"` SnapshotPolicies []*SnapshotPolicy `json:"snapshot_policies,omitempty" mapstructure:"snapshot_policies"` StorageTemplates []*StorageTemplate `json:"storage_templates,omitempty" mapstructure:"storage_templates"` }
type AppTemplates ¶
type AppTemplates struct {
Path string
}
func (*AppTemplates) Create ¶
func (e *AppTemplates) Create(ro *AppTemplatesCreateRequest) (*AppTemplate, *ApiErrorResponse, error)
func (*AppTemplates) Get ¶
func (e *AppTemplates) Get(ro *AppTemplatesGetRequest) (*AppTemplate, *ApiErrorResponse, error)
func (*AppTemplates) List ¶
func (e *AppTemplates) List(ro *AppTemplatesListRequest) ([]*AppTemplate, *ApiErrorResponse, error)
type AppTemplatesCreateRequest ¶
type AppTemplatesCreateRequest struct { Ctxt context.Context `json:"-"` CopyFrom *AppTemplate `json:"copy_from,omitempty" mapstructure:"copy_from"` Name string `json:"name,omitempty" mapstructure:"name"` Descr string `json:"descr,omitempty" mapstructure:"descr"` SnapshotPolicies []*SnapshotPolicy `json:"snapshot_policies,omitempty" mapstructure:"snapshot_policies"` StorageTemplates []*StorageTemplate `json:"storage_templates,omitempty" mapstructure:"storage_templates"` }
type AppTemplatesGetRequest ¶
type AppTemplatesListRequest ¶
type AppTemplatesListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type Auth ¶
type Auth struct { Path string `json:"path,omitempty" mapstructure:"path"` Type string `json:"type,omitempty" mapstructure:"type"` InitiatorUserName string `json:"initiator_user_name,omitempty" mapstructure:"initiator_user_name"` InitiatorPassword string `json:"initiator_pswd,omitempty" mapstructure:"initiator_pswd"` TargetUserName string `json:"target_user_name,omitempty" mapstructure:"target_user_name"` TargetPassword string `json:"target_pswd,omitempty" mapstructure:"target_pswd"` AccessKey string `json:"access_key,omitempty" mapstructure:"access_key"` SecretKey string `json:"secret_key,omitempty" mapstructure:"secret_key"` }
type BootDrive ¶
type BootDrive struct { Path string `json:"path,omitempty" mapstructure:"path"` Causes []string `json:"causes,omitempty" mapstructure:"causes"` Health string `json:"health,omitempty" mapstructure:"health"` Id string `json:"id,omitempty" mapstructure:"id"` OpState string `json:"op_state,omitempty" mapstructure:"op_state"` Size int `json:"size,omitempty" mapstructure:"size"` SlotLabel string `json:"slot_label,omitempty" mapstructure:"slot_label"` }
type BootDrives ¶
type BootDrives struct {
Path string
}
func (*BootDrives) Get ¶
func (e *BootDrives) Get(ro *BootDrivesGetRequest) (*BootDrive, *ApiErrorResponse, error)
func (*BootDrives) List ¶
func (e *BootDrives) List(ro *BootDrivesListRequest) ([]*BootDrive, *ApiErrorResponse, error)
type BootDrivesGetRequest ¶
type BootDrivesListRequest ¶
type BootDrivesListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type ContextKey ¶ added in v1.4.0
type ContextKey string
type FailureDomain ¶
type FailureDomain struct { Path string `json:"path,omitempty" mapstructure:"path"` Name string `json:"name,omitempty" mapstructure:"name"` StorageNodes []StorageNode `json:"storage_nodes,omitempty" mapstructure:"storage_nodes"` }
func (*FailureDomain) Delete ¶
func (e *FailureDomain) Delete(ro *FailureDomainDeleteRequest) (*FailureDomain, *ApiErrorResponse, error)
func (*FailureDomain) Set ¶
func (e *FailureDomain) Set(ro *FailureDomainSetRequest) (*FailureDomain, *ApiErrorResponse, error)
type FailureDomainSetRequest ¶
type FailureDomainSetRequest struct { Ctxt context.Context `json:"-"` StorageNodes []StorageNode `json:"storage_nodes,omitempty" mapstructure:"storage_nodes"` }
type FailureDomains ¶
type FailureDomains struct {
Path string
}
func (*FailureDomains) Create ¶
func (e *FailureDomains) Create(ro *FailureDomainsCreateRequest) (*FailureDomain, *ApiErrorResponse, error)
func (*FailureDomains) Get ¶
func (e *FailureDomains) Get(ro *FailureDomainsGetRequest) (*FailureDomain, *ApiErrorResponse, error)
func (*FailureDomains) List ¶
func (e *FailureDomains) List(ro *FailureDomainsListRequest) ([]*FailureDomain, *ApiErrorResponse, error)
type FailureDomainsCreateRequest ¶
type FailureDomainsCreateRequest struct { Ctxt context.Context `json:"-"` Name string `json:"name,omitempty" mapstructure:"name"` StorageNodes []StorageNode `json:"storage_nodes,omitempty" mapstructure:"storage_nodes"` }
type FailureDomainsListRequest ¶
type FailureDomainsListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type HWMetrics ¶ added in v1.2.0
type HWMetrics struct {
Path string
}
func (*HWMetrics) List ¶ added in v1.2.1
func (m *HWMetrics) List(ro *HWMetricsRequest) ([]*Metrics, *ApiErrorResponse, error)
type HWMetricsRequest ¶ added in v1.2.0
type HWMetricsRequest struct { Ctxt context.Context `json:"-"` Type IOMetric `json:"-"` Params MetricsParams `json:"params,omitempty"` }
type IOMetric ¶ added in v1.2.0
type IOMetric string
const ( Reads IOMetric = "reads" Writes IOMetric = "writes" BytesRead IOMetric = "bytes_read" BytesWritten IOMetric = "bytes_written" IOPSRead IOMetric = "iops_read" IOPSWrite IOMetric = "iops_write" ThptRead IOMetric = "thpt_read" ThptWrite IOMetric = "thpt_write" LatAvgRead IOMetric = "lat_avg_read" LatAvgWrite IOMetric = "lat_avg_write" Lat50Read IOMetric = "lat_50_read" Lat90Read IOMetric = "lat_90_read" Lat100Read IOMetric = "lat_100_read" Lat50Write IOMetric = "lat_50_write" Lat90Write IOMetric = "lat_90_write" Lat100Write IOMetric = "lat_100_write" )
type IOMetrics ¶ added in v1.2.0
type IOMetrics struct {
Path string
}
func (*IOMetrics) List ¶ added in v1.2.1
func (m *IOMetrics) List(ro *IOMetricsRequest) ([]*Metrics, *ApiErrorResponse, error)
type IOMetricsRequest ¶ added in v1.2.0
type IOMetricsRequest struct { Ctxt context.Context `json:"-"` Type IOMetric `json:"-"` Params MetricsParams `json:"params,omitempty"` }
type Initiator ¶
type Initiator struct { Path string `json:"path,omitempty" mapstructure:"path"` Id string `json:"id,omitempty" mapstructure:"id"` Name string `json:"name,omitempty" mapstructure:"name"` Tenant string `json:"tenant,omitempty" mapstructure:"tenant"` }
func (*Initiator) Delete ¶
func (e *Initiator) Delete(ro *InitiatorDeleteRequest) (*Initiator, *ApiErrorResponse, error)
func (*Initiator) Set ¶
func (e *Initiator) Set(ro *InitiatorSetRequest) (*Initiator, *ApiErrorResponse, error)
type InitiatorDeleteRequest ¶
type InitiatorGroup ¶
type InitiatorGroup struct { Path string `json:"path,omitempty" mapstructure:"path"` Name string `json:"name,omitempty" mapstructure:"name"` Members []Initiator `json:"members,omitempty" mapstructure:"members"` }
func (*InitiatorGroup) Delete ¶
func (e *InitiatorGroup) Delete(ro *InitiatorGroupDeleteRequest) (*InitiatorGroup, *ApiErrorResponse, error)
func (*InitiatorGroup) Set ¶
func (e *InitiatorGroup) Set(ro *InitiatorGroupSetRequest) (*InitiatorGroup, *ApiErrorResponse, error)
type InitiatorGroups ¶
type InitiatorGroups struct {
Path string
}
func (*InitiatorGroups) Create ¶
func (e *InitiatorGroups) Create(ro *InitiatorGroupsCreateRequest) (*InitiatorGroup, *ApiErrorResponse, error)
func (*InitiatorGroups) Get ¶
func (e *InitiatorGroups) Get(ro *InitiatorGroupsGetRequest) (*InitiatorGroup, *ApiErrorResponse, error)
func (*InitiatorGroups) List ¶
func (e *InitiatorGroups) List(ro *InitiatorGroupsListRequest) ([]*InitiatorGroup, *ApiErrorResponse, error)
type InitiatorGroupsListRequest ¶
type InitiatorGroupsListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type InitiatorSetRequest ¶
type Initiators ¶
type Initiators struct {
Path string
}
func (*Initiators) Create ¶
func (e *Initiators) Create(ro *InitiatorsCreateRequest) (*Initiator, *ApiErrorResponse, error)
func (*Initiators) Get ¶
func (e *Initiators) Get(ro *InitiatorsGetRequest) (*Initiator, *ApiErrorResponse, error)
func (*Initiators) List ¶
func (e *Initiators) List(ro *InitiatorsListRequest) ([]*Initiator, *ApiErrorResponse, error)
type InitiatorsCreateRequest ¶
type InitiatorsGetRequest ¶
type InitiatorsListRequest ¶
type InitiatorsListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type IntSet ¶
type IntSet struct {
// contains filtered or unexported fields
}
func (*IntSet) Difference ¶
func (*IntSet) Intersection ¶
func (*IntSet) SymDifference ¶
type ListParams ¶
type ListParams struct { Filter string `json:"filter,omitempty" mapstructure:"filter"` Limit int `json:"limit,omitempty" mapstructure:"limit"` Sort string `json:"sort,omitempty" mapstructure:"sort"` Offset int `json:"offset,omitempty" mapstructure:"offset"` }
func ListParamsFromMap ¶
func ListParamsFromMap(m map[string]string) *ListParams
func (ListParams) ToMap ¶
func (s ListParams) ToMap() map[string]string
type ListRangeParams ¶
type ListRangeParams struct { Since string `json:"since,omitempty" mapstructure:"since"` From string `json:"from,omitempty" mapstructure:"from"` To string `json:"to,omitempty" mapstructure:"to"` Filter string `json:"filter,omitempty" mapstructure:"filter"` Limit int `json:"limit,omitempty" mapstructure:"limit"` Sort string `json:"sort,omitempty" mapstructure:"sort"` Offset int `json:"offset,omitempty" mapstructure:"offset"` }
func ListRangeParamsFromMap ¶
func ListRangeParamsFromMap(m map[string]string) *ListRangeParams
func (ListRangeParams) ToMap ¶
func (s ListRangeParams) ToMap() map[string]string
type LogFormatter ¶
type LogFormatter struct { }
type LogsUpload ¶
type LogsUpload struct {
Path string `json:"path,omitempty"`
}
func (*LogsUpload) RotateUploadRemove ¶
func (e *LogsUpload) RotateUploadRemove(ctxt context.Context, rule, rotated string) error
func (*LogsUpload) Upload ¶
func (e *LogsUpload) Upload(ro *LogsUploadRequest) (*LogsUpload, *ApiErrorResponse, error)
type LogsUploadRequest ¶
type MetricsParams ¶ added in v1.2.0
type MetricsParams struct { ListRangeParams Ival string UUID string Path string }
func (MetricsParams) ToMap ¶ added in v1.2.0
func (mp MetricsParams) ToMap() map[string]string
type NetworkDevice ¶
type NetworkDevice struct{}
type PerformancePolicy ¶
type PerformancePolicy struct { Path string `json:"path,omitempty" mapstructure:"path"` WriteIopsMax int `json:"write_iops_max,omitempty" mapstructure:"write_iops_max"` ReadIopsMax int `json:"read_iops_max,omitempty" mapstructure:"read_iops_max"` TotalIopsMax int `json:"total_iops_max,omitempty" mapstructure:"total_iops_max"` WriteBandwidthMax int `json:"write_bandwidth_max,omitempty" mapstructure:"write_bandwidth_max"` ReadBandwidthMax int `json:"read_bandwidth_max,omitempty" mapstructure:"read_bandwidth_max"` TotalBandwidthMax int `json:"total_bandwidth_max,omitempty" mapstructure:"total_bandwidth_max"` }
func (*PerformancePolicy) Create ¶
func (e *PerformancePolicy) Create(ro *PerformancePolicyCreateRequest) (*PerformancePolicy, *ApiErrorResponse, error)
func (*PerformancePolicy) Delete ¶
func (e *PerformancePolicy) Delete(ro *PerformancePolicyDeleteRequest) (*PerformancePolicy, *ApiErrorResponse, error)
func (*PerformancePolicy) Get ¶
func (e *PerformancePolicy) Get(ro *PerformancePolicyGetRequest) (*PerformancePolicy, *ApiErrorResponse, error)
func (*PerformancePolicy) List ¶
func (e *PerformancePolicy) List(ro *PerformancePolicyListRequest) ([]*PerformancePolicy, *ApiErrorResponse, error)
func (*PerformancePolicy) Set ¶
func (e *PerformancePolicy) Set(ro *PerformancePolicySetRequest) (*PerformancePolicy, *ApiErrorResponse, error)
type PerformancePolicyCreateRequest ¶
type PerformancePolicyCreateRequest struct { Ctxt context.Context `json:"-"` WriteIopsMax int `json:"write_iops_max" mapstructure:"write_iops_max"` ReadIopsMax int `json:"read_iops_max" mapstructure:"read_iops_max"` TotalIopsMax int `json:"total_iops_max" mapstructure:"total_iops_max"` WriteBandwidthMax int `json:"write_bandwidth_max" mapstructure:"write_bandwidth_max"` ReadBandwidthMax int `json:"read_bandwidth_max" mapstructure:"read_bandwidth_max"` TotalBandwidthMax int `json:"total_bandwidth_max" mapstructure:"total_bandwidth_max"` }
type PerformancePolicyListRequest ¶
type PerformancePolicyListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type PerformancePolicySetRequest ¶
type PerformancePolicySetRequest struct { Ctxt context.Context `json:"-"` WriteIopsMax int `json:"write_iops_max" mapstructure:"write_iops_max"` ReadIopsMax int `json:"read_iops_max" mapstructure:"read_iops_max"` TotalIopsMax int `json:"total_iops_max" mapstructure:"total_iops_max"` WriteBandwidthMax int `json:"write_bandwidth_max" mapstructure:"write_bandwidth_max"` ReadBandwidthMax int `json:"read_bandwidth_max" mapstructure:"read_bandwidth_max"` TotalBandwidthMax int `json:"total_bandwidth_max" mapstructure:"total_bandwidth_max"` }
type PlacementPolicies ¶ added in v1.3.0
type PlacementPolicies struct {
Path string
}
func (*PlacementPolicies) Create ¶ added in v1.3.0
func (e *PlacementPolicies) Create(ro *PlacementPoliciesCreateRequest) (*PlacementPolicy, *ApiErrorResponse, error)
func (*PlacementPolicies) Get ¶ added in v1.3.0
func (e *PlacementPolicies) Get(ro *PlacementPoliciesGetRequest) (*PlacementPolicy, *ApiErrorResponse, error)
func (*PlacementPolicies) List ¶ added in v1.3.0
func (e *PlacementPolicies) List(ro *PlacementPoliciesListRequest) ([]*PlacementPolicy, *ApiErrorResponse, error)
type PlacementPoliciesCreateRequest ¶ added in v1.3.0
type PlacementPoliciesCreateRequest struct { Ctxt context.Context `json:"-"` Name string `json:"name,omitempty" mapstructure:"name"` Descr string `json:"descr,omitempty" mapstructure:"descr"` Max []string `json:"max,omitempty" mapstructure:"max"` Min []string `json:"min,omitempty" mapstructure:"min"` }
type PlacementPoliciesGetRequest ¶ added in v1.3.0
type PlacementPoliciesListRequest ¶ added in v1.3.0
type PlacementPoliciesListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type PlacementPolicy ¶
type PlacementPolicy struct { Path string `json:"path,omitempty" mapstructure:"path"` ResolvedPath string `json:"resolved_path,omitempty" mapstructure:"resolved_path"` ResolvedTenant string `json:"resolved_tenant,omitempty" mapstructure:"resolved_tenant"` Name string `json:"name,omitempty" mapstructure:"name"` Descr string `json:"descr,omitempty" mapstructure:"descr"` Max []string `json:"max,omitempty" mapstructure:"max"` Min []string `json:"min,omitempty" mapstructure:"min"` }
func (*PlacementPolicy) Delete ¶ added in v1.3.0
func (e *PlacementPolicy) Delete(ro *PlacementPolicyDeleteRequest) (*PlacementPolicy, *ApiErrorResponse, error)
func (PlacementPolicy) MarshalJSON ¶
func (p PlacementPolicy) MarshalJSON() ([]byte, error)
func (*PlacementPolicy) Reload ¶ added in v1.3.0
func (e *PlacementPolicy) Reload(ro *PlacementPolicyReloadRequest) (*PlacementPolicy, *ApiErrorResponse, error)
func (*PlacementPolicy) Set ¶ added in v1.3.0
func (e *PlacementPolicy) Set(ro *PlacementPolicySetRequest) (*PlacementPolicy, *ApiErrorResponse, error)
func (PlacementPolicy) UnmarshalJSON ¶
func (p PlacementPolicy) UnmarshalJSON(b []byte) error
type PlacementPolicyDeleteRequest ¶ added in v1.3.0
type PlacementPolicyReloadRequest ¶ added in v1.3.0
type PlacementPolicySetRequest ¶ added in v1.3.0
type QuotaStatus ¶
type QuotaStatus interface{}
type RemoteOperation ¶ added in v1.2.0
type RemoteOperation struct { Path string `json:"path" mapstructure:"path"` Uuid string `json:"uuid" mapstructure:"uuid"` RemoteProviderUuid string `json:"remote_provider_uuid" mapstructure:"remote_provider_uuid"` AppInstanceUuid string `json:"app_instance_uuid" mapstructure:"app_instance_uuid"` OpState string `json:"op_state" mapstructure:"op_state"` OpType string `json:"op_type" mapstructure:"op_type"` PercentDone int `json:"percent_done" mapstructure:"percent_done"` TotalTasksDone int `json:"total_tasks_done" mapstructure:"total_tasks_done"` TotalTasksIssued int `json:"total_tasks_issued" mapstructure:"total_tasks_issued"` References struct { SnapshotAppInstancePath string `json:"snapshot_app_instance_path" mapstructure:"snapshot_app_instance_path"` } `json:"references" mapstructure:"references"` }
type RemoteProvider ¶
type RemoteProvider struct { Path string `json:"path,omitempty" mapstructure:"path"` Uuid string `json:"uuid,omitempty" mapstructure:"uuid"` AccountId string `json:"account_id,omitempty" mapstructure:"account_id"` RemoteType string `json:"remote_type,omitempty" mapstructure:"remote_type"` LastSeenTimestamp string `json:"last_seen_timestamp,omitempty" mapstructure:"last_seen_timestamp"` Operations []map[string]interface{} `json:"operations,omitempty" mapstructure:"operations"` Snapshots []*Snapshot `json:"snapshots,omitempty" mapstructure:"snapshots"` Label string `json:"label,omitempty" mapstructure:"label"` Status string `json:"status,omitempty" mapstructure:"status"` Host string `json:"host,omitempty" mapstructure:"host"` Port int `json:"port,omitempty" mapstructure:"port"` OperationsEp string SnapshotsEp *Snapshots // Present only when the RemoteProvider is a subresource of a snapshot. Indicates the replication state of the // snapshot on this RemoteProvider. OpStatus string `json:"op_status,omitempty" mapstructure:"op_status"` }
func (*RemoteProvider) Delete ¶
func (e *RemoteProvider) Delete(ro *RemoteProviderDeleteRequest) (*RemoteProvider, *ApiErrorResponse, error)
func (*RemoteProvider) Reload ¶
func (e *RemoteProvider) Reload(ro *RemoteProviderReloadRequest) (*RemoteProvider, *ApiErrorResponse, error)
func (*RemoteProvider) Set ¶
func (e *RemoteProvider) Set(ro *RemoteProviderSetRequest) (*RemoteProvider, *ApiErrorResponse, error)
func (*RemoteProvider) SetOperation ¶ added in v1.2.0
func (e *RemoteProvider) SetOperation(ao *RemoteProviderOperationsSetRequest) (*RemoteOperation, *ApiErrorResponse, error)
type RemoteProviderOperationsSetRequest ¶ added in v1.2.0
type RemoteProviderSetRequest ¶
type RemoteProviderSetRequest struct { Ctxt context.Context `json:"-"` ProjectName string `json:"project_name,omitempty" mapstructure:"project_name"` AccountId string `json:"account_id,omitempty" mapstructure:"account_id"` PrivateKey string `json:"private_key,omitempty" mapstructure:"private_key"` Label string `json:"label,omitempty" mapstructure:"label"` Host string `json:"host,omitempty" mapstructure:"host"` Port int `json:"port,omitempty" mapstructure:"port"` AccessKey string `json:"access_key,omitempty" mapstructure:"access_key"` SecretKey string `json:"secret_key,omitempty" mapstructure:"secret_key"` }
type RemoteProviders ¶
type RemoteProviders struct {
Path string
}
func (*RemoteProviders) Create ¶
func (e *RemoteProviders) Create(ro *RemoteProvidersCreateRequest) (*RemoteProvider, *ApiErrorResponse, error)
func (*RemoteProviders) Get ¶
func (e *RemoteProviders) Get(ro *RemoteProvidersGetRequest) (*RemoteProvider, *ApiErrorResponse, error)
func (*RemoteProviders) List ¶
func (e *RemoteProviders) List(ro *RemoteProvidersListRequest) ([]*RemoteProvider, *ApiErrorResponse, error)
func (*RemoteProviders) Refresh ¶ added in v1.1.8
func (e *RemoteProviders) Refresh(ro *RemoteProvidersRefreshRequest) (*RemoteProvidersRefreshResponse, *ApiErrorResponse, error)
type RemoteProvidersCreateRequest ¶
type RemoteProvidersCreateRequest struct { Ctxt context.Context `json:"-"` ProjectName string `json:"project_name,omitempty" mapstructure:"project_name"` AccountId string `json:"account_id,omitempty" mapstructure:"account_id"` RemoteType string `json:"remote_type,omitempty" mapstructure:"remote_type"` PrivateKey string `json:"private_key,omitempty" mapstructure:"private_key"` Label string `json:"label,omitempty" mapstructure:"label"` Host string `json:"host,omitempty" mapstructure:"host"` Port int `json:"port,omitempty" mapstructure:"port"` AccessKey string `json:"access_key,omitempty" mapstructure:"access_key"` SecretKey string `json:"secret_key,omitempty" mapstructure:"secret_key"` }
type RemoteProvidersListRequest ¶
type RemoteProvidersListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type RemoteProvidersRefreshRequest ¶ added in v1.1.8
type RemoteProvidersRefreshResponse ¶ added in v1.1.8
type RemoteProvidersRefreshResponse struct {
Uuid string `json:"uuid,omitempty" mapstructure:"uuid"`
}
type SDK ¶
type SDK struct { Conn *ApiConnection Ctxt context.Context AccessNetworkIpPools *AccessNetworkIpPools AppInstances *AppInstances AppTemplates *AppTemplates Initiators *Initiators InitiatorGroups *InitiatorGroups LogsUpload *LogsUpload HWMetrics *HWMetrics IOMetrics *IOMetrics PlacementPolicies *PlacementPolicies RemoteProvider *RemoteProviders StorageNodes *StorageNodes StoragePools *StoragePools System *System SystemEvents *SystemEvents Tenants *Tenants UserData *UserDatas // contains filtered or unexported fields }
func NewSDKWithHTTPClient ¶ added in v1.2.0
func (SDK) GetDateraVersion ¶
func (SDK) HealthCheck ¶
Cleans AppInstances, AppTemplates, StorageInstances, Initiators and InitiatorGroups under the currently configured tenant
func (SDK) NewContext ¶
type Snapshot ¶
type Snapshot struct { Path string `json:"path,omitempty" mapstructure:"path"` Timestamp string `json:"timestamp,omitempty" mapstructure:"timestamp"` Uuid string `json:"uuid,omitempty" mapstructure:"uuid"` RemoteProviders []*RemoteProvider `json:"remote_providers,omitempty" mapstructure:"remote_providers"` OpState string `json:"op_state,omitempty" mapstructure:"op_state"` UtcTs string `json:"utc_ts,omitempty" mapstructure:"utc_ts"` PhysicalSize int `json:"physical_size,omitempty" mapstructure:"physical_size"` LogicalSize int `json:"logical_size,omitempty" mapstructure:"logical_size"` ExclusiveSize int `json:"exclusive_size,omitempty" mapstructure:"exclusive_size"` EffectiveSize int `json:"effective_size,omitempty" mapstructure:"effective_size"` Local bool `json:"local,omitempty" mapstructure:"local"` AppStructure interface{} `json:"app_structure,omitempty" mapstructure:"app_structure"` TsVersion string `json:"ts_version,omitempty" mapstructure:"ts_version"` Version string `json:"version,omitempty" mapstructure:"version"` Type string `json:"type,omitempty" mapstructure:"type"` ClusterId string `json:"cluster_id,omitempty" mapstructure:"cluster_id"` }
func (*Snapshot) Delete ¶
func (e *Snapshot) Delete(ro *SnapshotDeleteRequest) (*Snapshot, *ApiErrorResponse, error)
func (*Snapshot) Reload ¶
func (e *Snapshot) Reload(ro *SnapshotReloadRequest) (*Snapshot, *ApiErrorResponse, error)
func (*Snapshot) Set ¶ added in v1.2.2
func (e *Snapshot) Set(ro *SnapshotSetRequest) (*Snapshot, *ApiErrorResponse, error)
type SnapshotDeleteRequest ¶
type SnapshotPolicies ¶
type SnapshotPolicies struct {
Path string
}
func (*SnapshotPolicies) Create ¶
func (e *SnapshotPolicies) Create(ro *SnapshotPoliciesCreateRequest) (*SnapshotPolicy, *ApiErrorResponse, error)
func (*SnapshotPolicies) Get ¶
func (e *SnapshotPolicies) Get(ro *SnapshotPoliciesGetRequest) (*SnapshotPolicy, *ApiErrorResponse, error)
func (*SnapshotPolicies) List ¶
func (e *SnapshotPolicies) List(ro *SnapshotPoliciesListRequest) ([]*SnapshotPolicy, *ApiErrorResponse, error)
type SnapshotPoliciesCreateRequest ¶
type SnapshotPoliciesCreateRequest struct { Ctxt context.Context `json:"-"` Name string `json:"name,omitempty" mapstructure:"name"` Interval string `json:"interval,omitempty" mapstructure:"interval"` RetentionCount string `json:"retention_count,omitempty" mapstructure:"retention_count"` StartTime string `json:"start_time,omitempty" mapstructure:"start_time"` }
type SnapshotPoliciesListRequest ¶
type SnapshotPoliciesListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type SnapshotPolicy ¶
type SnapshotPolicy struct { Path string `json:"path,omitempty" mapstructure:"path"` Name string `json:"name,omitempty" mapstructure:"name"` Interval string `json:"interval,omitempty" mapstructure:"interval"` RetentionCount int `json:"retention_count,omitempty" mapstructure:"retention_count"` StartTime string `json:"start_time,omitempty" mapstructure:"start_time"` }
func (*SnapshotPolicy) Delete ¶
func (e *SnapshotPolicy) Delete(ro *SnapshotPolicyDeleteRequest) (*SnapshotPolicy, *ApiErrorResponse, error)
func (*SnapshotPolicy) Set ¶
func (e *SnapshotPolicy) Set(ro *SnapshotPolicySetRequest) (*SnapshotPolicy, *ApiErrorResponse, error)
type SnapshotReloadRequest ¶
type SnapshotSetRequest ¶ added in v1.2.2
type Snapshots ¶
type Snapshots struct {
Path string
}
func (*Snapshots) Create ¶
func (e *Snapshots) Create(ro *SnapshotsCreateRequest) (*Snapshot, *ApiErrorResponse, error)
func (*Snapshots) Get ¶
func (e *Snapshots) Get(ro *SnapshotsGetRequest) (*Snapshot, *ApiErrorResponse, error)
func (*Snapshots) List ¶
func (e *Snapshots) List(ro *SnapshotsListRequest) ([]*Snapshot, *ApiErrorResponse, error)
type SnapshotsCreateRequest ¶
type SnapshotsGetRequest ¶
type SnapshotsListRequest ¶
type SnapshotsListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type StorageInstance ¶
type StorageInstance struct { Path string `json:"path,omitempty" mapstructure:"path"` Access *Access `json:"access,omitempty" mapstructure:"access"` AccessControlMode string `json:"access_control_mode,omitempty" mapstructure:"access_control_mode"` AclPolicy *AclPolicy `json:"acl_policy,omitempty" mapstructure:"acl_policy"` ActiveInitiators []string `json:"active_initiators,omitempty" mapstructure:"active_initiators"` ActiveStorageNodes []*StorageNode `json:"active_storage_nodes,omitempty" mapstructure:"active_storage_nodes"` AdminState string `json:"admin_state,omitempty" mapstructure:"admin_state"` Auth *Auth `json:"auth,omitempty" mapstructure:"auth"` Causes []string `json:"causes,omitempty" mapstructure:"causes"` DeploymentState string `json:"deployment_state,omitempty" mapstructure:"deployment_state"` Health string `json:"health,omitempty" mapstructure:"health"` IpPool *AccessNetworkIpPool `json:"ip_pool,omitempty" mapstructure:"ip_pool"` Name string `json:"name,omitempty" mapstructure:"name"` OpState string `json:"op_state,omitempty" mapstructure:"op_state"` ServiceConfiguration string `json:"service_configuration,omitempty" mapstructure:"service_configuration"` Uuid string `json:"uuid,omitempty" mapstructure:"uuid"` Volumes []*Volume `json:"volumes,omitempty" mapstructure:"volumes"` VolumesEp *Volumes `json:"-"` IpPoolEp *AccessNetworkIpPools `json:"-"` }
func (*StorageInstance) Delete ¶
func (e *StorageInstance) Delete(ro *StorageInstanceDeleteRequest) (*StorageInstance, *ApiErrorResponse, error)
func (*StorageInstance) Reload ¶
func (e *StorageInstance) Reload(ro *StorageInstanceReloadRequest) (*StorageInstance, *ApiErrorResponse, error)
func (*StorageInstance) Set ¶
func (e *StorageInstance) Set(ro *StorageInstanceSetRequest) (*StorageInstance, *ApiErrorResponse, error)
type StorageInstanceSetRequest ¶
type StorageInstanceSetRequest struct { Ctxt context.Context `json:"-"` AccessControlMode string `json:"access_control_mode,omitempty" mapstructure:"access_control_mode"` AclPolicy *AclPolicy `json:"acl_policy,omitempty" mapstructure:"acl_policy"` AdminState string `json:"admin_state,omitempty" mapstructure:"admin_state"` Auth *Auth `json:"auth,omitempty" mapstructure:"auth"` Force bool `json:"force,omitempty" mapstructure:"force"` IpPool *AccessNetworkIpPool `json:"ip_pool,omitempty" mapstructure:"ip_pool"` Volumes []*Volume `json:"volumes,omitempty" mapstructure:"volumes"` }
type StorageInstances ¶
type StorageInstances struct {
Path string
}
func (*StorageInstances) Create ¶
func (e *StorageInstances) Create(ro *StorageInstancesCreateRequest) (*StorageInstance, *ApiErrorResponse, error)
func (*StorageInstances) Get ¶
func (e *StorageInstances) Get(ro *StorageInstancesGetRequest) (*StorageInstance, *ApiErrorResponse, error)
func (*StorageInstances) List ¶
func (e *StorageInstances) List(ro *StorageInstancesListRequest) ([]*StorageInstance, *ApiErrorResponse, error)
type StorageInstancesCreateRequest ¶
type StorageInstancesCreateRequest struct { Ctxt context.Context `json:"-"` AccessControlMode string `json:"access_control_mode,omitempty" mapstructure:"access_control_mode"` AclPolicy *AclPolicy `json:"acl_policy,omitempty" mapstructure:"acl_policy"` AdminState string `json:"admin_state,omitempty" mapstructure:"admin_state"` Auth *Auth `json:"auth,omitempty" mapstructure:"auth"` IpPool *AccessNetworkIpPool `json:"ip_pool,omitempty" mapstructure:"ip_pool"` Name string `json:"name,omitempty" mapstructure:"name"` ServiceConfiguration string `json:"service_configuration,omitempty" mapstructure:"service_configuration"` Volumes []*Volume `json:"volumes,omitempty" mapstructure:"volumes"` }
type StorageInstancesListRequest ¶
type StorageInstancesListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type StorageNode ¶
type StorageNode struct { Path string `json:"path,omitempty" mapstructure:"path"` AdminState string `json:"admin_state,omitempty" mapstructure:"admin_state"` AvailableCapacity int `json:"available_capacity,omitempty" mapstructure:"available_capacity"` BiosVersion string `json:"bios_version,omitempty" mapstructure:"bios_version"` BootDrives []*BootDrive `json:"boot_drives,omitempty" mapstructure:"boot_drives"` BuildVersion string `json:"build_version,omitempty" mapstructure:"build_version"` Causes []string `json:"causes,omitempty" mapstructure:"causes"` Compression bool `json:"compression_enabled,omitempty" mapstructure:"compression_enabled"` CompressionRatio string `json:"compression_ratio,omitempty" mapstructure:"compression_ratio"` Disconnected bool `json:"disconnected,omitempty" mapstructure:"disconnected"` FailureDomains []*FailureDomain `json:"failure_domains,omitempty" mapstructure:"failure_domains"` FlashDevices []*FlashDevice `json:"flash_devices,omitempty" mapstructure:"flash_devices"` Hdds []*Hdd `json:"hdds,omitempty" mapstructure:"hdds"` Health string `json:"health,omitempty" mapstructure:"health"` HwHealth string `json:"hw_health,omitempty" mapstructure:"hw_health"` HwState string `json:"hw_state,omitempty" mapstructure:"hw_state"` InternalIp1 string `json:"internal_ip_1,omitempty" mapstructure:"internal_ip_1"` InternalIp2 string `json:"internal_ip_2,omitempty" mapstructure:"internal_ip_2"` LastRebootTimestamp string `json:"last_reboot_timestamp,omitempty" mapstructure:"last_reboot_timestamp"` MediaPolicy string `json:"media_policy,omitempty" mapstructure:"media_policy"` MgmtIp1 string `json:"mgmt_ip_1,omitempty" mapstructure:"mgmt_ip_1"` MgmtIp2 string `json:"mgmt_ip_2,omitempty" mapstructure:"mgmt_ip_2"` Model string `json:"model,omitempty" mapstructure:"model"` Name string `json:"name,omitempty" mapstructure:"name"` Nics []*Nic `json:"nics,omitempty" mapstructure:"nics"` NvmFlashDevices []*NvmFlashDevice `json:"nvm_flash_devices,omitempty" mapstructure:"nvm_flash_devices"` OpProgress map[string]interface{} `json:"op_progress,omitempty" mapstructure:"op_progress"` OpState string `json:"op_state,omitempty" mapstructure:"op_state"` OpStatus string `json:"op_status,omitempty" mapstructure:"op_status"` OsVersion string `json:"os_version,omitempty" mapstructure:"os_version"` Psus []*Psu `json:"psus,omitempty" mapstructure:"psus"` SerialNo string `json:"serial_no,omitempty" mapstructure:"serial_no"` StorageInstances []*StorageInstance `json:"storage_instances,omitempty" mapstructure:"storage_instances"` SubsystemHealth []*Subsystem `json:"subsystem_health,omitempty" mapstructure:"subsystem_health"` SubsystemStates *Subsystem `json:"subsystem_states,omitempty" mapstructure:"subsystem_states"` SwHealth string `json:"sw_health,omitempty" mapstructure:"sw_health"` SwState string `json:"sw_state,omitempty" mapstructure:"sw_state"` SwVersion string `json:"sw_version,omitempty" mapstructure:"sw_version"` TotalCapacity int `json:"total_capacity,omitempty" mapstructure:"total_capacity"` TotalRawCapacity int `json:"total_raw_capacity,omitempty" mapstructure:"total_raw_capacity"` Type string `json:"type,omitempty" mapstructure:"type"` Upgrade *Upgrade `json:"upgrade,omitempty" mapstructure:"upgrade"` Uuid string `json:"uuid,omitempty" mapstructure:"uuid"` Vendor string `json:"vendor,omitempty" mapstructure:"vendor"` Volumes []*Volume `json:"volumes,omitempty" mapstructure:"volumes"` BootDrivesEp *BootDrives }
func (*StorageNode) Reload ¶
func (e *StorageNode) Reload(ro *StorageNodeReloadRequest) (*StorageNode, *ApiErrorResponse, error)
func (*StorageNode) Set ¶
func (e *StorageNode) Set(ro *StorageNodeSetRequest) (*StorageNode, *ApiErrorResponse, error)
type StorageNodeSetRequest ¶
type StorageNodes ¶
type StorageNodes struct {
Path string
}
func (*StorageNodes) Get ¶
func (e *StorageNodes) Get(ro *StorageNodesGetRequest) (*StorageNode, *ApiErrorResponse, error)
func (*StorageNodes) List ¶
func (e *StorageNodes) List(ro *StorageNodesListRequest) ([]*StorageNode, *ApiErrorResponse, error)
type StorageNodesGetRequest ¶
type StorageNodesListRequest ¶
type StorageNodesListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type StoragePool ¶
type StoragePool struct { Path string `json:"path,omitempty" mapstructure:"path"` Members []*StorageNode `json:"members,omitempty" mapstructure:"members"` Name string `json:"name,omitempty" mapstructure:"name"` }
func (*StoragePool) Delete ¶
func (e *StoragePool) Delete(ro *StoragePoolDeleteRequest) (*StoragePool, *ApiErrorResponse, error)
func (*StoragePool) Set ¶
func (e *StoragePool) Set(ro *StoragePoolSetRequest) (*StoragePool, *ApiErrorResponse, error)
type StoragePoolSetRequest ¶
type StoragePoolSetRequest struct { Ctxt context.Context `json:"-"` Members []*StorageNode `json:"members,omitempty" mapstructure:"members"` }
type StoragePools ¶
type StoragePools struct {
Path string
}
func (*StoragePools) Create ¶
func (e *StoragePools) Create(ro *StoragePoolsCreateRequest) (*StoragePool, *ApiErrorResponse, error)
func (*StoragePools) Get ¶
func (e *StoragePools) Get(ro *StoragePoolsGetRequest) (*StoragePool, *ApiErrorResponse, error)
func (*StoragePools) List ¶
func (e *StoragePools) List(ro *StoragePoolsListRequest) ([]*StoragePool, *ApiErrorResponse, error)
type StoragePoolsCreateRequest ¶
type StoragePoolsCreateRequest struct { Ctxt context.Context `json:"-"` Members []*StorageNode `json:"members,omitempty" mapstructure:"members"` Name string `json:"name,omitempty" mapstructure:"name"` }
type StoragePoolsGetRequest ¶
type StoragePoolsListRequest ¶
type StoragePoolsListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type StorageTemplate ¶
type StorageTemplate struct { Path string `json:"path,omitempty" mapstructure:"path"` Auth *Auth `json:"auth,omitempty" mapstructure:"auth"` Name string `json:"name,omitempty" mapstructure:"name"` IpPool *AccessNetworkIpPool `json:"ip_pool,omitempty" mapstructure:"ip_pool"` ServiceConfiguration string `json:"service_configuration,omitempty" mapstructure:"service_configuration"` VolumeTemplates []*VolumeTemplate `json:"volume_templates,omitempty" mapstructure:"volume_templates"` VolumeTemplatesEp *VolumeTemplates `json:"-"` }
func (*StorageTemplate) Delete ¶
func (e *StorageTemplate) Delete(ro *StorageTemplateDeleteRequest) (*StorageTemplate, *ApiErrorResponse, error)
func (*StorageTemplate) Set ¶
func (e *StorageTemplate) Set(ro *StorageTemplateSetRequest) (*StorageTemplate, *ApiErrorResponse, error)
type StorageTemplateSetRequest ¶
type StorageTemplateSetRequest struct { Ctxt context.Context `json:"-"` Auth Auth `json:"auth,omitempty" mapstructure:"auth"` IpPool AccessNetworkIpPool `json:"ip_pool,omitempty" mapstructure:"ip_pool"` VolumeTemplates []VolumeTemplates `json:"volume_templates,omitempty" mapstructure:"volume_templates"` }
type StorageTemplates ¶
type StorageTemplates struct {
Path string
}
func (*StorageTemplates) Create ¶
func (e *StorageTemplates) Create(ro *StorageTemplatesCreateRequest) (*StorageTemplate, *ApiErrorResponse, error)
func (*StorageTemplates) Get ¶
func (e *StorageTemplates) Get(ro *StorageTemplatesGetRequest) (*StorageTemplate, *ApiErrorResponse, error)
func (*StorageTemplates) List ¶
func (e *StorageTemplates) List(ro *StorageTemplatesListRequest) ([]*StorageTemplate, *ApiErrorResponse, error)
type StorageTemplatesCreateRequest ¶
type StorageTemplatesCreateRequest struct { Ctxt context.Context `json:"-"` Name string `json:"name,omitempty" mapstructure:"name"` ReplicaCount int `json:"replica_count,omitempty" mapstructure:"replica_count"` Size int `json:"size,omitempty" mapstructure:"size"` PlacementMode string `json:"placement_mode,omitempty" mapstructure:"placement_mode"` PlacementPolicy *PlacementPolicy `json:"placement_policy,omitempty" mapstructure:"placement_policy"` Force bool `json:"force,omitempty" mapstructure:"force"` }
type StorageTemplatesListRequest ¶
type StorageTemplatesListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type StringSet ¶
type StringSet struct {
// contains filtered or unexported fields
}
func NewStringSet ¶
func (*StringSet) Difference ¶
func (*StringSet) Intersection ¶
func (*StringSet) SymDifference ¶
type Subsystem ¶
type Subsystem struct { Path string `json:"path,omitempty" mapstructure:"path"` Causes []string `json:"causes,omitempty" mapstructure:"causes"` Fan string `json:"fan,omitempty" mapstructure:"fan"` Health string `json:"health,omitempty" mapstructure:"health"` Network string `json:"network,omitempty" mapstructure:"network"` Power string `json:"power,omitempty" mapstructure:"power"` Temperature string `json:"temperature,omitempty" mapstructure:"temperature"` Voltage string `json:"voltage,omitempty" mapstructure:"voltage"` }
type Subsystems ¶
type Subsystems struct {
Path string
}
func (*Subsystems) Get ¶
func (e *Subsystems) Get(ro *SubsystemsGetRequest) (*Subsystem, *ApiErrorResponse, error)
func (*Subsystems) List ¶
func (e *Subsystems) List(ro *SubsystemsListRequest) ([]*Subsystem, *ApiErrorResponse, error)
type SubsystemsGetRequest ¶
type SubsystemsListRequest ¶
type SubsystemsListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type System ¶
type System struct { Path string `json:"path,omitempty" mapstructure:"path"` AccessInterfaceAggrType string `json:"access_interface_aggr_type,omitempty" mapstructure:"access_interface_aggr_type"` AllFlashCapacity int `json:"all_flash_available_capacity,omitempty" mapstructure:"all_flash_available_capacity"` AllFlashProvisionedCapacity int `json:"all_flash_provisioned_capacity,omitempty" mapstructure:"all_flash_provisioned_capacity"` AllFlashTotalCapacity int `json:"all_flash_total_capacity,omitempty" mapstructure:"all_flash_total_capacity"` AvailableCapacity int `json:"available_capacity,omitempty" mapstructure:"available_capacity"` BuildVersion string `json:"build_version,omitempty" mapstructure:"build_version"` CallhomeEnabled bool `json:"callhome_enabled,omitempty" mapstructure:"callhome_enabled"` Causes []string `json:"causes,omitempty" mapstructure:"causes"` CompressionEnabled bool `json:"compression_enabled,omitempty" mapstructure:"compression_enabled"` CompressionRatio string `json:"compression_ratio,omitempty" mapstructure:"compression_ratio"` Dns *Dns `json:"dns,omitempty" mapstructure:"dns"` Health string `json:"health,omitempty" mapstructure:"health"` HttpProxy *HttpProxy `json:"http_proxy,omitempty" mapstructure:"http_proxy"` HybridAvailableCapacity int `json:"hybrid_available_capacity,omitempty" mapstructure:"hybrid_available_capacity"` HybridProvisionedCapacity int `json:"hybrid_provisioned_capacity,omitempty" mapstructure:"hybrid_provisioned_capacity"` HybridTotalCapacity int `json:"hybrid_total_capacity,omitempty" mapstructure:"hybrid_total_capacity"` InterfaceAggregationMode string `json:"interface_aggregation_mode,omitempty" mapstructure:"interface_aggregation_mode"` InternalInterfaceAggrType string `json:"internal_interface_aggr_type,omitempty" mapstructure:"internal_interface_aggr_type"` L3Enabled bool `json:"l3_enabled,omitempty" mapstructure:"l3_enabled"` LastRebootTimestamp string `json:"last_reboot_timestamp,omitempty" mapstructure:"last_reboot_timestamp"` Name string `json:"name,omitempty" mapstructure:"name"` Network *Network `json:"network,omitempty" mapstructure:"network"` NetworkDevices []*NetworkDevice `json:"network_devices,omitempty" mapstructure:"network_devices"` NtpServers []string `json:"ntp_servers,omitempty" mapstructure:"ntp_servers"` OpState string `json:"op_state,omitempty" mapstructure:"op_state"` SwVersion string `json:"sw_version,omitempty" mapstructure:"sw_version"` Timezone string `json:"timezone,omitempty" mapstructure:"timezone"` TotalCapacity int `json:"total_capacity,omitempty" mapstructure:"total_capacity"` TotalProvisionedCapacity int `json:"total_provisioned_capacity,omitempty" mapstructure:"total_provisioned_capacity"` Upgrade *Upgrade `json:"upgrade,omitempty" mapstructure:"upgrade"` Uptime int `json:"uptime,omitempty" mapstructure:"uptime"` Uuid string `json:"uuid,omitempty" mapstructure:"uuid"` WitnessPolicy *WitnessPolicy `json:"witness_policy,omitempty" mapstructure:"witness_policy"` }
func (*System) Get ¶
func (e *System) Get(ro *SystemGetRequest) (*System, *ApiErrorResponse, error)
func (*System) Reload ¶
func (e *System) Reload(ro *SystemReloadRequest) (*System, *ApiErrorResponse, error)
func (*System) Set ¶
func (e *System) Set(ro *SystemSetRequest) (*System, *ApiErrorResponse, error)
type SystemEvent ¶
type SystemEvent struct { Time string `json:"time,omitempty" mapstructure:"time"` Code string `json:"code,omitempty" mapstructure:"code"` Context string `json:"context,omitempty" mapstructure:"context"` Debug string `json:"debug,omitempty" mapstructure:"debug"` Description string `json:"description,omitempty" mapstructure:"description"` LastSeenTs string `json:"last_seen_ts,omitempty" mapstructure:"last_seen_ts"` Message string `json:"message,omitempty" mapstructure:"message"` RepeatCount int `json:"repeat_count,omitempty" mapstructure:"repeat_count"` Severity string `json:"severity,omitempty" mapstructure:"severity"` Tenant string `json:"tenant,omitempty" mapstructure:"tenant"` Uuid string `json:"uuid,omitempty" mapstructure:"uuid"` ObjectPath string `json:"object_path,omitempty" mapstructure:"object_path"` }
type SystemEvents ¶
type SystemEvents struct {
Path string
}
func (*SystemEvents) List ¶
func (e *SystemEvents) List(ro *SystemEventsRequest) ([]*SystemEvent, *ApiErrorResponse, error)
type SystemEventsRequest ¶
type SystemEventsRequest struct { Ctxt context.Context `json:"-"` Params ListRangeParams `json:"params,omitempty"` }
type SystemGetRequest ¶
type SystemReloadRequest ¶
type SystemSetRequest ¶
type SystemSetRequest struct { Ctxt context.Context `json:"-"` AccessInterfaceAggrType string `json:"access_interface_aggr_type,omitempty" mapstructure:"access_interface_aggr_type"` CallhomeEnabled bool `json:"callhome_enabled,omitempty" mapstructure:"callhome_enabled"` CompressionEnabled bool `json:"compression_enabled,omitempty" mapstructure:"compression_enabled"` InterfaceAggregationMode string `json:"interface_aggregation_mode,omitempty" mapstructure:"interface_aggregation_mode"` InternalInterfaceAggregationType string `json:"internal_interface_aggr_type,omitempty" mapstructure:"internal_interface_aggr_type"` NetworkDevices []*NetworkDevice `json:"network_devices,omitempty" mapstructure:"network_devices"` }
type Tenant ¶
type Tenant struct { Path string `json:"path,omitempty" mapstructure:"path"` Descr string `json:"descr,omitempty" mapstructure:"descr"` InitiatorListSrc string `json:"initiator_list_src,omitempty" mapstructure:"initiator_list_src"` MgmtIps []interface{} `json:"mgmt_ips,omitempty" mapstructure:"mgmt_ips"` Name string `json:"name,omitempty" mapstructure:"name"` ParentPath string `json:"parent_path,omitempty" mapstructure:"parent_path"` Quota Quota `json:"quota,omitempty" mapstructure:"quota"` QuotaStatus QuotaStatus `json:"quota_status,omitempty" mapstructure:"quota_status"` Subtenants []string `json:"subtenants,omitempty" mapstructure:"subtenants"` }
func (*Tenant) Delete ¶
func (e *Tenant) Delete(ro *TenantDeleteRequest) (*Tenant, *ApiErrorResponse, error)
func (*Tenant) Set ¶
func (e *Tenant) Set(ro *TenantSetRequest) (*Tenant, *ApiErrorResponse, error)
type TenantDeleteRequest ¶
type TenantSetRequest ¶
type TenantSetRequest struct { Ctxt context.Context `json:"-"` Path string `json:"path,omitempty" mapstructure:"path"` Descr string `json:"descr,omitempty" mapstructure:"descr"` InitiatorListSrc string `json:"initiator_list_src,omitempty" mapstructure:"initiator_list_src"` MgmtIps []string `json:"mgmt_ips,omitempty" mapstructure:"mgmt_ips"` Name string `json:"name,omitempty" mapstructure:"name"` ParentPath string `json:"parent_path,omitempty" mapstructure:"parent_path"` Quota Quota `json:"quota,omitempty" mapstructure:"quota"` QuotaStatus QuotaStatus `json:"quota_status,omitempty" mapstructure:"quota_status"` Subtenants []Tenant `json:"subtenants,omitempty" mapstructure:"subtenants"` }
type Tenants ¶
type Tenants struct {
Path string
}
func (*Tenants) Create ¶
func (e *Tenants) Create(ro *TenantsCreateRequest) (*Tenant, *ApiErrorResponse, error)
func (*Tenants) Get ¶
func (e *Tenants) Get(ro *TenantsGetRequest) (*Tenant, *ApiErrorResponse, error)
func (*Tenants) List ¶
func (e *Tenants) List(ro *TenantsListRequest) ([]*Tenant, *ApiErrorResponse, error)
type TenantsCreateRequest ¶
type TenantsGetRequest ¶
type TenantsListRequest ¶
type TenantsListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type UserDataGetRequest ¶ added in v1.4.0
type UserDataGetRequest struct { Ctxt context.Context `json:"-"` AppInstanceId string `json:"app_instance_id"` }
UserDataGetRequest gets one AppInstance's uploaded user data
type UserDataSetRequest ¶ added in v1.4.0
type UserDatas ¶ added in v1.4.0
type UserDatas struct {
Path string
}
func (*UserDatas) Get ¶ added in v1.4.0
func (e *UserDatas) Get(ud *UserDataGetRequest) (*UserData, *ApiErrorResponse, error)
Get returns an individual JSON UserData object attached to an AppInstance
func (*UserDatas) List ¶ added in v1.4.0
func (e *UserDatas) List(udlr *UserDatasListRequest) ([]*UserData, *ApiErrorResponse, error)
List shows all UserData that have been stored it can be filtered via a Glob search in ro.Filter field
func (*UserDatas) Set ¶ added in v1.4.0
func (e *UserDatas) Set(ud *UserDataSetRequest) (*UserData, *ApiErrorResponse, error)
Set adds a JSON User Data Record to an App Instance
type UserDatasListRequest ¶ added in v1.4.0
type UserDatasListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
UserDatasListRequest lists all custom user data on all apps within a tenant Params is the normal ListParams, but Sort isn't used/supported.
type Volume ¶
type Volume struct { Path string `json:"path,omitempty" mapstructure:"path"` ActiveStorageNodes []*StorageNode `json:"active_storage_nodes,omitempty" mapstructure:"active_storage_nodes"` AvailabilityState string `json:"availability_state,omitempty" mapstructure:"availability_state"` CapacityInUse int `json:"capacity_in_use,omitempty" mapstructure:"capacity_in_use"` Causes []string `json:"causes,omitempty" mapstructure:"causes"` DeploymentState string `json:"deployment_state,omitempty" mapstructure:"deployment_state"` EffectiveSize int `json:"effective_size,omitempty" mapstructure:"effective_size"` ExclusiveSize int `json:"exclusive_size,omitempty" mapstructure:"exclusive_size"` Health string `json:"health,omitempty" mapstructure:"health"` LogicalSize int `json:"logical_size,omitempty" mapstructure:"logical_size"` Name string `json:"name,omitempty" mapstructure:"name"` OpState string `json:"op_state,omitempty" mapstructure:"op_state"` OpStatus string `json:"op_status,omitempty" mapstructure:"op_status"` PhysicalSize int `json:"physical_size,omitempty" mapstructure:"physical_size"` PlacementMode string `json:"placement_mode,omitempty" mapstructure:"placement_mode"` PlacementPolicy *PlacementPolicy `json:"placement_policy,omitempty" mapstructure:"placement_policy"` RecoveryState string `json:"recovery_state,omitempty" mapstructure:"recovery_state"` ReplicaCount int `json:"replica_count,omitempty" mapstructure:"replica_count"` RestorePoint string `json:"restore_point,omitempty" mapstructure:"restore_point"` Size int `json:"size,omitempty" mapstructure:"size"` Snapshots []*Snapshot `json:"snapshots,omitempty" mapstructure:"snapshots"` StoragePool []*StoragePool `json:"storage_pool,omitempty" mapstructure:"storage_pool"` StorageState string `json:"storage_state,omitempty" mapstructure:"storage_state"` Uuid string `json:"uuid,omitempty" mapstructure:"uuid"` SnapshotsEp *Snapshots `json:"-"` PerformancePolicy *PerformancePolicy `json:"performance_policy,omitempty" mapstructure:"performance_policy"` }
func (*Volume) Delete ¶
func (e *Volume) Delete(ro *VolumeDeleteRequest) (*Volume, *ApiErrorResponse, error)
func (*Volume) Reload ¶
func (e *Volume) Reload(ro *VolumeReloadRequest) (*Volume, *ApiErrorResponse, error)
func (*Volume) Set ¶
func (e *Volume) Set(ro *VolumeSetRequest) (*Volume, *ApiErrorResponse, error)
type VolumeDeleteRequest ¶
type VolumeReloadRequest ¶
type VolumeSetRequest ¶
type VolumeSetRequest struct { Ctxt context.Context `json:"-"` ReplicaCount int `json:"replica_count,omitempty" mapstructure:"replica_count"` Size int `json:"size,omitempty" mapstructure:"size"` PlacementMode string `json:"placement_mode,omitempty" mapstructure:"placement_mode"` PlacementPolicy *PlacementPolicy `json:"placement_policy,omitempty" mapstructure:"placement_policy"` RestorePoint string `json:"restore_point,omitempty" mapstructure:"restore_point"` StoragePool []*StoragePool `json:"storage_pool,omitempty" mapstructure:"storage_pool"` }
type VolumeTemplate ¶
type VolumeTemplate struct { Path string `json:"path,omitempty" mapstructure:"path"` Name string `json:"name,omitempty" mapstructure:"name"` PlacementMode string `json:"placement_mode,omitempty" mapstructure:"placement_mode"` PlacementPolicy *PlacementPolicy `json:"placement_policy,omitempty" mapstructure:"placement_policy"` ReplicaCount int `json:"replica_count,omitempty" mapstructure:"replica_count"` Size int `json:"size,omitempty" mapstructure:"size"` StoragePool []StoragePool `json:"storage_pool,omitempty" mapstructure:"storage_pool"` SnapshotPoliciesEp *SnapshotPolicies `json:"-"` }
func (*VolumeTemplate) Delete ¶
func (e *VolumeTemplate) Delete(ro *VolumeTemplateDeleteRequest) (*VolumeTemplate, *ApiErrorResponse, error)
func (*VolumeTemplate) Set ¶
func (e *VolumeTemplate) Set(ro *VolumeTemplateSetRequest) (*VolumeTemplate, *ApiErrorResponse, error)
type VolumeTemplateSetRequest ¶
type VolumeTemplateSetRequest struct { Ctxt context.Context `json:"-"` PlacementMode string `json:"placement_mode,omitempty" mapstructure:"placement_mode"` PlacementPolicy *PlacementPolicy `json:"placement_policy,omitempty" mapstructure:"placement_policy"` ReplicaCount int `json:"replica_count,omitempty" mapstructure:"replica_count"` Size int `json:"size,omitempty" mapstructure:"size"` StoragePool []StoragePool `json:"storage_pool,omitempty" mapstructure:"storage_pool"` }
type VolumeTemplates ¶
type VolumeTemplates struct {
Path string
}
func (*VolumeTemplates) Create ¶
func (e *VolumeTemplates) Create(ro *VolumeTemplatesCreateRequest) (*VolumeTemplate, *ApiErrorResponse, error)
func (*VolumeTemplates) Get ¶
func (e *VolumeTemplates) Get(ro *VolumeTemplatesGetRequest) (*VolumeTemplate, *ApiErrorResponse, error)
func (*VolumeTemplates) List ¶
func (e *VolumeTemplates) List(ro *VolumeTemplatesListRequest) ([]*VolumeTemplate, *ApiErrorResponse, error)
type VolumeTemplatesCreateRequest ¶
type VolumeTemplatesCreateRequest struct { Ctxt context.Context `json:"-"` Name string `json:"name,omitempty" mapstructure:"name"` ReplicaCount int `json:"replica_count,omitempty" mapstructure:"replica_count"` Size int `json:"size,omitempty" mapstructure:"size"` PlacementMode string `json:"placement_mode,omitempty" mapstructure:"placement_mode"` PlacementPolicy *PlacementPolicy `json:"placement_policy,omitempty" mapstructure:"placement_policy"` }
type VolumeTemplatesListRequest ¶
type VolumeTemplatesListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type Volumes ¶
type Volumes struct {
Path string
}
func (*Volumes) Create ¶
func (e *Volumes) Create(ro *VolumesCreateRequest) (*Volume, *ApiErrorResponse, error)
func (*Volumes) Get ¶
func (e *Volumes) Get(ro *VolumesGetRequest) (*Volume, *ApiErrorResponse, error)
func (*Volumes) List ¶
func (e *Volumes) List(ro *VolumesListRequest) ([]*Volume, *ApiErrorResponse, error)
type VolumesCreateRequest ¶
type VolumesCreateRequest struct { Ctxt context.Context `json:"-"` Name string `json:"name,omitempty" mapstructure:"name"` ReplicaCount int `json:"replica_count,omitempty" mapstructure:"replica_count"` Size int `json:"size,omitempty" mapstructure:"size"` PlacementMode string `json:"placement_mode,omitempty" mapstructure:"placement_mode"` PlacementPolicy *PlacementPolicy `json:"placement_policy,omitempty" mapstructure:"placement_policy"` Force bool `json:"force,omitempty" mapstructure:"force"` }
type VolumesGetRequest ¶
type VolumesListRequest ¶
type VolumesListRequest struct { Ctxt context.Context `json:"-"` Params ListParams `json:"params,omitempty"` }
type WitnessPolicy ¶
type WitnessPolicy struct { Path string `json:"path,omitempty" mapstructure:"path"` PreferredSite string `json:"preferred_site,omitempty" mapstructure:"preferred_site"` HeartbeatFrequency int `json:"heartbeat_frequency,omitempty" mapstructure:"heartbeat_frequency"` Enabled bool `json:"enabled,omitempty" mapstructure:"enabled"` Host string `json:"host,omitempty" mapstructure:"host"` Port int `json:"port,omitempty" mapstructure:"port"` Site1Fd string `json:"site_1_fd,omitempty" mapstructure:"site_1_fd"` Site2Fd string `json:"site_2_fd,omitempty" mapstructure:"site_2_fd"` VerifyCert bool `json:"verify_cert,omitempty" mapstructure:"verify_cert"` UseProxy bool `json:"use_proxy,omitempty" mapstructure:"use_proxy"` }
Source Files ¶
- access.go
- acl_policy.go
- app_instances.go
- app_templates.go
- auth.go
- boot_drive.go
- connection.go
- dns.go
- events.go
- failure_domains.go
- flash_devices.go
- hdd.go
- http_proxy.go
- initiator_groups.go
- initiators.go
- ip_pools.go
- logs_upload.go
- metrics.go
- network.go
- network_device.go
- nic.go
- nvm.go
- performance_policy.go
- placement_policy.go
- psu.go
- quota.go
- remote_provider.go
- sdk.go
- snapshot_policy.go
- snapshots.go
- storage_instances.go
- storage_nodes.go
- storage_pools.go
- storage_templates.go
- subsystem.go
- system.go
- tenants.go
- upgrade.go
- user_data.go
- util.go
- uuid.go
- volume_templates.go
- volumes.go
- witness_policy.go
Click to show internal directories.
Click to hide internal directories.