storage

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const RegionNameUsSva2 = shared.RegionNameUsSva2

Equals "us-sva-2"

View Source
const RegionNameUsWdc1 = shared.RegionNameUsWdc1

Equals "us-wdc-1"

View Source
const ResourceStatusCreating = shared.ResourceStatusCreating

Equals "creating"

View Source
const ResourceStatusDeleted = shared.ResourceStatusDeleted

Equals "deleted"

View Source
const ResourceStatusDeleting = shared.ResourceStatusDeleting

Equals "deleting"

View Source
const ResourceStatusError = shared.ResourceStatusError

Equals "error"

View Source
const ResourceStatusPending = shared.ResourceStatusPending

Equals "pending"

View Source
const ResourceStatusReady = shared.ResourceStatusReady

Equals "ready"

View Source
const ResourceStatusSuspended = shared.ResourceStatusSuspended

Equals "suspended"

View Source
const ResourceStatusUpdating = shared.ResourceStatusUpdating

Equals "updating"

View Source
const VMMetricUnitBytes = shared.VMMetricUnitBytes

Equals "bytes"

View Source
const VMMetricUnitBytesPerSecond = shared.VMMetricUnitBytesPerSecond

Equals "bytes_per_second"

View Source
const VMMetricUnitCores = shared.VMMetricUnitCores

Equals "cores"

View Source
const VMMetricUnitOperationsPerSecond = shared.VMMetricUnitOperationsPerSecond

Equals "operations_per_second"

View Source
const VMMetricUnitRatio = shared.VMMetricUnitRatio

Equals "ratio"

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	// Unique identifier for the Bucket.
	ID string `json:"id" api:"required"`
	// When the Bucket was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// S3 endpoint of the Bucket's region. Point S3 clients at it, with an Object
	// Storage Key of the same project and region.
	Endpoint string `json:"endpoint" api:"required"`
	// Name of the Bucket, used to address it over S3.
	Name string `json:"name" api:"required"`
	// Number of objects in the Bucket. Updated periodically, so it can lag behind
	// recent writes.
	ObjectCount int64 `json:"object_count" api:"required"`
	// Project ID the Bucket belongs to.
	ProjectID string `json:"project_id" api:"required"`
	// Region the resource is in.
	//
	// Any of "us-sva-2", "us-wdc-1".
	Region shared.RegionName `json:"region" api:"required"`
	// Region S3 clients must sign their requests for (the SigV4 region). Configure it
	// as the region of any S3 client or SDK used with the Bucket.
	SigningRegion string `json:"signing_region" api:"required"`
	// Total size of the objects in the Bucket, in bytes. Updated periodically, so it
	// can lag behind recent writes.
	SizeBytes int64 `json:"size_bytes" api:"required"`
	// Status of the resource.
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "deleted",
	// "error", "suspended".
	Status shared.ResourceStatus `json:"status" api:"required"`
	// Tags attached to the Bucket.
	Tags []string `json:"tags" api:"required"`
	// When the Bucket was updated.
	UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
	// Path-style URL of the Bucket.
	URL string `json:"url" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Endpoint      respjson.Field
		Name          respjson.Field
		ObjectCount   respjson.Field
		ProjectID     respjson.Field
		Region        respjson.Field
		SigningRegion respjson.Field
		SizeBytes     respjson.Field
		Status        respjson.Field
		Tags          respjson.Field
		UpdatedAt     respjson.Field
		URL           respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Bucket details.

func (Bucket) RawJSON

func (r Bucket) RawJSON() string

Returns the unmodified JSON received from the API

func (*Bucket) UnmarshalJSON

func (r *Bucket) UnmarshalJSON(data []byte) error

type BucketAvailabilityNewParams

type BucketAvailabilityNewParams struct {
	// Name of the Bucket, used to address it over S3. It must be 3 to 63 characters of
	// lowercase letters, digits, dots and hyphens, start and end with a letter or
	// digit, not contain two adjacent dots and not be formatted as an IP address.
	// "admin" and "ops-api" are reserved. The name cannot be changed once the Bucket
	// is created.
	Name string `json:"name" api:"required"`
	// Project ID the Bucket belongs to.
	ProjectID string `json:"project_id" api:"required"`
	// Region the resource is in.
	//
	// Any of "us-sva-2", "us-wdc-1".
	Region shared.RegionName `json:"region,omitzero" api:"required"`
	// Tags to attach to the Bucket.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (BucketAvailabilityNewParams) MarshalJSON

func (r BucketAvailabilityNewParams) MarshalJSON() (data []byte, err error)

func (*BucketAvailabilityNewParams) UnmarshalJSON

func (r *BucketAvailabilityNewParams) UnmarshalJSON(data []byte) error

type BucketAvailabilityService

type BucketAvailabilityService struct {
	Options []option.RequestOption
}

BucketAvailabilityService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewBucketAvailabilityService method instead.

func NewBucketAvailabilityService

func NewBucketAvailabilityService(opts ...option.RequestOption) (r BucketAvailabilityService)

NewBucketAvailabilityService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*BucketAvailabilityService) New

Check if a Bucket can be created

type BucketCostNewParams

type BucketCostNewParams struct {
	// Name of the Bucket, used to address it over S3. It must be 3 to 63 characters of
	// lowercase letters, digits, dots and hyphens, start and end with a letter or
	// digit, not contain two adjacent dots and not be formatted as an IP address.
	// "admin" and "ops-api" are reserved. The name cannot be changed once the Bucket
	// is created.
	Name string `json:"name" api:"required"`
	// Project ID the Bucket belongs to.
	ProjectID string `json:"project_id" api:"required"`
	// Region the resource is in.
	//
	// Any of "us-sva-2", "us-wdc-1".
	Region shared.RegionName `json:"region,omitzero" api:"required"`
	// Amount of data to price the Bucket at storing, in GB (1 GB = 10^9 bytes). A
	// Bucket is charged for what it stores, so a quote without it is empty.
	SizeGB param.Opt[int64] `json:"size_gb,omitzero"`
	// Tags to attach to the Bucket.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (BucketCostNewParams) MarshalJSON

func (r BucketCostNewParams) MarshalJSON() (data []byte, err error)

func (*BucketCostNewParams) UnmarshalJSON

func (r *BucketCostNewParams) UnmarshalJSON(data []byte) error

type BucketCostService

type BucketCostService struct {
	Options []option.RequestOption
}

BucketCostService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewBucketCostService method instead.

func NewBucketCostService

func NewBucketCostService(opts ...option.RequestOption) (r BucketCostService)

NewBucketCostService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*BucketCostService) New

Return a priced monthly cost quote for the proposed Bucket storing size_gb of data. A Bucket is charged per GB it stores, prorated by the hour.

type BucketDeleteParams

type BucketDeleteParams struct {
	// Permanently delete every object in the Bucket, including all versions, before
	// deleting it. Without it, deleting a Bucket that holds objects fails.
	Force param.Opt[bool] `query:"force,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (BucketDeleteParams) URLQuery

