regions

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 15 Imported by: 3 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 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 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 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 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 Pagination

type Pagination = shared.Pagination

Pagination response details.

This is an alias to an internal type.

type Region

type Region struct {
	// Availability status of the region.
	//
	// Any of "live", "preview", "maintenance", "sunset".
	Availability RegionAvailability `json:"availability" api:"required"`
	// Compute products available in this region.
	Compute RegionCompute `json:"compute" api:"required"`
	// Name of the region.
	Name string `json:"name" api:"required"`
	// Networking products available in this region.
	Networking RegionNetworking `json:"networking" api:"required"`
	// NKS products available in this region.
	NKS RegionNKS `json:"nks" api:"required"`
	// Storage products available in this region.
	Storage RegionStorage `json:"storage" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Availability respjson.Field
		Compute      respjson.Field
		Name         respjson.Field
		Networking   respjson.Field
		NKS          respjson.Field
		Storage      respjson.Field
		ExtraFields  map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Region response with product availability.

func (Region) RawJSON

func (r Region) RawJSON() string

Returns the unmodified JSON received from the API

func (*Region) UnmarshalJSON

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

type RegionAvailability

type RegionAvailability string

Availability status of the region.

const (
	RegionAvailabilityLive        RegionAvailability = "live"
	RegionAvailabilityPreview     RegionAvailability = "preview"
	RegionAvailabilityMaintenance RegionAvailability = "maintenance"
	RegionAvailabilitySunset      RegionAvailability = "sunset"
)

type RegionCompute

type RegionCompute struct {
	// VMs indicates if Virtual Machines are available.
	VMs bool `json:"vms" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		VMs         respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Compute products available in this region.

func (RegionCompute) RawJSON

func (r RegionCompute) RawJSON() string

Returns the unmodified JSON received from the API

func (*RegionCompute) UnmarshalJSON

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

type RegionList

type RegionList struct {
	Items []Region `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 (RegionList) RawJSON

func (r RegionList) RawJSON() string

Returns the unmodified JSON received from the API

func (*RegionList) UnmarshalJSON

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

type RegionListParams

type RegionListParams struct {
	// Only regions where Virtual Machines are available
	ComputeVMs param.Opt[bool] `query:"compute_vms,omitzero" 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:"-"`
	// Only regions where VPCs are available
	NetworkingVPCs param.Opt[bool] `query:"networking_vpcs,omitzero" json:"-"`
	// Only regions where NKS node pool autoscaling is available
	NKSAutoscaling param.Opt[bool] `query:"nks_autoscaling,omitzero" json:"-"`
	// Only regions where NKS clusters are available
	NKSClusters param.Opt[bool] `query:"nks_clusters,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: longitude, name, availability
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Only regions where Accelerated Block Storage is available
	StorageABS param.Opt[bool] `query:"storage_abs,omitzero" json:"-"`
	// Only regions where locally-attached NVMe storage is available
	StorageLocalNvme param.Opt[bool] `query:"storage_local_nvme,omitzero" json:"-"`
	// Only regions where Longhorn replicated block storage is available
	StorageLonghorn param.Opt[bool] `query:"storage_longhorn,omitzero" json:"-"`
	// Filter by region availability
	//
	// Any of "live", "preview", "maintenance", "sunset".
	Availability RegionListParamsAvailability `query:"availability,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (RegionListParams) URLQuery

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

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

type RegionListParamsAvailability

type RegionListParamsAvailability string

Filter by region availability

const (
	RegionListParamsAvailabilityLive        RegionListParamsAvailability = "live"
	RegionListParamsAvailabilityPreview     RegionListParamsAvailability = "preview"
	RegionListParamsAvailabilityMaintenance RegionListParamsAvailability = "maintenance"
	RegionListParamsAvailabilitySunset      RegionListParamsAvailability = "sunset"
)

type RegionNKS

type RegionNKS struct {
	// Autoscaling indicates if NKS node pool autoscaling is available.
	Autoscaling bool `json:"autoscaling" api:"required"`
	// Clusters indicates if NKS managed Kubernetes clusters are available.
	Clusters bool `json:"clusters" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Autoscaling respjson.Field
		Clusters    respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

NKS products available in this region.

func (RegionNKS) RawJSON

func (r RegionNKS) RawJSON() string

Returns the unmodified JSON received from the API

func (*RegionNKS) UnmarshalJSON

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

type RegionName

type RegionName = shared.RegionName

Region the resource is in.

This is an alias to an internal type.

type RegionNetworking

type RegionNetworking struct {
	// VPCs indicates if Virtual Private Clouds are available.
	VPCs bool `json:"vpcs" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		VPCs        respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Networking products available in this region.

func (RegionNetworking) RawJSON

func (r RegionNetworking) RawJSON() string

Returns the unmodified JSON received from the API

func (*RegionNetworking) UnmarshalJSON

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

type RegionService

type RegionService struct {
	Options []option.RequestOption
}

RegionService 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 NewRegionService method instead.

func NewRegionService

func NewRegionService(opts ...option.RequestOption) (r RegionService)

NewRegionService 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 (*RegionService) Get

func (r *RegionService) Get(ctx context.Context, name string, opts ...option.RequestOption) (res *Region, err error)

Get a region by name

func (*RegionService) List

func (r *RegionService) List(ctx context.Context, query RegionListParams, opts ...option.RequestOption) (res *pagination.Cursor[Region], err error)

List all regions

func (*RegionService) ListAutoPaging

List all regions

type RegionStorage

type RegionStorage struct {
	// ABS indicates if Accelerated Block Storage is available.
	ABS bool `json:"abs" api:"required"`
	// LocalNVMe indicates if locally-attached NVMe storage is available.
	LocalNvme bool `json:"local_nvme" api:"required"`
	// Longhorn indicates if Longhorn replicated block storage is available.
	Longhorn bool `json:"longhorn" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ABS         respjson.Field
		LocalNvme   respjson.Field
		Longhorn    respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Storage products available in this region.

func (RegionStorage) RawJSON

func (r RegionStorage) RawJSON() string

Returns the unmodified JSON received from the API

func (*RegionStorage) UnmarshalJSON

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

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