Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AcceptedMessage
- type AddDeploymentOnNodeData
- type AddDeploymentOnNodeOpts
- type AttachNFSVolumeOpts
- type AttachNfsVolumeData
- type AttachType
- type AttachVolumeData
- type AuthUserData
- type BasicAuth
- type CapacityStats
- type Cluster
- type Configuration
- type CreateNamespaceData
- type CreatePolicyGroupData
- type CreatePoolData
- type CreateUserData
- type CreateVolumeData
- type CreateVolumeOpts
- type DefaultApiService
- func (a *DefaultApiService) AddDeploymentOnNode(ctx _context.Context, namespaceID string, id string, ...) (AcceptedMessage, *_nethttp.Response, error)
- func (a *DefaultApiService) AttachNFSVolume(ctx _context.Context, namespaceID string, id string, ...) (*_nethttp.Response, error)
- func (a *DefaultApiService) AttachVolume(ctx _context.Context, namespaceID string, id string, ...) (*_nethttp.Response, error)
- func (a *DefaultApiService) AttemptPromotion(ctx _context.Context, namespaceID string, id string, deploymentID string) (*_nethttp.Response, error)
- func (a *DefaultApiService) AuthenticateUser(ctx _context.Context, authUserData AuthUserData) (UserSession, *_nethttp.Response, error)
- func (a *DefaultApiService) CreateNamespace(ctx _context.Context, createNamespaceData CreateNamespaceData) (Namespace, *_nethttp.Response, error)
- func (a *DefaultApiService) CreatePolicyGroup(ctx _context.Context, createPolicyGroupData CreatePolicyGroupData) (PolicyGroup, *_nethttp.Response, error)
- func (a *DefaultApiService) CreatePool(ctx _context.Context, createPoolData CreatePoolData) (Pool, *_nethttp.Response, error)
- func (a *DefaultApiService) CreateUser(ctx _context.Context, createUserData CreateUserData) (User, *_nethttp.Response, error)
- func (a *DefaultApiService) CreateVolume(ctx _context.Context, namespaceID string, createVolumeData CreateVolumeData, ...) (Volume, *_nethttp.Response, error)
- func (a *DefaultApiService) DeleteAuthenticatedUser(ctx _context.Context, version string, ...) (*_nethttp.Response, error)
- func (a *DefaultApiService) DeleteAuthenticatedUserSessions(ctx _context.Context) (*_nethttp.Response, error)
- func (a *DefaultApiService) DeleteNamespace(ctx _context.Context, id string, version string, ...) (*_nethttp.Response, error)
- func (a *DefaultApiService) DeleteNode(ctx _context.Context, id string, version string, ...) (*_nethttp.Response, error)
- func (a *DefaultApiService) DeletePolicyGroup(ctx _context.Context, id string, version string, ...) (*_nethttp.Response, error)
- func (a *DefaultApiService) DeletePool(ctx _context.Context, id string, version string, ...) (*_nethttp.Response, error)
- func (a *DefaultApiService) DeleteSessions(ctx _context.Context, id string) (*_nethttp.Response, error)
- func (a *DefaultApiService) DeleteUser(ctx _context.Context, id string, version string, ...) (*_nethttp.Response, error)
- func (a *DefaultApiService) DeleteVolume(ctx _context.Context, namespaceID string, id string, version string, ...) (*_nethttp.Response, error)
- func (a *DefaultApiService) DetachVolume(ctx _context.Context, namespaceID string, id string, version string, ...) (*_nethttp.Response, error)
- func (a *DefaultApiService) EvictReplica(ctx _context.Context, namespaceID string, id string, deploymentID string) (*_nethttp.Response, error)
- func (a *DefaultApiService) GetAuthenticatedUser(ctx _context.Context) (User, *_nethttp.Response, error)
- func (a *DefaultApiService) GetCluster(ctx _context.Context) (Cluster, *_nethttp.Response, error)
- func (a *DefaultApiService) GetDiagnostics(ctx _context.Context) (*os.File, *_nethttp.Response, error)
- func (a *DefaultApiService) GetLicence(ctx _context.Context) (Licence, *_nethttp.Response, error)
- func (a *DefaultApiService) GetNamespace(ctx _context.Context, id string) (Namespace, *_nethttp.Response, error)
- func (a *DefaultApiService) GetNode(ctx _context.Context, id string) (Node, *_nethttp.Response, error)
- func (a *DefaultApiService) GetPolicyGroup(ctx _context.Context, id string) (PolicyGroup, *_nethttp.Response, error)
- func (a *DefaultApiService) GetPool(ctx _context.Context, id string) (Pool, *_nethttp.Response, error)
- func (a *DefaultApiService) GetSingleNodeDiagnostics(ctx _context.Context, id string) (*os.File, *_nethttp.Response, error)
- func (a *DefaultApiService) GetUser(ctx _context.Context, id string) (User, *_nethttp.Response, error)
- func (a *DefaultApiService) GetVolume(ctx _context.Context, namespaceID string, id string) (Volume, *_nethttp.Response, error)
- func (a *DefaultApiService) ListNamespaces(ctx _context.Context) ([]Namespace, *_nethttp.Response, error)
- func (a *DefaultApiService) ListNodes(ctx _context.Context) ([]Node, *_nethttp.Response, error)
- func (a *DefaultApiService) ListPolicyGroups(ctx _context.Context) ([]PolicyGroup, *_nethttp.Response, error)
- func (a *DefaultApiService) ListPools(ctx _context.Context) ([]Pool, *_nethttp.Response, error)
- func (a *DefaultApiService) ListUsers(ctx _context.Context) ([]User, *_nethttp.Response, error)
- func (a *DefaultApiService) ListVolumes(ctx _context.Context, namespaceID string) ([]Volume, *_nethttp.Response, error)
- func (a *DefaultApiService) RefreshJwt(ctx _context.Context) (UserSession, *_nethttp.Response, error)
- func (a *DefaultApiService) ResizeVolume(ctx _context.Context, namespaceID string, id string, ...) (Volume, *_nethttp.Response, error)
- func (a *DefaultApiService) SetComputeOnly(ctx _context.Context, id string, setComputeOnlyNodeData SetComputeOnlyNodeData, ...) (Node, *_nethttp.Response, error)
- func (a *DefaultApiService) SetCordoned(ctx _context.Context, id string, setCordonedNodeData SetCordonedNodeData, ...) (Node, *_nethttp.Response, error)
- func (a *DefaultApiService) SetFailureMode(ctx _context.Context, namespaceID string, id string, ...) (Volume, *_nethttp.Response, error)
- func (a *DefaultApiService) SetPlacementStrategy(ctx _context.Context, namespaceID string, id string, ...) (AcceptedMessage, *_nethttp.Response, error)
- func (a *DefaultApiService) SetPreferredEvictionCandidates(ctx _context.Context, namespaceID string, id string, ...) (AcceptedMessage, *_nethttp.Response, error)
- func (a *DefaultApiService) SetReplicas(ctx _context.Context, namespaceID string, id string, ...) (AcceptedMessage, *_nethttp.Response, error)
- func (a *DefaultApiService) Spec(ctx _context.Context) (string, *_nethttp.Response, error)
- func (a *DefaultApiService) UpdateAuthenticatedUser(ctx _context.Context, updateAuthenticatedUserData UpdateAuthenticatedUserData, ...) (User, *_nethttp.Response, error)
- func (a *DefaultApiService) UpdateCluster(ctx _context.Context, updateClusterData UpdateClusterData, ...) (Cluster, *_nethttp.Response, error)
- func (a *DefaultApiService) UpdateLicence(ctx _context.Context, updateLicence UpdateLicence, ...) (Licence, *_nethttp.Response, error)
- func (a *DefaultApiService) UpdateNFSVolumeExports(ctx _context.Context, namespaceID string, id string, ...) (*_nethttp.Response, error)
- func (a *DefaultApiService) UpdateNFSVolumeMountEndpoint(ctx _context.Context, namespaceID string, id string, ...) (*_nethttp.Response, error)
- func (a *DefaultApiService) UpdateNamespace(ctx _context.Context, id string, updateNamespaceData UpdateNamespaceData, ...) (Namespace, *_nethttp.Response, error)
- func (a *DefaultApiService) UpdateNode(ctx _context.Context, id string, updateNodeData UpdateNodeData) (Node, *_nethttp.Response, error)
- func (a *DefaultApiService) UpdatePolicyGroup(ctx _context.Context, id string, updatePolicyGroupData UpdatePolicyGroupData, ...) (PolicyGroup, *_nethttp.Response, error)
- func (a *DefaultApiService) UpdatePool(ctx _context.Context, id string, updatePoolData UpdatePoolData, ...) (Pool, *_nethttp.Response, error)
- func (a *DefaultApiService) UpdateUser(ctx _context.Context, id string, updateUserData UpdateUserData, ...) (User, *_nethttp.Response, error)
- func (a *DefaultApiService) UpdateVolume(ctx _context.Context, namespaceID string, id string, ...) (Volume, *_nethttp.Response, error)
- type DeleteAuthenticatedUserOpts
- type DeleteNamespaceOpts
- type DeleteNodeOpts
- type DeletePolicyGroupOpts
- type DeletePoolOpts
- type DeleteUserOpts
- type DeleteVolumeOpts
- type DeploymentInfo
- type DetachVolumeOpts
- type Error
- type FailureModeIntent
- type FsType
- type GenericOpenAPIError
- type Licence
- type LogFormat
- type LogLevel
- type MasterDeploymentInfo
- type MasterDeploymentInfoAllOf
- type MasterHealth
- type Namespace
- type NfsAcl
- type NfsAclIdentity
- type NfsAclSquashConfig
- type NfsConfig
- type NfsExportConfig
- type NfsVolumeExports
- type NfsVolumeMountEndpoint
- type Node
- type NodeHealth
- type ParentInfo
- type PoliciesIdSpecs
- type PoliciesSpecs
- type PolicyGroup
- type PolicyGroupUsers
- type Pool
- type ReplicaDeploymentInfo
- type ReplicaDeploymentInfoAllOf
- type ReplicaHealth
- type ResizeVolumeOpts
- type ResizeVolumeRequest
- type ServerConfiguration
- type ServerVariable
- type SetComputeOnlyNodeData
- type SetComputeOnlyOpts
- type SetCordonedNodeData
- type SetCordonedOpts
- type SetFailureModeIntentRequestData
- type SetFailureModeOpts
- type SetFailureModeRequest
- type SetFailureThresholdRequestData
- type SetPlacementStrategyData
- type SetPlacementStrategyOpts
- type SetPreferredEvictionCandidatesData
- type SetPreferredEvictionCandidatesOpts
- type SetReplicasOpts
- type SetReplicasRequest
- type Snapshot
- type SnapshotVolume
- type Strategy
- type StrategyOptions
- type SyncProgress
- type TopologyLabels
- type UpdateAuthenticatedUserData
- type UpdateAuthenticatedUserOpts
- type UpdateClusterData
- type UpdateClusterOpts
- type UpdateLicence
- type UpdateLicenceOpts
- type UpdateNFSVolumeExportsOpts
- type UpdateNFSVolumeMountEndpointOpts
- type UpdateNamespaceData
- type UpdateNamespaceOpts
- type UpdateNodeData
- type UpdatePolicyGroupData
- type UpdatePolicyGroupOpts
- type UpdatePoolData
- type UpdatePoolOpts
- type UpdateUserData
- type UpdateUserOpts
- type UpdateVolumeData
- type UpdateVolumeOpts
- type User
- type UserSession
- type UserSessionAllOf
- type UserSessionAllOfSession
- type Volume
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKey takes an APIKey as authentication for the request ContextAPIKey = contextKey("apikey") )
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct { DefaultApi *DefaultApiService // contains filtered or unexported fields }
APIClient manages communication with the Ondat API API v2.8.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
ChangeBasePath changes base path to allow switching to mocks
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResonse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type AcceptedMessage ¶
type AcceptedMessage struct {
Msg string `json:"msg,omitempty"`
}
AcceptedMessage struct for AcceptedMessage
type AddDeploymentOnNodeData ¶
type AddDeploymentOnNodeData struct { NodeID string `json:"nodeID,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
AddDeploymentOnNodeData struct for AddDeploymentOnNodeData
type AddDeploymentOnNodeOpts ¶
AddDeploymentOnNodeOpts Optional parameters for the method 'AddDeploymentOnNode'
type AttachNFSVolumeOpts ¶
AttachNFSVolumeOpts Optional parameters for the method 'AttachNFSVolume'
type AttachNfsVolumeData ¶
type AttachNfsVolumeData struct { // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
AttachNfsVolumeData struct for AttachNfsVolumeData
type AttachType ¶
type AttachType string
AttachType The attachment type of a volume. \"host\" indicates that the volume is consumed by the node it is attached to.
const ( ATTACHTYPE_UNKNOWN AttachType = "unknown" ATTACHTYPE_DETACHED AttachType = "detached" ATTACHTYPE_NFS AttachType = "nfs" ATTACHTYPE_HOST AttachType = "host" )
List of AttachType
type AttachVolumeData ¶
type AttachVolumeData struct { // A unique identifier for a node. The format of this type is undefined and may change but the defined properties will not change. NodeID string `json:"nodeID,omitempty"` }
AttachVolumeData struct for AttachVolumeData
type AuthUserData ¶
AuthUserData struct for AuthUserData
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type CapacityStats ¶
type CapacityStats struct { // Total bytes in the filesystem Total uint64 `json:"total,omitempty"` // Free bytes in the filesystem available to root user Free uint64 `json:"free,omitempty"` // Byte value available to an unprivileged user Available uint64 `json:"available,omitempty"` }
CapacityStats struct for CapacityStats
type Cluster ¶
type Cluster struct { // A unique identifier for a cluster. The format of this type is undefined and may change but the defined properties will not change. Id string `json:"id,omitempty"` // Disables collection of telemetry data across the cluster. DisableTelemetry bool `json:"disableTelemetry,omitempty"` // Disables collection of reports for any fatal crashes across the cluster. DisableCrashReporting bool `json:"disableCrashReporting,omitempty"` // Disables the mechanism responsible for checking if there is an updated version of Ondat available for installation. DisableVersionCheck bool `json:"disableVersionCheck,omitempty"` LogLevel LogLevel `json:"logLevel,omitempty"` LogFormat LogFormat `json:"logFormat,omitempty"` // The time the entity was created. This timestamp is set by the node that created the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. CreatedAt time.Time `json:"createdAt,omitempty"` // The time the entity was last updated. This timestamp is set by the node that last updated the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. UpdatedAt time.Time `json:"updatedAt,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
Cluster struct for Cluster
type Configuration ¶
type Configuration struct { BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` Servers []ServerConfiguration HTTPClient *http.Client }
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
type CreateNamespaceData ¶
type CreateNamespaceData struct { // The name of the namespace shown in the CLI and UI Name string `json:"name,omitempty"` // A set of arbitrary key value labels to apply to the entity. Labels map[string]string `json:"labels,omitempty"` }
CreateNamespaceData struct for CreateNamespaceData
type CreatePolicyGroupData ¶
type CreatePolicyGroupData struct { Name string `json:"name,omitempty"` // A set of authorisation policies to apply to the policy group. Specs *[]PoliciesSpecs `json:"specs,omitempty"` }
CreatePolicyGroupData struct for CreatePolicyGroupData
type CreatePoolData ¶
type CreatePoolData struct { // The name of the pool Name string `json:"name"` NodeToDriveMapping map[string][]string `json:"nodeToDriveMapping"` }
CreatePoolData struct for CreatePoolData
type CreateUserData ¶
type CreateUserData struct { Username string `json:"username"` // If not present, the existing password is not changed Password string `json:"password"` // If true, this user is an administrator of the cluster. Administrators bypass the usual authentication checks and are granted access to all resources. Some actions (such as adding a new user) can only be performed by an administrator. IsAdmin bool `json:"isAdmin,omitempty"` // Defines a set of policy group IDs this user is a member of. Policy groups can be used to logically group users and apply authorisation policies to all members. Groups *[]string `json:"groups,omitempty"` }
CreateUserData struct for CreateUserData
type CreateVolumeData ¶
type CreateVolumeData struct { // A unique identifier for a namespace. The format of this type is undefined and may change but the defined properties will not change.. NamespaceID string `json:"namespaceID"` // A set of arbitrary key value labels to apply to the entity. Labels map[string]string `json:"labels,omitempty"` // The name of the volume shown in the CLI and UI Name string `json:"name"` FsType FsType `json:"fsType"` Description string `json:"description,omitempty"` // A volume's size in bytes SizeBytes uint64 `json:"sizeBytes"` PlacementStrategy Strategy `json:"placementStrategy,omitempty"` }
CreateVolumeData struct for CreateVolumeData
type CreateVolumeOpts ¶
CreateVolumeOpts Optional parameters for the method 'CreateVolume'
type DefaultApiService ¶
type DefaultApiService service
DefaultApiService DefaultApi service
func (*DefaultApiService) AddDeploymentOnNode ¶
func (a *DefaultApiService) AddDeploymentOnNode(ctx _context.Context, namespaceID string, id string, addDeploymentOnNodeData AddDeploymentOnNodeData, localVarOptionals *AddDeploymentOnNodeOpts) (AcceptedMessage, *_nethttp.Response, error)
AddDeploymentOnNode Creates a new replica deployment on a specific node. Creates a new replica deployment on a specific node. The new deployment is not excluded from any rules that move, failover or remove deployments and as such it can still be moved elsewhere if the Control Plane thinks wise to do so after being created.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param addDeploymentOnNodeData
- @param optional nil or *AddDeploymentOnNodeOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return AcceptedMessage
func (*DefaultApiService) AttachNFSVolume ¶
func (a *DefaultApiService) AttachNFSVolume(ctx _context.Context, namespaceID string, id string, attachNfsVolumeData AttachNfsVolumeData, localVarOptionals *AttachNFSVolumeOpts) (*_nethttp.Response, error)
AttachNFSVolume attach and share the volume using NFS Attach the given volume as an NFS volume. If no export configuration has been set via the /nfs/export-config endpoint, the nfs service will start with defaults settings (sharing the volume at its root).
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param attachNfsVolumeData
- @param optional nil or *AttachNFSVolumeOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
- @param "AsyncMax" (optional.String) - Optional parameter which will make the api request asynchronous. The operation will not be cancelled even if the client disconnect. The URL parameter value overrides the \"async-max\" header value, if any. The value of this header defines the timeout duration for the request, it must be set to a valid duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as \"300ms\", or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". We reject negative or nil duration values.
func (*DefaultApiService) AttachVolume ¶
func (a *DefaultApiService) AttachVolume(ctx _context.Context, namespaceID string, id string, attachVolumeData AttachVolumeData) (*_nethttp.Response, error)
AttachVolume Attach a volume to the given node Attach the volume identified by id to the node identified in the request's body.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param attachVolumeData
func (*DefaultApiService) AttemptPromotion ¶
func (a *DefaultApiService) AttemptPromotion(ctx _context.Context, namespaceID string, id string, deploymentID string) (*_nethttp.Response, error)
AttemptPromotion Attempt a promotion of a replica to a master A debug method that will attempt to promote a replica to a master This will introduce instability to the cluster and should not be used unless instructed by an Ondat engineer This will likely not succeed if the master is healthy.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param deploymentID ID of an existing replica that should become the main deployment
func (*DefaultApiService) AuthenticateUser ¶
func (a *DefaultApiService) AuthenticateUser(ctx _context.Context, authUserData AuthUserData) (UserSession, *_nethttp.Response, error)
AuthenticateUser Authenticate a user Generate a new JWT token for a user.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param authUserData
@return UserSession
func (*DefaultApiService) CreateNamespace ¶
func (a *DefaultApiService) CreateNamespace(ctx _context.Context, createNamespaceData CreateNamespaceData) (Namespace, *_nethttp.Response, error)
CreateNamespace Create a new namespace Create a new namespace in the cluster - only administrators can create new namespaces.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param createNamespaceData
@return Namespace
func (*DefaultApiService) CreatePolicyGroup ¶
func (a *DefaultApiService) CreatePolicyGroup(ctx _context.Context, createPolicyGroupData CreatePolicyGroupData) (PolicyGroup, *_nethttp.Response, error)
CreatePolicyGroup Create a new policy group Create a new policy group in the cluster - only administrators can create new policy groups.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param createPolicyGroupData
@return PolicyGroup
func (*DefaultApiService) CreatePool ¶
func (a *DefaultApiService) CreatePool(ctx _context.Context, createPoolData CreatePoolData) (Pool, *_nethttp.Response, error)
CreatePool Create a new Pool Create a new Pool
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param createPoolData
@return Pool
func (*DefaultApiService) CreateUser ¶
func (a *DefaultApiService) CreateUser(ctx _context.Context, createUserData CreateUserData) (User, *_nethttp.Response, error)
CreateUser Create a new user Create a new user in the cluster - only administrators can create new users.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param createUserData
@return User
func (*DefaultApiService) CreateVolume ¶
func (a *DefaultApiService) CreateVolume(ctx _context.Context, namespaceID string, createVolumeData CreateVolumeData, localVarOptionals *CreateVolumeOpts) (Volume, *_nethttp.Response, error)
CreateVolume Create a new Volume in the specified namespace Create a new volume in the given namespace
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param createVolumeData
- @param optional nil or *CreateVolumeOpts - Optional Parameters:
- @param "AsyncMax" (optional.String) - Optional parameter which will make the api request asynchronous. The operation will not be cancelled even if the client disconnect. The URL parameter value overrides the \"async-max\" header value, if any. The value of this header defines the timeout duration for the request, it must be set to a valid duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as \"300ms\", or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". We reject negative or nil duration values.
@return Volume
func (*DefaultApiService) DeleteAuthenticatedUser ¶
func (a *DefaultApiService) DeleteAuthenticatedUser(ctx _context.Context, version string, localVarOptionals *DeleteAuthenticatedUserOpts) (*_nethttp.Response, error)
DeleteAuthenticatedUser Delete the authenticated user Remove the authenticated user from the cluster.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param version This value is used to perform a conditional delete or update of the entity. If the entity has been modified since the version token was obtained, the request will fail with a HTTP 409 Conflict.
- @param optional nil or *DeleteAuthenticatedUserOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
func (*DefaultApiService) DeleteAuthenticatedUserSessions ¶
func (a *DefaultApiService) DeleteAuthenticatedUserSessions(ctx _context.Context) (*_nethttp.Response, error)
DeleteAuthenticatedUserSessions Invalidate the logged in user's sessions Invalidates logged in user's active JWTs.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
func (*DefaultApiService) DeleteNamespace ¶
func (a *DefaultApiService) DeleteNamespace(ctx _context.Context, id string, version string, localVarOptionals *DeleteNamespaceOpts) (*_nethttp.Response, error)
DeleteNamespace Delete a namespace Remove the namespace identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a namespace
- @param version This value is used to perform a conditional delete or update of the entity. If the entity has been modified since the version token was obtained, the request will fail with a HTTP 409 Conflict.
- @param optional nil or *DeleteNamespaceOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
func (*DefaultApiService) DeleteNode ¶
func (a *DefaultApiService) DeleteNode(ctx _context.Context, id string, version string, localVarOptionals *DeleteNodeOpts) (*_nethttp.Response, error)
DeleteNode Delete a node Remove the node identified by id. A node can only be deleted if it is currently offline and does not host any master deployments.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a node
- @param version This value is used to perform a conditional delete or update of the entity. If the entity has been modified since the version token was obtained, the request will fail with a HTTP 409 Conflict.
- @param optional nil or *DeleteNodeOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
- @param "AsyncMax" (optional.String) - Optional parameter which will make the api request asynchronous. The operation will not be cancelled even if the client disconnect. The URL parameter value overrides the \"async-max\" header value, if any. The value of this header defines the timeout duration for the request, it must be set to a valid duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as \"300ms\", or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". We reject negative or nil duration values.
func (*DefaultApiService) DeletePolicyGroup ¶
func (a *DefaultApiService) DeletePolicyGroup(ctx _context.Context, id string, version string, localVarOptionals *DeletePolicyGroupOpts) (*_nethttp.Response, error)
DeletePolicyGroup Delete a policy group Remove the policy group identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a policy group
- @param version This value is used to perform a conditional delete or update of the entity. If the entity has been modified since the version token was obtained, the request will fail with a HTTP 409 Conflict.
- @param optional nil or *DeletePolicyGroupOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
func (*DefaultApiService) DeletePool ¶
func (a *DefaultApiService) DeletePool(ctx _context.Context, id string, version string, localVarOptionals *DeletePoolOpts) (*_nethttp.Response, error)
DeletePool Delete a pool Remove the pool identified by id. If there are volumes using the pool this request will be reject.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a Pool
- @param version This value is used to perform a conditional delete or update of the entity. If the entity has been modified since the version token was obtained, the request will fail with a HTTP 409 Conflict.
- @param optional nil or *DeletePoolOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
func (*DefaultApiService) DeleteSessions ¶
func (a *DefaultApiService) DeleteSessions(ctx _context.Context, id string) (*_nethttp.Response, error)
DeleteSessions Invalidate login sessions Invalidates active JWTs on a per-user basis, specified by id. This request will not succeed if the target account is the currently authenticated account. Use the separate users/self endpoint for this purpose.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a user
func (*DefaultApiService) DeleteUser ¶
func (a *DefaultApiService) DeleteUser(ctx _context.Context, id string, version string, localVarOptionals *DeleteUserOpts) (*_nethttp.Response, error)
DeleteUser Delete a user Remove the user identified by id. This request will not succeed if the target account is the currently authenticated account. Use the separate users/self endpoint for this purpose.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a user
- @param version This value is used to perform a conditional delete or update of the entity. If the entity has been modified since the version token was obtained, the request will fail with a HTTP 409 Conflict.
- @param optional nil or *DeleteUserOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
func (*DefaultApiService) DeleteVolume ¶
func (a *DefaultApiService) DeleteVolume(ctx _context.Context, namespaceID string, id string, version string, localVarOptionals *DeleteVolumeOpts) (*_nethttp.Response, error)
DeleteVolume Delete a volume Remove the volume identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param version This value is used to perform a conditional delete or update of the entity. If the entity has been modified since the version token was obtained, the request will fail with a HTTP 409 Conflict.
- @param optional nil or *DeleteVolumeOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
- @param "AsyncMax" (optional.String) - Optional parameter which will make the api request asynchronous. The operation will not be cancelled even if the client disconnect. The URL parameter value overrides the \"async-max\" header value, if any. The value of this header defines the timeout duration for the request, it must be set to a valid duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as \"300ms\", or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". We reject negative or nil duration values.
- @param "OfflineDelete" (optional.Bool) - If set to true, enables deletion of a volume when all deployments are offline, bypassing the host nodes which cannot be reached. An offline delete request will be rejected when either a) there are online deployments for the target volume or b) there is evidence that an unreachable node still has the volume master
func (*DefaultApiService) DetachVolume ¶
func (a *DefaultApiService) DetachVolume(ctx _context.Context, namespaceID string, id string, version string, localVarOptionals *DetachVolumeOpts) (*_nethttp.Response, error)
DetachVolume Detach the given volume Detach the volume identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param version This value is used to perform a conditional delete or update of the entity. If the entity has been modified since the version token was obtained, the request will fail with a HTTP 409 Conflict.
- @param optional nil or *DetachVolumeOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
- @param "AsyncMax" (optional.String) - Optional parameter which will make the api request asynchronous. The operation will not be cancelled even if the client disconnect. The URL parameter value overrides the \"async-max\" header value, if any. The value of this header defines the timeout duration for the request, it must be set to a valid duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as \"300ms\", or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". We reject negative or nil duration values.
func (*DefaultApiService) EvictReplica ¶
func (a *DefaultApiService) EvictReplica(ctx _context.Context, namespaceID string, id string, deploymentID string) (*_nethttp.Response, error)
EvictReplica Remove a replica from the volume's replica set, create a new replica somwewhere else. Note: if the node the evicted replica is located on is not cordoned, the new replica might be created on that node.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param deploymentID ID of an existing replica that should become the main deployment
func (*DefaultApiService) GetAuthenticatedUser ¶
func (a *DefaultApiService) GetAuthenticatedUser(ctx _context.Context) (User, *_nethttp.Response, error)
GetAuthenticatedUser Get the currently authenticated user's information Fetch authenticated user's information.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return User
func (*DefaultApiService) GetCluster ¶
GetCluster Retrieves the cluster's global configuration settings Retrieves the current global configuration settings in use by the cluster.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return Cluster
func (*DefaultApiService) GetDiagnostics ¶
func (a *DefaultApiService) GetDiagnostics(ctx _context.Context) (*os.File, *_nethttp.Response, error)
GetDiagnostics Retrieves a diagnostics bundle from the target node Requests that the recipient node gathers information about the global state of the cluster and detailed information about the local state of each node in the cluster, using it to then build and return a bundle which can be used for troubleshooting. For clusters in an unhealthy state this may result in a slower, incomplete response. If the cluster has many nodes, it is recommended to use the single node diagnostic collection endpoint to target the desired nodes in turn. The request will only be served when the authenticated user is an administrator.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return *os.File
func (*DefaultApiService) GetLicence ¶
GetLicence Retrieves the cluster's licence information Retrieves the cluster's current licence information
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return Licence
func (*DefaultApiService) GetNamespace ¶
func (a *DefaultApiService) GetNamespace(ctx _context.Context, id string) (Namespace, *_nethttp.Response, error)
GetNamespace Fetch a namespace Fetch the namespace identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a namespace
@return Namespace
func (*DefaultApiService) GetNode ¶
func (a *DefaultApiService) GetNode(ctx _context.Context, id string) (Node, *_nethttp.Response, error)
GetNode Fetch a node Fetch the node identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a node
@return Node
func (*DefaultApiService) GetPolicyGroup ¶
func (a *DefaultApiService) GetPolicyGroup(ctx _context.Context, id string) (PolicyGroup, *_nethttp.Response, error)
GetPolicyGroup Fetch a policy group Fetch the policy group identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a policy group
@return PolicyGroup
func (*DefaultApiService) GetPool ¶
func (a *DefaultApiService) GetPool(ctx _context.Context, id string) (Pool, *_nethttp.Response, error)
GetPool Fetch a Pool Fetch the pool identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a Pool
@return Pool
func (*DefaultApiService) GetSingleNodeDiagnostics ¶
func (a *DefaultApiService) GetSingleNodeDiagnostics(ctx _context.Context, id string) (*os.File, *_nethttp.Response, error)
GetSingleNodeDiagnostics Retrieves a single node diagnostics bundle from the target node Requests that the recipient node gathers information about the global state of the cluster and detailed information about the target node, using it to then build and return a bundle which can be used for troubleshooting. If the target node is in an unhealthy state then the response may be slower and incomplete. The request will only be served when the authenticated user is an administrator.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a node
@return *os.File
func (*DefaultApiService) GetUser ¶
func (a *DefaultApiService) GetUser(ctx _context.Context, id string) (User, *_nethttp.Response, error)
GetUser Fetch a user Fetch the user identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a user
@return User
func (*DefaultApiService) GetVolume ¶
func (a *DefaultApiService) GetVolume(ctx _context.Context, namespaceID string, id string) (Volume, *_nethttp.Response, error)
GetVolume Fetch a volume Fetch the volume identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
@return Volume
func (*DefaultApiService) ListNamespaces ¶
func (a *DefaultApiService) ListNamespaces(ctx _context.Context) ([]Namespace, *_nethttp.Response, error)
ListNamespaces Fetch the list of namespaces Fetch the list of namespaces in the cluster.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []Namespace
func (*DefaultApiService) ListNodes ¶
ListNodes Fetch the list of nodes Fetch the list of nodes of the cluster.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []Node
func (*DefaultApiService) ListPolicyGroups ¶
func (a *DefaultApiService) ListPolicyGroups(ctx _context.Context) ([]PolicyGroup, *_nethttp.Response, error)
ListPolicyGroups Fetch the list of policy groups Fetch the list of policy groups in the cluster.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []PolicyGroup
func (*DefaultApiService) ListPools ¶
ListPools Fetch the list of pools Fetch the list of pools in the cluster.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []Pool
func (*DefaultApiService) ListUsers ¶
ListUsers Fetch the list of users Fetch the list of users of the cluster.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []User
func (*DefaultApiService) ListVolumes ¶
func (a *DefaultApiService) ListVolumes(ctx _context.Context, namespaceID string) ([]Volume, *_nethttp.Response, error)
ListVolumes Fetch the list of volumes in the given namespace Fetch the list of volumes in the cluster.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
@return []Volume
func (*DefaultApiService) RefreshJwt ¶
func (a *DefaultApiService) RefreshJwt(ctx _context.Context) (UserSession, *_nethttp.Response, error)
RefreshJwt Refresh the JWT Obtain a fresh token with an updated expiry deadline.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserSession
func (*DefaultApiService) ResizeVolume ¶
func (a *DefaultApiService) ResizeVolume(ctx _context.Context, namespaceID string, id string, resizeVolumeRequest ResizeVolumeRequest, localVarOptionals *ResizeVolumeOpts) (Volume, *_nethttp.Response, error)
ResizeVolume Increase the size of a volume. Resize the volume identified by id in the namespace identified by namespaceID. A volume's size cannot be reduced.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param resizeVolumeRequest
- @param optional nil or *ResizeVolumeOpts - Optional Parameters:
- @param "AsyncMax" (optional.String) - Optional parameter which will make the api request asynchronous. The operation will not be cancelled even if the client disconnect. The URL parameter value overrides the \"async-max\" header value, if any. The value of this header defines the timeout duration for the request, it must be set to a valid duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as \"300ms\", or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". We reject negative or nil duration values.
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return Volume
func (*DefaultApiService) SetComputeOnly ¶
func (a *DefaultApiService) SetComputeOnly(ctx _context.Context, id string, setComputeOnlyNodeData SetComputeOnlyNodeData, localVarOptionals *SetComputeOnlyOpts) (Node, *_nethttp.Response, error)
SetComputeOnly Modify the computeonly behaviour state for a node Set the compute-only configuration state for the node corresponding to id given by the request.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a Node
- @param setComputeOnlyNodeData
- @param optional nil or *SetComputeOnlyOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return Node
func (*DefaultApiService) SetCordoned ¶
func (a *DefaultApiService) SetCordoned(ctx _context.Context, id string, setCordonedNodeData SetCordonedNodeData, localVarOptionals *SetCordonedOpts) (Node, *_nethttp.Response, error)
SetCordoned Modify the cordoned state for a node Set the cordoned state for the node corresponding to id given by the request.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a Node
- @param setCordonedNodeData
- @param optional nil or *SetCordonedOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return Node
func (*DefaultApiService) SetFailureMode ¶
func (a *DefaultApiService) SetFailureMode(ctx _context.Context, namespaceID string, id string, setFailureModeRequest SetFailureModeRequest, localVarOptionals *SetFailureModeOpts) (Volume, *_nethttp.Response, error)
SetFailureMode Set the failure mode of the volume. Set the behaviour of the volume identified by id when responding to observed replica failure. This modifies the protected StorageOS system label \"storageos.com/failure-mode\". This request may either specify a precise failure threshold or a more flexible intent-based failure mode operating with respect to the volume's current replication target. A request will be denied if the current state of the volume does not satisfy the requested failure behaviour.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param setFailureModeRequest Failure mode to use
- @param optional nil or *SetFailureModeOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return Volume
func (*DefaultApiService) SetPlacementStrategy ¶
func (a *DefaultApiService) SetPlacementStrategy(ctx _context.Context, namespaceID string, id string, setPlacementStrategyData SetPlacementStrategyData, localVarOptionals *SetPlacementStrategyOpts) (AcceptedMessage, *_nethttp.Response, error)
SetPlacementStrategy Sets the placement strategy of the volume. Sets the desired behaviour of the volume identified by id when provisioning new replicas. The already placed replicas will not be moved, instead, during future failovers, node restarts (containing the volume replicas) and any other operation that requires a replica to be provisioned will now follow this rule thus having an \"eventually consistent\" response.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param setPlacementStrategyData
- @param optional nil or *SetPlacementStrategyOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return AcceptedMessage
func (*DefaultApiService) SetPreferredEvictionCandidates ¶
func (a *DefaultApiService) SetPreferredEvictionCandidates(ctx _context.Context, namespaceID string, id string, setPreferredEvictionCandidatesData SetPreferredEvictionCandidatesData, localVarOptionals *SetPreferredEvictionCandidatesOpts) (AcceptedMessage, *_nethttp.Response, error)
SetPreferredEvictionCandidates Specifies a list of deployments to be preferred to be evicted. Sets a list of volume deployments as preferred to be selected and evicted next time we do so. This does not trigger an immediate action in response to the request. Failed deployments are still selected over deployments specified by this method.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param setPreferredEvictionCandidatesData
- @param optional nil or *SetPreferredEvictionCandidatesOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return AcceptedMessage
func (*DefaultApiService) SetReplicas ¶
func (a *DefaultApiService) SetReplicas(ctx _context.Context, namespaceID string, id string, setReplicasRequest SetReplicasRequest, localVarOptionals *SetReplicasOpts) (AcceptedMessage, *_nethttp.Response, error)
SetReplicas Set the number of replicas to maintain for the volume. Set the number of replicas for the volume identified by id to the number specified in the request's body. This modifies the protected StorageOS system label \"storageos.com/replicas\". This request changes the desired replica count, and returns an error if changing the desired replica count failed. StorageOS satisfies the new replica configuration asynchronously.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param setReplicasRequest
- @param optional nil or *SetReplicasOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return AcceptedMessage
func (*DefaultApiService) Spec ¶
Spec Serves this openapi spec file Serves this openapi spec file
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return string
func (*DefaultApiService) UpdateAuthenticatedUser ¶
func (a *DefaultApiService) UpdateAuthenticatedUser(ctx _context.Context, updateAuthenticatedUserData UpdateAuthenticatedUserData, localVarOptionals *UpdateAuthenticatedUserOpts) (User, *_nethttp.Response, error)
UpdateAuthenticatedUser Update the authenticated user's information Update the authenticated user.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param updateAuthenticatedUserData
- @param optional nil or *UpdateAuthenticatedUserOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return User
func (*DefaultApiService) UpdateCluster ¶
func (a *DefaultApiService) UpdateCluster(ctx _context.Context, updateClusterData UpdateClusterData, localVarOptionals *UpdateClusterOpts) (Cluster, *_nethttp.Response, error)
UpdateCluster Update the cluster's global configuration settings Update the global configuration settings to use for the cluster. Updating the cluster log level does not require a restart
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param updateClusterData
- @param optional nil or *UpdateClusterOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return Cluster
func (*DefaultApiService) UpdateLicence ¶
func (a *DefaultApiService) UpdateLicence(ctx _context.Context, updateLicence UpdateLicence, localVarOptionals *UpdateLicenceOpts) (Licence, *_nethttp.Response, error)
UpdateLicence Update the licence global configuration settings Update the cluster's licence.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param updateLicence
- @param optional nil or *UpdateLicenceOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return Licence
func (*DefaultApiService) UpdateNFSVolumeExports ¶
func (a *DefaultApiService) UpdateNFSVolumeExports(ctx _context.Context, namespaceID string, id string, nfsVolumeExports NfsVolumeExports, localVarOptionals *UpdateNFSVolumeExportsOpts) (*_nethttp.Response, error)
UpdateNFSVolumeExports Update an nfs volume's export configuration Update the NFS volume's export configuration
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param nfsVolumeExports
- @param optional nil or *UpdateNFSVolumeExportsOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
- @param "AsyncMax" (optional.String) - Optional parameter which will make the api request asynchronous. The operation will not be cancelled even if the client disconnect. The URL parameter value overrides the \"async-max\" header value, if any. The value of this header defines the timeout duration for the request, it must be set to a valid duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as \"300ms\", or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". We reject negative or nil duration values.
func (*DefaultApiService) UpdateNFSVolumeMountEndpoint ¶
func (a *DefaultApiService) UpdateNFSVolumeMountEndpoint(ctx _context.Context, namespaceID string, id string, nfsVolumeMountEndpoint NfsVolumeMountEndpoint, localVarOptionals *UpdateNFSVolumeMountEndpointOpts) (*_nethttp.Response, error)
UpdateNFSVolumeMountEndpoint Update an nfs volume's mount endpoint Update the NFS volume's mount endpoint
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param nfsVolumeMountEndpoint
- @param optional nil or *UpdateNFSVolumeMountEndpointOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
- @param "AsyncMax" (optional.String) - Optional parameter which will make the api request asynchronous. The operation will not be cancelled even if the client disconnect. The URL parameter value overrides the \"async-max\" header value, if any. The value of this header defines the timeout duration for the request, it must be set to a valid duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as \"300ms\", or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". We reject negative or nil duration values.
func (*DefaultApiService) UpdateNamespace ¶
func (a *DefaultApiService) UpdateNamespace(ctx _context.Context, id string, updateNamespaceData UpdateNamespaceData, localVarOptionals *UpdateNamespaceOpts) (Namespace, *_nethttp.Response, error)
UpdateNamespace Update a namespace Update the namespace identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a namespace
- @param updateNamespaceData
- @param optional nil or *UpdateNamespaceOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return Namespace
func (*DefaultApiService) UpdateNode ¶
func (a *DefaultApiService) UpdateNode(ctx _context.Context, id string, updateNodeData UpdateNodeData) (Node, *_nethttp.Response, error)
UpdateNode Update a node Update the non-storageos labels configured for the node identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a node
- @param updateNodeData
@return Node
func (*DefaultApiService) UpdatePolicyGroup ¶
func (a *DefaultApiService) UpdatePolicyGroup(ctx _context.Context, id string, updatePolicyGroupData UpdatePolicyGroupData, localVarOptionals *UpdatePolicyGroupOpts) (PolicyGroup, *_nethttp.Response, error)
UpdatePolicyGroup Update a policy group Update the policy group identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a policy group
- @param updatePolicyGroupData
- @param optional nil or *UpdatePolicyGroupOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return PolicyGroup
func (*DefaultApiService) UpdatePool ¶
func (a *DefaultApiService) UpdatePool(ctx _context.Context, id string, updatePoolData UpdatePoolData, localVarOptionals *UpdatePoolOpts) (Pool, *_nethttp.Response, error)
UpdatePool Update a Pool Update the node-drive mapping for the pool identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a Pool
- @param updatePoolData
- @param optional nil or *UpdatePoolOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return Pool
func (*DefaultApiService) UpdateUser ¶
func (a *DefaultApiService) UpdateUser(ctx _context.Context, id string, updateUserData UpdateUserData, localVarOptionals *UpdateUserOpts) (User, *_nethttp.Response, error)
UpdateUser Update a user Update the user identified by id. This request will not succeed if the target account is the currently authenticated account. Use the separate users/self endpoint for this purpose.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of a user
- @param updateUserData
- @param optional nil or *UpdateUserOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
@return User
func (*DefaultApiService) UpdateVolume ¶
func (a *DefaultApiService) UpdateVolume(ctx _context.Context, namespaceID string, id string, updateVolumeData UpdateVolumeData, localVarOptionals *UpdateVolumeOpts) (Volume, *_nethttp.Response, error)
UpdateVolume Update a volume Update the description and non-storageos labels configured for the volume identified by id.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespaceID ID of a Namespace
- @param id ID of a Volume
- @param updateVolumeData
- @param optional nil or *UpdateVolumeOpts - Optional Parameters:
- @param "IgnoreVersion" (optional.Bool) - If set to true this value indicates that the user wants to ignore entity version constraints, thereby \"forcing\" the operation.
- @param "AsyncMax" (optional.String) - Optional parameter which will make the api request asynchronous. The operation will not be cancelled even if the client disconnect. The URL parameter value overrides the \"async-max\" header value, if any. The value of this header defines the timeout duration for the request, it must be set to a valid duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as \"300ms\", or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". We reject negative or nil duration values.
@return Volume
type DeleteAuthenticatedUserOpts ¶
DeleteAuthenticatedUserOpts Optional parameters for the method 'DeleteAuthenticatedUser'
type DeleteNamespaceOpts ¶
DeleteNamespaceOpts Optional parameters for the method 'DeleteNamespace'
type DeleteNodeOpts ¶
DeleteNodeOpts Optional parameters for the method 'DeleteNode'
type DeletePolicyGroupOpts ¶
DeletePolicyGroupOpts Optional parameters for the method 'DeletePolicyGroup'
type DeletePoolOpts ¶
DeletePoolOpts Optional parameters for the method 'DeletePool'
type DeleteUserOpts ¶
DeleteUserOpts Optional parameters for the method 'DeleteUser'
type DeleteVolumeOpts ¶
type DeleteVolumeOpts struct { IgnoreVersion optional.Bool AsyncMax optional.String OfflineDelete optional.Bool }
DeleteVolumeOpts Optional parameters for the method 'DeleteVolume'
type DeploymentInfo ¶
type DeploymentInfo struct { // A unique identifier for a volume deployment. The format of this type is undefined and may change but the defined properties will not change. Id string `json:"id,omitempty"` // A unique identifier for a node. The format of this type is undefined and may change but the defined properties will not change. NodeID string `json:"nodeID,omitempty"` // The hostname of the node that is hosting the deployment Hostname string `json:"hostname,omitempty"` // Indicates if the volume deployment is eligible for promotion Promotable bool `json:"promotable,omitempty"` }
DeploymentInfo struct for DeploymentInfo
type DetachVolumeOpts ¶
DetachVolumeOpts Optional parameters for the method 'DetachVolume'
type FailureModeIntent ¶
type FailureModeIntent string
FailureModeIntent The intent-based failure mode behaviour of a volume. The default behaviour for a volume is \"hard\", in the absence of a directly configured intent or numerical failure threshold.
const ( FAILUREMODEINTENT_HARD FailureModeIntent = "hard" FAILUREMODEINTENT_SOFT FailureModeIntent = "soft" FAILUREMODEINTENT_ALWAYSON FailureModeIntent = "alwayson" )
List of FailureModeIntent
type FsType ¶
type FsType string
FsType The file system type of a volume. \"block\" is a raw block device (no filesystem).
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type Licence ¶
type Licence struct { // A unique identifier for a cluster. The format of this type is undefined and may change but the defined properties will not change. ClusterID string `json:"clusterID,omitempty"` // The time after which a licence will no longer be valid This timestamp is set when the licence is created. String format is RFC3339. ExpiresAt time.Time `json:"expiresAt,omitempty"` // The allowed provisioning capacity in bytes This value if for the cluster, if provisioning a volume brings the cluster's total provisioned capacity above it the request will fail ClusterCapacityBytes uint64 `json:"clusterCapacityBytes,omitempty"` // Sum of the size of all volumes in the cluster UsedBytes uint64 `json:"usedBytes,omitempty"` // Denotes which category the licence belongs to Kind string `json:"kind,omitempty"` // A user friendly reference to the customer CustomerName string `json:"customerName,omitempty"` // A list of product features which are enabled by the licence, subject to the installed version. Features *[]string `json:"features,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
Licence A representation of a cluster's licence properties
type LogFormat ¶
type LogFormat string
LogFormat This setting determines the format nodes in the cluster will use for log entries. This setting is only checked by nodes on startup. Changing this setting will not affect the behaviour of nodes that are already operational.
type LogLevel ¶
type LogLevel string
LogLevel This setting determines the log level for nodes across the cluster to use when recording entries in the log. All entries below the specified log level are discarded, where \"error\" is the highest log level and \"debug\" is the lowest. This setting is only checked by nodes on startup. Changing this setting will not affect the behaviour of nodes that are already operational.
type MasterDeploymentInfo ¶
type MasterDeploymentInfo struct { // A unique identifier for a volume deployment. The format of this type is undefined and may change but the defined properties will not change. Id string `json:"id,omitempty"` // A unique identifier for a node. The format of this type is undefined and may change but the defined properties will not change. NodeID string `json:"nodeID,omitempty"` // The hostname of the node that is hosting the deployment Hostname string `json:"hostname,omitempty"` // Indicates if the volume deployment is eligible for promotion Promotable bool `json:"promotable,omitempty"` Health MasterHealth `json:"health,omitempty"` }
MasterDeploymentInfo struct for MasterDeploymentInfo
type MasterDeploymentInfoAllOf ¶
type MasterDeploymentInfoAllOf struct {
Health MasterHealth `json:"health,omitempty"`
}
MasterDeploymentInfoAllOf struct for MasterDeploymentInfoAllOf
type MasterHealth ¶
type MasterHealth string
MasterHealth The operational health of a volume master deployment
const ( MASTERHEALTH_ONLINE MasterHealth = "online" MASTERHEALTH_OFFLINE MasterHealth = "offline" MASTERHEALTH_UNKNOWN MasterHealth = "unknown" )
List of MasterHealth
type Namespace ¶
type Namespace struct { // A unique identifier for a namespace. The format of this type is undefined and may change but the defined properties will not change.. Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` // A set of arbitrary key value labels to apply to the entity. Labels map[string]string `json:"labels,omitempty"` // The time the entity was created. This timestamp is set by the node that created the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. CreatedAt time.Time `json:"createdAt,omitempty"` // The time the entity was last updated. This timestamp is set by the node that last updated the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. UpdatedAt time.Time `json:"updatedAt,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
Namespace struct for Namespace
type NfsAcl ¶
type NfsAcl struct { Identity NfsAclIdentity `json:"identity,omitempty"` SquashConfig NfsAclSquashConfig `json:"squashConfig,omitempty"` // The access level this ACL grants - read-only, or read-write. AccessLevel string `json:"accessLevel,omitempty"` }
NfsAcl struct for NfsAcl
type NfsAclIdentity ¶
type NfsAclIdentity struct { // The identity type used to identify the nfs client. IdentityType string `json:"identityType,omitempty"` // NFS identity matcher. For \"cidr\", this should be a valid CIDR block string such as \"10.0.0.0/8\". For \"hostname\", this must be the hostname sent by the client, with ? and * wildcard characters. For netgroup, this must be in the form of \"@netgroup\" with ? and * wildcard characters. Matcher string `json:"matcher,omitempty"` }
NfsAclIdentity struct for NfsAclIdentity
type NfsAclSquashConfig ¶
type NfsAclSquashConfig struct { Uid int64 `json:"uid,omitempty"` Gid int64 `json:"gid,omitempty"` // SquashConfig defines the root squashing behaviour. When a client creates a file, it sends the user UID from the client. If the client is running as root, this sends uid=0. Root squashing allows the NFS administrator to prevent the client from writing as \"root\" to the NFS share, instead mapping the client to a new UID/GID (usually nfsnobody, -2). \"none\" performs no UID/GID alterations, using the values sent by the client. \"root\" maps UID & GID 0 to the values specified. \"rootuid\" maps UID 0 and a GID of any value to the value specified. \"all\" maps changes all UID and GID values to those specified. Squash string `json:"squash,omitempty"` }
NfsAclSquashConfig struct for NfsAclSquashConfig
type NfsConfig ¶
type NfsConfig struct { Exports *[]NfsExportConfig `json:"exports,omitempty"` // The address to which the NFS server is bound. ServiceEndpoint *string `json:"serviceEndpoint,omitempty"` }
NfsConfig struct for NfsConfig
type NfsExportConfig ¶
type NfsExportConfig struct { // ID for this export ExportID uint64 `json:"exportID,omitempty"` // The path relative to the volume root to serve as the export root Path string `json:"path,omitempty"` // The configured pseudo path in the NFS virtual filesystem. This is the path clients will see when traversing to this export on the NFS share. PseudoPath string `json:"pseudoPath,omitempty"` Acls []NfsAcl `json:"acls,omitempty"` }
NfsExportConfig struct for NfsExportConfig
type NfsVolumeExports ¶
type NfsVolumeExports struct { Exports []NfsExportConfig `json:"exports,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
NfsVolumeExports struct for NfsVolumeExports
type NfsVolumeMountEndpoint ¶
type NfsVolumeMountEndpoint struct { // The address to which the NFS server is bound. MountEndpoint string `json:"mountEndpoint,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
NfsVolumeMountEndpoint struct for NfsVolumeMountEndpoint
type Node ¶
type Node struct { // A unique identifier for a node. The format of this type is undefined and may change but the defined properties will not change. Id string `json:"id,omitempty"` // The hostname of the node. This value is set by the node each time it joins the Ondat cluster. Name string `json:"name,omitempty"` Health NodeHealth `json:"health,omitempty"` Capacity CapacityStats `json:"capacity,omitempty"` // Endpoint at which we operate our dataplane's dfs service. (used for IO operations) This value is set on startup by the corresponding environment variable (IO_ADVERTISE_ADDRESS) IoEndpoint string `json:"ioEndpoint,omitempty"` // Endpoint at which we operate our dataplane's supervisor service (used for sync). This value is set on startup by the corresponding environment variable (SUPERVISOR_ADVERTISE_ADDRESS) SupervisorEndpoint string `json:"supervisorEndpoint,omitempty"` // Endpoint at which we operate our health checking service. This value is set on startup by the corresponding environment variable (GOSSIP_ADVERTISE_ADDRESS) GossipEndpoint string `json:"gossipEndpoint,omitempty"` // Endpoint at which we operate our clustering gRPC API. This value is set on startup by the corresponding environment variable (INTERNAL_API_ADVERTISE_ADDRESS) ClusteringEndpoint string `json:"clusteringEndpoint,omitempty"` // Cordoned describes the cordoned state of the node. A cordoned node will not have new volume deployments scheduled on it Cordoned bool `json:"cordoned,omitempty"` // The time the node has been cordoned. This field's purpose is informative only. String format is RFC3339. CordonedAt time.Time `json:"cordonedAt,omitempty"` // A set of arbitrary key value labels to apply to the entity. Labels map[string]string `json:"labels,omitempty"` // The time the entity was created. This timestamp is set by the node that created the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. CreatedAt time.Time `json:"createdAt,omitempty"` // The time the entity was last updated. This timestamp is set by the node that last updated the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. UpdatedAt time.Time `json:"updatedAt,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
Node struct for Node
type NodeHealth ¶
type NodeHealth string
NodeHealth The operational health of a node entity
const ( NODEHEALTH_ONLINE NodeHealth = "online" NODEHEALTH_OFFLINE NodeHealth = "offline" NODEHEALTH_UNKNOWN NodeHealth = "unknown" )
List of NodeHealth
type ParentInfo ¶
type ParentInfo struct { Id string `json:"id,omitempty"` NamespaceID string `json:"namespaceID,omitempty"` SnapshotID string `json:"snapshotID,omitempty"` }
ParentInfo struct for ParentInfo
type PoliciesIdSpecs ¶
type PoliciesIdSpecs struct { // A unique identifier for a namespace. The format of this type is undefined and may change but the defined properties will not change.. NamespaceID string `json:"namespaceID,omitempty"` // The resource type this policy grants access to. ResourceType string `json:"resourceType,omitempty"` // If true, disallows requests that attempt to mutate the resource. ReadOnly bool `json:"readOnly,omitempty"` }
PoliciesIdSpecs struct for PoliciesIdSpecs
type PoliciesSpecs ¶
type PoliciesSpecs struct { // A unique identifier for a namespace. The format of this type is undefined and may change but the defined properties will not change.. NamespaceID string `json:"namespaceID,omitempty"` // The resource type this policy grants access to. ResourceType string `json:"resourceType,omitempty"` // If true, disallows requests that attempt to mutate the resource. ReadOnly bool `json:"readOnly,omitempty"` }
PoliciesSpecs struct for PoliciesSpecs
type PolicyGroup ¶
type PolicyGroup struct { // A unique identifier for a policy group. The format of this type is undefined and may change but the defined properties will not change.. Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` // The list of user IDs which this policy group governs. Users []PolicyGroupUsers `json:"users,omitempty"` // A set of authorisation policies to apply to the policy group. Specs *[]PoliciesIdSpecs `json:"specs,omitempty"` // The time the entity was created. This timestamp is set by the node that created the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. CreatedAt time.Time `json:"createdAt,omitempty"` // The time the entity was last updated. This timestamp is set by the node that last updated the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. UpdatedAt time.Time `json:"updatedAt,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
PolicyGroup struct for PolicyGroup
type PolicyGroupUsers ¶
type PolicyGroupUsers struct { // A unique identifier for a user. The format of this type is undefined and may change but the defined properties will not change.. Id string `json:"id,omitempty"` Username string `json:"username,omitempty"` }
PolicyGroupUsers struct for PolicyGroupUsers
type Pool ¶
type Pool struct { // A unique identifier for a pool. The format of this type is undefined and may change but the defined properties will not change.. Id string `json:"id,omitempty"` // The name of the pool Name string `json:"name,omitempty"` NodeToDriveMapping map[string][]string `json:"nodeToDriveMapping,omitempty"` // The time the entity was created. This timestamp is set by the node that created the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. CreatedAt time.Time `json:"createdAt,omitempty"` // The time the entity was last updated. This timestamp is set by the node that last updated the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. UpdatedAt time.Time `json:"updatedAt,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
Pool struct for Pool
type ReplicaDeploymentInfo ¶
type ReplicaDeploymentInfo struct { // A unique identifier for a volume deployment. The format of this type is undefined and may change but the defined properties will not change. Id string `json:"id,omitempty"` // A unique identifier for a node. The format of this type is undefined and may change but the defined properties will not change. NodeID string `json:"nodeID,omitempty"` // The hostname of the node that is hosting the deployment Hostname string `json:"hostname,omitempty"` // Indicates if the volume deployment is eligible for promotion Promotable bool `json:"promotable,omitempty"` Health ReplicaHealth `json:"health,omitempty"` SyncProgress SyncProgress `json:"syncProgress,omitempty"` }
ReplicaDeploymentInfo struct for ReplicaDeploymentInfo
type ReplicaDeploymentInfoAllOf ¶
type ReplicaDeploymentInfoAllOf struct { Health ReplicaHealth `json:"health,omitempty"` SyncProgress SyncProgress `json:"syncProgress,omitempty"` }
ReplicaDeploymentInfoAllOf struct for ReplicaDeploymentInfoAllOf
type ReplicaHealth ¶
type ReplicaHealth string
ReplicaHealth The operational health of a volume replica deployment
const ( REPLICAHEALTH_RECOVERING ReplicaHealth = "recovering" REPLICAHEALTH_PROVISIONING ReplicaHealth = "provisioning" REPLICAHEALTH_PROVISIONED ReplicaHealth = "provisioned" REPLICAHEALTH_SYNCING ReplicaHealth = "syncing" REPLICAHEALTH_READY ReplicaHealth = "ready" REPLICAHEALTH_DELETED ReplicaHealth = "deleted" REPLICAHEALTH_FAILED ReplicaHealth = "failed" REPLICAHEALTH_UNKNOWN ReplicaHealth = "unknown" )
List of ReplicaHealth
type ResizeVolumeOpts ¶
ResizeVolumeOpts Optional parameters for the method 'ResizeVolume'
type ResizeVolumeRequest ¶
type ResizeVolumeRequest struct { // The desired new size for the volume in bytes. This value cannot be less than the current size of the volume. SizeBytes uint64 `json:"sizeBytes,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
ResizeVolumeRequest struct for ResizeVolumeRequest
type ServerConfiguration ¶
type ServerConfiguration struct { Url string Description string Variables map[string]ServerVariable }
ServerConfiguration stores the information about a server
type ServerVariable ¶
ServerVariable stores the information about a server variable
type SetComputeOnlyNodeData ¶
type SetComputeOnlyNodeData struct { // Marks the node's desired configuration state as compute-only. This will result in the node being avoided for volume placement ComputeOnly bool `json:"computeOnly,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
SetComputeOnlyNodeData struct for SetComputeOnlyNodeData
type SetComputeOnlyOpts ¶
SetComputeOnlyOpts Optional parameters for the method 'SetComputeOnly'
type SetCordonedNodeData ¶
type SetCordonedNodeData struct { // Marks the node's desired cordoned state state. A cordoned node will not have new volume deployments scheduled on it. Cordoned bool `json:"cordoned,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
SetCordonedNodeData struct for SetCordonedNodeData
type SetCordonedOpts ¶
SetCordonedOpts Optional parameters for the method 'SetCordoned'
type SetFailureModeIntentRequestData ¶
type SetFailureModeIntentRequestData struct { Mode FailureModeIntent `json:"mode,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
SetFailureModeIntentRequestData struct for SetFailureModeIntentRequestData
type SetFailureModeOpts ¶
SetFailureModeOpts Optional parameters for the method 'SetFailureMode'
type SetFailureModeRequest ¶
type SetFailureModeRequest struct { // The minimum number of replicas required to be online and receiving writes in order for the volume to remain read-writable. This value replaces any previously set failure threshold or intent-based failure mode. FailureThreshold uint64 `json:"failureThreshold,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` Mode FailureModeIntent `json:"mode,omitempty"` }
SetFailureModeRequest struct for SetFailureModeRequest
type SetFailureThresholdRequestData ¶
type SetFailureThresholdRequestData struct { // The minimum number of replicas required to be online and receiving writes in order for the volume to remain read-writable. This value replaces any previously set failure threshold or intent-based failure mode. FailureThreshold uint64 `json:"failureThreshold,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
SetFailureThresholdRequestData struct for SetFailureThresholdRequestData
type SetPlacementStrategyData ¶
type SetPlacementStrategyData struct { PlacementStrategy Strategy `json:"placementStrategy,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
SetPlacementStrategyData struct for SetPlacementStrategyData
type SetPlacementStrategyOpts ¶
SetPlacementStrategyOpts Optional parameters for the method 'SetPlacementStrategy'
type SetPreferredEvictionCandidatesData ¶
type SetPreferredEvictionCandidatesData struct { DeploymentIDs []string `json:"deploymentIDs,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
SetPreferredEvictionCandidatesData struct for SetPreferredEvictionCandidatesData
type SetPreferredEvictionCandidatesOpts ¶
SetPreferredEvictionCandidatesOpts Optional parameters for the method 'SetPreferredEvictionCandidates'
type SetReplicasOpts ¶
SetReplicasOpts Optional parameters for the method 'SetReplicas'
type SetReplicasRequest ¶
type SetReplicasRequest struct { // The number of replicas desired. Replicas uint64 `json:"replicas,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
SetReplicasRequest struct for SetReplicasRequest
type Snapshot ¶
type Snapshot struct { Name string `json:"name,omitempty"` Id string `json:"id,omitempty"` Location string `json:"location,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` SizeBytes float32 `json:"sizeBytes,omitempty"` }
Snapshot struct for Snapshot
type SnapshotVolume ¶
type SnapshotVolume struct { // A unique identifier for a volume. The format of this type is undefined and may change but the defined properties will not change. Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` AttachedOn string `json:"attachedOn,omitempty"` // The hostname of the node the volume is attached on AttachedOnHost string `json:"attachedOnHost,omitempty"` Nfs NfsConfig `json:"nfs,omitempty"` NamespaceID string `json:"namespaceID,omitempty"` // A set of arbitrary key value labels to apply to the entity. Labels map[string]string `json:"labels,omitempty"` FsType FsType `json:"fsType,omitempty"` AttachmentType AttachType `json:"attachmentType,omitempty"` Master MasterDeploymentInfo `json:"master,omitempty"` Replicas *[]ReplicaDeploymentInfo `json:"replicas,omitempty"` // A volume's size in bytes SizeBytes uint64 `json:"sizeBytes,omitempty"` ParentInfo ParentInfo `json:"parentInfo,omitempty"` // The time the entity was created. This timestamp is set by the node that created the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. CreatedAt time.Time `json:"createdAt,omitempty"` // The time the entity was last updated. This timestamp is set by the node that last updated the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. UpdatedAt time.Time `json:"updatedAt,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
SnapshotVolume struct for SnapshotVolume
type Strategy ¶
type Strategy struct { Strategy string `json:"strategy,omitempty"` Options *StrategyOptions `json:"options,omitempty"` }
Strategy The logic to use when placing the volume replicas across the available nodes. Possible options for this field include an availability zone aware rule and recommended rule in which multiple factors like available disk space, recent number of errors on the nodes, etc, are taken into consideration. Defaults to using a recommended placement strategy.
type StrategyOptions ¶
type StrategyOptions struct { // Indicates the node label used to decribe the topology used for data placement decisions. If two nodes are labelled with this key and have identical values for that label, the scheduler treats both nodes as being in the same topology domain. When topology-aware provisioning is enabled, the scheduler tries to spread a volume's master and replica copies across different topology domains. TopologyKey string `json:"topologyKey,omitempty"` }
StrategyOptions Used together with topology-aware strategy to further specify how the placement should be done.
type SyncProgress ¶
type SyncProgress struct { // Number of bytes left remaining to complete the sync. BytesRemaining uint64 `json:"bytesRemaining,omitempty"` // The average throughput of the sync given as bytes per second. ThroughputBytes uint64 `json:"throughputBytes,omitempty"` // The estimated time left for the sync to complete, given in seconds. When this field has a value of 0 either the sync is complete or no duration estimate could be made. The values reported for bytesRemaining and throughputBytes provide the client with the information needed to choose what to display. EstimatedSecondsRemaining uint64 `json:"estimatedSecondsRemaining,omitempty"` }
SyncProgress The progress report for an ongoing sync.
type TopologyLabels ¶
type TopologyLabels struct { RequisiteZones []string `json:"requisiteZones,omitempty"` PreferredZones []string `json:"preferredZones,omitempty"` }
TopologyLabels List of requisite and preferred topology zones where the volume should be accessible from.
type UpdateAuthenticatedUserData ¶
type UpdateAuthenticatedUserData struct { // If not present, the existing password is not changed Password string `json:"password,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
UpdateAuthenticatedUserData struct for UpdateAuthenticatedUserData
type UpdateAuthenticatedUserOpts ¶
UpdateAuthenticatedUserOpts Optional parameters for the method 'UpdateAuthenticatedUser'
type UpdateClusterData ¶
type UpdateClusterData struct { // Disables collection of telemetry data across the cluster. DisableTelemetry bool `json:"disableTelemetry,omitempty"` // Disables collection of reports for any fatal crashes across the cluster. DisableCrashReporting bool `json:"disableCrashReporting,omitempty"` // Disables the mechanism responsible for checking if there is an updated version of Ondat available for installation. DisableVersionCheck bool `json:"disableVersionCheck,omitempty"` LogLevel LogLevel `json:"logLevel,omitempty"` LogFormat LogFormat `json:"logFormat,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
UpdateClusterData struct for UpdateClusterData
type UpdateClusterOpts ¶
UpdateClusterOpts Optional parameters for the method 'UpdateCluster'
type UpdateLicence ¶
type UpdateLicence struct { // An Ondat product licence key, used to register a cluster. The format of this type is opaque and may change. Key string `json:"key,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
UpdateLicence struct for UpdateLicence
type UpdateLicenceOpts ¶
UpdateLicenceOpts Optional parameters for the method 'UpdateLicence'
type UpdateNFSVolumeExportsOpts ¶
UpdateNFSVolumeExportsOpts Optional parameters for the method 'UpdateNFSVolumeExports'
type UpdateNFSVolumeMountEndpointOpts ¶
type UpdateNFSVolumeMountEndpointOpts struct { IgnoreVersion optional.Bool AsyncMax optional.String }
UpdateNFSVolumeMountEndpointOpts Optional parameters for the method 'UpdateNFSVolumeMountEndpoint'
type UpdateNamespaceData ¶
type UpdateNamespaceData struct { // A set of arbitrary key value labels to apply to the entity. Labels map[string]string `json:"labels,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
UpdateNamespaceData struct for UpdateNamespaceData
type UpdateNamespaceOpts ¶
UpdateNamespaceOpts Optional parameters for the method 'UpdateNamespace'
type UpdateNodeData ¶
type UpdateNodeData struct { // A set of arbitrary key value labels to apply to the entity. Labels map[string]string `json:"labels,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
UpdateNodeData struct for UpdateNodeData
type UpdatePolicyGroupData ¶
type UpdatePolicyGroupData struct { // A set of authorisation policies to apply to the policy group. Specs *[]PoliciesIdSpecs `json:"specs,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
UpdatePolicyGroupData struct for UpdatePolicyGroupData
type UpdatePolicyGroupOpts ¶
UpdatePolicyGroupOpts Optional parameters for the method 'UpdatePolicyGroup'
type UpdatePoolData ¶
type UpdatePoolData struct { NodeToDriveMapping map[string][]string `json:"nodeToDriveMapping,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
UpdatePoolData struct for UpdatePoolData
type UpdatePoolOpts ¶
UpdatePoolOpts Optional parameters for the method 'UpdatePool'
type UpdateUserData ¶
type UpdateUserData struct { // If not present, the existing password is not changed Password string `json:"password,omitempty"` // If true, this user is an administrator of the cluster. Administrators bypass the usual authentication checks and are granted access to all resources. Some actions (such as adding a new user) can only be performed by an administrator. IsAdmin bool `json:"isAdmin,omitempty"` // Defines a set of policy group IDs this user is a member of. Policy groups can be used to logically group users and apply authorisation policies to all members. Groups *[]string `json:"groups,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
UpdateUserData struct for UpdateUserData
type UpdateUserOpts ¶
UpdateUserOpts Optional parameters for the method 'UpdateUser'
type UpdateVolumeData ¶
type UpdateVolumeData struct { // A set of arbitrary key value labels to apply to the entity. Labels map[string]string `json:"labels,omitempty"` Description string `json:"description,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
UpdateVolumeData struct for UpdateVolumeData
type UpdateVolumeOpts ¶
UpdateVolumeOpts Optional parameters for the method 'UpdateVolume'
type User ¶
type User struct { // A unique identifier for a user. The format of this type is undefined and may change but the defined properties will not change.. Id string `json:"id,omitempty"` Username string `json:"username,omitempty"` // If true, this user is an administrator of the cluster. Administrators bypass the usual authentication checks and are granted access to all resources. Some actions (such as adding a new user) can only be performed by an administrator. IsAdmin bool `json:"isAdmin,omitempty"` // Defines a set of policy group IDs this user is a member of. Policy groups can be used to logically group users and apply authorisation policies to all members. Groups *[]string `json:"groups,omitempty"` // The time the entity was created. This timestamp is set by the node that created the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. CreatedAt time.Time `json:"createdAt,omitempty"` // The time the entity was last updated. This timestamp is set by the node that last updated the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. UpdatedAt time.Time `json:"updatedAt,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
User struct for User
type UserSession ¶
type UserSession struct { // A unique identifier for a user. The format of this type is undefined and may change but the defined properties will not change.. Id string `json:"id,omitempty"` Username string `json:"username,omitempty"` // If true, this user is an administrator of the cluster. Administrators bypass the usual authentication checks and are granted access to all resources. Some actions (such as adding a new user) can only be performed by an administrator. IsAdmin bool `json:"isAdmin,omitempty"` // Defines a set of policy group IDs this user is a member of. Policy groups can be used to logically group users and apply authorisation policies to all members. Groups *[]string `json:"groups,omitempty"` // The time the entity was created. This timestamp is set by the node that created the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. CreatedAt time.Time `json:"createdAt,omitempty"` // The time the entity was last updated. This timestamp is set by the node that last updated the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. UpdatedAt time.Time `json:"updatedAt,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` Session UserSessionAllOfSession `json:"session,omitempty"` }
UserSession struct for UserSession
type UserSessionAllOf ¶
type UserSessionAllOf struct {
Session UserSessionAllOfSession `json:"session,omitempty"`
}
UserSessionAllOf struct for UserSessionAllOf
type UserSessionAllOfSession ¶
type UserSessionAllOfSession struct { // The maximum duration which the auth session will remain valid for in seconds. ExpiresInSeconds uint64 `json:"expiresInSeconds,omitempty"` // The JWT token for the auth session. Token string `json:"token,omitempty"` }
UserSessionAllOfSession struct for UserSessionAllOfSession
type Volume ¶
type Volume struct { // A unique identifier for a volume. The format of this type is undefined and may change but the defined properties will not change. Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` AttachedOn string `json:"attachedOn,omitempty"` // The hostname of the node the volume is attached on AttachedOnHost string `json:"attachedOnHost,omitempty"` Nfs NfsConfig `json:"nfs,omitempty"` NamespaceID string `json:"namespaceID,omitempty"` // A set of arbitrary key value labels to apply to the entity. Labels map[string]string `json:"labels,omitempty"` TopologyLabels TopologyLabels `json:"topologyLabels,omitempty"` FsType FsType `json:"fsType,omitempty"` AttachmentType AttachType `json:"attachmentType,omitempty"` Master MasterDeploymentInfo `json:"master,omitempty"` Replicas *[]ReplicaDeploymentInfo `json:"replicas,omitempty"` // A volume's size in bytes SizeBytes uint64 `json:"sizeBytes,omitempty"` SnapshotConfig map[string]Snapshot `json:"snapshotConfig,omitempty"` SnapshotVolumes map[string]SnapshotVolume `json:"snapshotVolumes,omitempty"` ParentInfo ParentInfo `json:"parentInfo,omitempty"` // The time the entity was created. This timestamp is set by the node that created the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. CreatedAt time.Time `json:"createdAt,omitempty"` // The time the entity was last updated. This timestamp is set by the node that last updated the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339. UpdatedAt time.Time `json:"updatedAt,omitempty"` // An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change. Version string `json:"version,omitempty"` }
Volume struct for Volume
Source Files
¶
- api_default.go
- client.go
- configuration.go
- model__policies__id__specs.go
- model__policies_specs.go
- model_accepted_message.go
- model_add_deployment_on_node_data.go
- model_attach_nfs_volume_data.go
- model_attach_type.go
- model_attach_volume_data.go
- model_auth_user_data.go
- model_capacity_stats.go
- model_cluster.go
- model_create_namespace_data.go
- model_create_policy_group_data.go
- model_create_pool_data.go
- model_create_user_data.go
- model_create_volume_data.go
- model_deployment_info.go
- model_error.go
- model_failure_mode_intent.go
- model_fs_type.go
- model_licence.go
- model_log_format.go
- model_log_level.go
- model_master_deployment_info.go
- model_master_deployment_info_all_of.go
- model_master_health.go
- model_namespace.go
- model_nfs_acl.go
- model_nfs_acl_identity.go
- model_nfs_acl_squash_config.go
- model_nfs_config.go
- model_nfs_export_config.go
- model_nfs_volume_exports.go
- model_nfs_volume_mount_endpoint.go
- model_node.go
- model_node_health.go
- model_parent_info.go
- model_policy_group.go
- model_policy_group_users.go
- model_pool.go
- model_replica_deployment_info.go
- model_replica_deployment_info_all_of.go
- model_replica_health.go
- model_resize_volume_request.go
- model_set_compute_only_node_data.go
- model_set_cordoned_node_data.go
- model_set_failure_mode_intent_request_data.go
- model_set_failure_mode_request.go
- model_set_failure_threshold_request_data.go
- model_set_placement_strategy_data.go
- model_set_preferred_eviction_candidates_data.go
- model_set_replicas_request.go
- model_snapshot.go
- model_snapshot_volume.go
- model_strategy.go
- model_strategy_options.go
- model_sync_progress.go
- model_topology_labels.go
- model_update_authenticated_user_data.go
- model_update_cluster_data.go
- model_update_licence.go
- model_update_namespace_data.go
- model_update_node_data.go
- model_update_policy_group_data.go
- model_update_pool_data.go
- model_update_user_data.go
- model_update_volume_data.go
- model_user.go
- model_user_session.go
- model_user_session_all_of.go
- model_user_session_all_of_session.go
- model_volume.go
- response.go