func (r BucketDeleteParams) URLQuery() (v url.Values, err error)

URLQuery serializes BucketDeleteParams's query parameters as `url.Values`.

type BucketList

type BucketList struct {
	Items []Bucket `json:"items" api:"required"`
	// Pagination response details.
	Pagination shared.Pagination `json:"pagination" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		Pagination  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (BucketList) RawJSON

func (r BucketList) RawJSON() string

Returns the unmodified JSON received from the API

func (*BucketList) UnmarshalJSON

func (r *BucketList) UnmarshalJSON(data []byte) error

type BucketListParams

type BucketListParams struct {
	// Project ID of resources to request
	ProjectID string `query:"project_id" api:"required" json:"-"`
	// Pagination cursor returned by a previous request. Only valid for the same
	// filters and sort order.
	Cursor param.Opt[string] `query:"cursor,omitzero" json:"-"`
	// Maximum number of items to return
	Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
	// Filter by a case-insensitive substring of the Bucket name
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Filter by region
	Region param.Opt[string] `query:"region,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, updated_at, name, status, size_bytes, object_count
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Filter by Bucket status
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "error".
	Status BucketListParamsStatus `query:"status,omitzero" json:"-"`
	// Filter by tags. Repeat the parameter to require several tags; a Bucket must
	// carry all of them.
	Tags []string `query:"tags,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (BucketListParams) URLQuery

func (r BucketListParams) URLQuery() (v url.Values, err error)

URLQuery serializes BucketListParams's query parameters as `url.Values`.

type BucketListParamsStatus

type BucketListParamsStatus string

Filter by Bucket status

const (
	BucketListParamsStatusPending  BucketListParamsStatus = "pending"
	BucketListParamsStatusCreating BucketListParamsStatus = "creating"
	BucketListParamsStatusUpdating BucketListParamsStatus = "updating"
	BucketListParamsStatusReady    BucketListParamsStatus = "ready"
	BucketListParamsStatusDeleting BucketListParamsStatus = "deleting"
	BucketListParamsStatusError    BucketListParamsStatus = "error"
)

type BucketNewParams

type BucketNewParams struct {
	// Name of the Bucket, used to address it over S3. It must be 3 to 63 characters of
	// lowercase letters, digits, dots and hyphens, start and end with a letter or
	// digit, not contain two adjacent dots and not be formatted as an IP address.
	// "admin" and "ops-api" are reserved. The name cannot be changed once the Bucket
	// is created.
	Name string `json:"name" api:"required"`
	// Project ID the Bucket belongs to.
	ProjectID string `json:"project_id" api:"required"`
	// Region the resource is in.
	//
	// Any of "us-sva-2", "us-wdc-1".
	Region shared.RegionName `json:"region,omitzero" api:"required"`
	// Tags to attach to the Bucket.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (BucketNewParams) MarshalJSON

func (r BucketNewParams) MarshalJSON() (data []byte, err error)

func (*BucketNewParams) UnmarshalJSON

func (r *BucketNewParams) UnmarshalJSON(data []byte) error

type BucketService

type BucketService struct {
	Options      []option.RequestOption
	Availability BucketAvailabilityService
	Cost         BucketCostService
}

BucketService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewBucketService method instead.

func NewBucketService

func NewBucketService(opts ...option.RequestOption) (r BucketService)

NewBucketService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*BucketService) Delete

func (r *BucketService) Delete(ctx context.Context, bucketID string, body BucketDeleteParams, opts ...option.RequestOption) (res *operations.Operation, err error)

Delete a Bucket. The Bucket is deleted asynchronously: follow the returned operation until it is done. A Bucket that still holds objects is only deleted with force: without it, the request is refused with 409 BUCKET_NOT_EMPTY and no operation is started, and objects written after the request is accepted fail the operation instead.

func (*BucketService) Get

func (r *BucketService) Get(ctx context.Context, bucketID string, opts ...option.RequestOption) (res *Bucket, err error)

Get details about a Bucket

func (*BucketService) List

func (r *BucketService) List(ctx context.Context, query BucketListParams, opts ...option.RequestOption) (res *pagination.Cursor[Bucket], err error)

List all Buckets

func (*BucketService) ListAutoPaging

List all Buckets

func (*BucketService) New

Create a Bucket. The Bucket is created asynchronously: follow the returned operation until it is done.

func (*BucketService) Update

func (r *BucketService) Update(ctx context.Context, bucketID string, body BucketUpdateParams, opts ...option.RequestOption) (res *Bucket, err error)

Update a Bucket's tags. A Bucket's name is its S3 name and cannot be changed.

type BucketUpdateParams

type BucketUpdateParams struct {
	// Tags to attach to the Bucket.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (BucketUpdateParams) MarshalJSON

func (r BucketUpdateParams) MarshalJSON() (data []byte, err error)

func (*BucketUpdateParams) UnmarshalJSON

func (r *BucketUpdateParams) UnmarshalJSON(data []byte) error

type CostQuote

type CostQuote = shared.CostQuote

Cost quote returned by POST /cost. current_summary and updated_summary hold the org billing summary now and with this resource; omitted when the caller cannot view billing.

This is an alias to an internal type.

type CostQuoteUpdate

type CostQuoteUpdate = shared.CostQuoteUpdate

Cost quote returned by PATCH /:id/cost: current-state quote, post-update quote, and signed diff. current_summary and updated_summary omitted when the caller cannot view billing.

This is an alias to an internal type.

type CostQuoteUpdateAfter

type CostQuoteUpdateAfter = shared.CostQuoteUpdateAfter

Quote for the proposed (post-update) resource state.

This is an alias to an internal type.

type CostQuoteUpdateAfterUsageDimension

type CostQuoteUpdateAfterUsageDimension = shared.CostQuoteUpdateAfterUsageDimension

Priced row for a single usage dimension emitted by a resource.

This is an alias to an internal type.

type CostQuoteUpdateBefore

type CostQuoteUpdateBefore = shared.CostQuoteUpdateBefore

Quote for the proposed (post-update) resource state.

This is an alias to an internal type.

type CostQuoteUpdateBeforeUsageDimension

type CostQuoteUpdateBeforeUsageDimension = shared.CostQuoteUpdateBeforeUsageDimension

Priced row for a single usage dimension emitted by a resource.

This is an alias to an internal type.

type CostQuoteUpdateDiff

type CostQuoteUpdateDiff = shared.CostQuoteUpdateDiff

Per-dimension and total deltas: after minus before.

This is an alias to an internal type.

type CostQuoteUpdateDiffUsageDimension

type CostQuoteUpdateDiffUsageDimension = shared.CostQuoteUpdateDiffUsageDimension

Per-dimension diff entry. Both before and after are always present.

This is an alias to an internal type.

type CostQuoteUpdateDiffUsageDimensionAfter

type CostQuoteUpdateDiffUsageDimensionAfter = shared.CostQuoteUpdateDiffUsageDimensionAfter

Priced row after the update. Always present.

This is an alias to an internal type.

type CostQuoteUpdateDiffUsageDimensionBefore

type CostQuoteUpdateDiffUsageDimensionBefore = shared.CostQuoteUpdateDiffUsageDimensionBefore

Priced row after the update. Always present.

This is an alias to an internal type.

type CostQuoteUsageDimension

type CostQuoteUsageDimension = shared.CostQuoteUsageDimension

Priced row for a single usage dimension emitted by a resource.

This is an alias to an internal type.

type Error

type Error = apierror.Error

type KeyListParams

type KeyListParams struct {
	// Project ID of resources to request
	ProjectID string `query:"project_id" api:"required" json:"-"`
	// Pagination cursor returned by a previous request. Only valid for the same
	// filters and sort order.
	Cursor param.Opt[string] `query:"cursor,omitzero" json:"-"`
	// Maximum number of items to return
	Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
	// Filter by a case-insensitive substring of the Object Storage Key name
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Filter by region
	Region param.Opt[string] `query:"region,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, updated_at, name
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (KeyListParams) URLQuery

func (r KeyListParams) URLQuery() (v url.Values, err error)

URLQuery serializes KeyListParams's query parameters as `url.Values`.

type KeyNewParams

type KeyNewParams struct {
	// Name of the Object Storage Key.
	Name string `json:"name" api:"required"`
	// Project ID the Object Storage Key belongs to. The key can access the project's
	// Buckets in its region.
	ProjectID string `json:"project_id" api:"required"`
	// Region the resource is in.
	//
	// Any of "us-sva-2", "us-wdc-1".
	Region shared.RegionName `json:"region,omitzero" api:"required"`
	// contains filtered or unexported fields
}

func (KeyNewParams) MarshalJSON

func (r KeyNewParams) MarshalJSON() (data []byte, err error)

func (*KeyNewParams) UnmarshalJSON

func (r *KeyNewParams) UnmarshalJSON(data []byte) error

type KeyService

type KeyService struct {
	Options []option.RequestOption
}

KeyService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewKeyService method instead.

func NewKeyService

func NewKeyService(opts ...option.RequestOption) (r KeyService)

NewKeyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*KeyService) Delete

func (r *KeyService) Delete(ctx context.Context, keyID string, opts ...option.RequestOption) (err error)

Delete an Object Storage Key. It stops working immediately.

func (*KeyService) Get

func (r *KeyService) Get(ctx context.Context, keyID string, opts ...option.RequestOption) (res *ObjectStorageKey, err error)

Get details about an Object Storage Key. The secret access key is not included.

func (*KeyService) List

List all Object Storage Keys. Secret access keys are not included.

func (*KeyService) ListAutoPaging

List all Object Storage Keys. Secret access keys are not included.

func (*KeyService) New

Create an S3 access key for a project's Buckets in a region. The response is the only one that includes the secret access key.

func (*KeyService) Update

func (r *KeyService) Update(ctx context.Context, keyID string, body KeyUpdateParams, opts ...option.RequestOption) (res *ObjectStorageKey, err error)

Rename an Object Storage Key. Its access key and secret do not change.

type KeyUpdateParams

type KeyUpdateParams struct {
	// Name of the Object Storage Key.
	Name param.Opt[string] `json:"name,omitzero"`
	// contains filtered or unexported fields
}

func (KeyUpdateParams) MarshalJSON

func (r KeyUpdateParams) MarshalJSON() (data []byte, err error)

func (*KeyUpdateParams) UnmarshalJSON

func (r *KeyUpdateParams) UnmarshalJSON(data []byte) error

type ObjectStorageKey

type ObjectStorageKey struct {
	// Unique identifier for the Object Storage Key.
	ID string `json:"id" api:"required"`
	// S3 access key ID.
	AccessKey string `json:"access_key" api:"required"`
	// When the Object Storage Key was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// Name of the Object Storage Key.
	Name string `json:"name" api:"required"`
	// Project ID the Object Storage Key belongs to.
	ProjectID string `json:"project_id" api:"required"`
	// Region the resource is in.
	//
	// Any of "us-sva-2", "us-wdc-1".
	Region shared.RegionName `json:"region" api:"required"`
	// Status of the resource.
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "deleted",
	// "error", "suspended".
	Status shared.ResourceStatus `json:"status" api:"required"`
	// When the Object Storage Key was updated.
	UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID          respjson.Field
		AccessKey   respjson.Field
		CreatedAt   respjson.Field
		Name        respjson.Field
		ProjectID   respjson.Field
		Region      respjson.Field
		Status      respjson.Field
		UpdatedAt   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Object Storage Key details. The secret access key is only returned when the key is created.

func (ObjectStorageKey) RawJSON

func (r ObjectStorageKey) RawJSON() string

Returns the unmodified JSON received from the API

func (*ObjectStorageKey) UnmarshalJSON

func (r *ObjectStorageKey) UnmarshalJSON(data []byte) error

type ObjectStorageKeyList

type ObjectStorageKeyList struct {
	Items []ObjectStorageKey `json:"items" api:"required"`
	// Pagination response details.
	Pagination shared.Pagination `json:"pagination" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		Pagination  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ObjectStorageKeyList) RawJSON

func (r ObjectStorageKeyList) RawJSON() string

Returns the unmodified JSON received from the API

func (*ObjectStorageKeyList) UnmarshalJSON

func (r *ObjectStorageKeyList) UnmarshalJSON(data []byte) error

type ObjectStorageKeyWithSecret

type ObjectStorageKeyWithSecret struct {
	// Unique identifier for the Object Storage Key.
	ID string `json:"id" api:"required"`
	// S3 access key ID.
	AccessKey string `json:"access_key" api:"required"`
	// When the Object Storage Key was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// Name of the Object Storage Key.
	Name string `json:"name" api:"required"`
	// Project ID the Object Storage Key belongs to.
	ProjectID string `json:"project_id" api:"required"`
	// Region the resource is in.
	//
	// Any of "us-sva-2", "us-wdc-1".
	Region shared.RegionName `json:"region" api:"required"`
	// S3 secret access key. It is only returned here and cannot be retrieved again:
	// store it securely, or delete the key and create a new one if it is lost.
	Secret string `json:"secret" api:"required"`
	// Status of the resource.
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "deleted",
	// "error", "suspended".
	Status shared.ResourceStatus `json:"status" api:"required"`
	// When the Object Storage Key was updated.
	UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID          respjson.Field
		AccessKey   respjson.Field
		CreatedAt   respjson.Field
		Name        respjson.Field
		ProjectID   respjson.Field
		Region      respjson.Field
		Secret      respjson.Field
		Status      respjson.Field
		UpdatedAt   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Object Storage Key details, including the secret access key. Returned only when the key is created.

func (ObjectStorageKeyWithSecret) RawJSON

func (r ObjectStorageKeyWithSecret) RawJSON() string

Returns the unmodified JSON received from the API

func (*ObjectStorageKeyWithSecret) UnmarshalJSON

func (r *ObjectStorageKeyWithSecret) UnmarshalJSON(data []byte) error

type OrganizationBillingSummary

type OrganizationBillingSummary = shared.OrganizationBillingSummary

Forward-looking billing summary for an organization. All costs are run-rate projections from the organization's current active usage ("≈ $X/mo at current usage").

This is an alias to an internal type.

type OrganizationBillingSummaryPromotionalCredit added in v3.2.3

type OrganizationBillingSummaryPromotionalCredit = shared.OrganizationBillingSummaryPromotionalCredit

Where an organization stands on one credit it can earn automatically.

This is an alias to an internal type.

type Pagination

type Pagination = shared.Pagination

Pagination response details.

This is an alias to an internal type.

type RegionName

type RegionName = shared.RegionName

Region the resource is in.

This is an alias to an internal type.

type ResourceStatus

type ResourceStatus = shared.ResourceStatus

Status of the resource.

This is an alias to an internal type.

type SourceIPRuleParam

type SourceIPRuleParam = shared.SourceIPRuleParam

IP filter rules.

This is an alias to an internal type.

type SourceIPRuleResponse

type SourceIPRuleResponse = shared.SourceIPRuleResponse

IP filter rules.

This is an alias to an internal type.

type StorageService

type StorageService struct {
	Options []option.RequestOption
	Buckets BucketService
	Keys    KeyService
}

StorageService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewStorageService method instead.

func NewStorageService

func NewStorageService(opts ...option.RequestOption) (r StorageService)

NewStorageService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type VMMetricUnit

type VMMetricUnit = shared.VMMetricUnit

Unit the values are expressed in.

This is an alias to an internal type.

Jump to

Keyboard shortcuts

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