nks

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: 18 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 ClusterAvailabilityNewParams

type ClusterAvailabilityNewParams struct {
	// Whether to enable autoscaling for the Cluster.
	Autoscaling bool `json:"autoscaling" api:"required"`
	// Kubernetes version for the Cluster.
	KubernetesVersion string `json:"kubernetes_version" api:"required"`
	// Name of the Cluster.
	Name string `json:"name" api:"required"`
	// Project ID to create the Cluster in.
	ProjectID string `json:"project_id" api:"required"`
	// Region the resource is in.
	//
	// Any of "us-sva-2".
	Region shared.RegionName `json:"region,omitzero" api:"required"`
	// ID of the VPC to use for the Cluster.
	VPCID string `json:"vpc_id" api:"required"`
	// Tags to attach to the Cluster.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (ClusterAvailabilityNewParams) MarshalJSON

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

func (*ClusterAvailabilityNewParams) UnmarshalJSON

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

type ClusterAvailabilityService

type ClusterAvailabilityService struct {
	Options []option.RequestOption
}

ClusterAvailabilityService 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 NewClusterAvailabilityService method instead.

func NewClusterAvailabilityService

func NewClusterAvailabilityService(opts ...option.RequestOption) (r ClusterAvailabilityService)

NewClusterAvailabilityService 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 (*ClusterAvailabilityService) New

Check if an NKS cluster can be created

func (*ClusterAvailabilityService) Update

Check if an NKS cluster can be updated

type ClusterAvailabilityUpdateParams

type ClusterAvailabilityUpdateParams struct {
	// Whether to enable autoscaling for the Cluster.
	Autoscaling param.Opt[bool] `json:"autoscaling,omitzero"`
	// Name of the Cluster.
	Name param.Opt[string] `json:"name,omitzero"`
	// Tags to attach to the Cluster.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (ClusterAvailabilityUpdateParams) MarshalJSON

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

func (*ClusterAvailabilityUpdateParams) UnmarshalJSON

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

type ClusterControllerListParams

type ClusterControllerListParams struct {
	// Pagination cursor returned by a previous request. Only valid for the same
	// filters and sort order.
	Cursor param.Opt[string] `query:"cursor,omitzero" json:"-"`
	// Filter by whether a private address has been assigned yet
	HasPrivateIP param.Opt[bool] `query:"has_private_ip,omitzero" json:"-"`
	// Filter by the controller's instance type
	InstanceType param.Opt[string] `query:"instance_type,omitzero" json:"-"`
	// Maximum number of items to return
	Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
	// Filter by a case-insensitive substring of the controller name
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Filter by the controller's private address
	PrivateIP param.Opt[string] `query:"private_ip,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, updated_at, name, status
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Filter by controller status
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "error".
	Status ClusterControllerListParamsStatus `query:"status,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (ClusterControllerListParams) URLQuery

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

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

type ClusterControllerListParamsStatus

type ClusterControllerListParamsStatus string

Filter by controller status

const (
	ClusterControllerListParamsStatusPending  ClusterControllerListParamsStatus = "pending"
	ClusterControllerListParamsStatusCreating ClusterControllerListParamsStatus = "creating"
	ClusterControllerListParamsStatusUpdating ClusterControllerListParamsStatus = "updating"
	ClusterControllerListParamsStatusReady    ClusterControllerListParamsStatus = "ready"
	ClusterControllerListParamsStatusDeleting ClusterControllerListParamsStatus = "deleting"
	ClusterControllerListParamsStatusError    ClusterControllerListParamsStatus = "error"
)

type ClusterControllerService

type ClusterControllerService struct {
	Options []option.RequestOption
	Volumes ClusterControllerVolumeService
}

ClusterControllerService 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 NewClusterControllerService method instead.

func NewClusterControllerService

func NewClusterControllerService(opts ...option.RequestOption) (r ClusterControllerService)

NewClusterControllerService 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 (*ClusterControllerService) Get

func (r *ClusterControllerService) Get(ctx context.Context, clusterID string, controllerID string, opts ...option.RequestOption) (res *NKSController, err error)

Get details about an NKS controller

func (*ClusterControllerService) List

List all controllers in an NKS cluster

func (*ClusterControllerService) ListAutoPaging

List all controllers in an NKS cluster

type ClusterControllerVolumeListParams

type ClusterControllerVolumeListParams struct {
	// 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 volume name
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Only volumes of at most this size
	SizeGBMax param.Opt[int64] `query:"size_gb_max,omitzero" json:"-"`
	// Only volumes of at least this size
	SizeGBMin param.Opt[int64] `query:"size_gb_min,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, updated_at, name, status, size_gb
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Filter by volume kind
	//
	// Any of "boot", "data".
	Kind ClusterControllerVolumeListParamsKind `query:"kind,omitzero" json:"-"`
	// Filter by volume status
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "error".
	Status ClusterControllerVolumeListParamsStatus `query:"status,omitzero" json:"-"`
	// Filter by storage type
	//
	// Any of "abs".
	Type ClusterControllerVolumeListParamsType `query:"type,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (ClusterControllerVolumeListParams) URLQuery

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

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

type ClusterControllerVolumeListParamsKind

type ClusterControllerVolumeListParamsKind string

Filter by volume kind

const (
	ClusterControllerVolumeListParamsKindBoot ClusterControllerVolumeListParamsKind = "boot"
	ClusterControllerVolumeListParamsKindData ClusterControllerVolumeListParamsKind = "data"
)

type ClusterControllerVolumeListParamsStatus

type ClusterControllerVolumeListParamsStatus string

Filter by volume status

const (
	ClusterControllerVolumeListParamsStatusPending  ClusterControllerVolumeListParamsStatus = "pending"
	ClusterControllerVolumeListParamsStatusCreating ClusterControllerVolumeListParamsStatus = "creating"
	ClusterControllerVolumeListParamsStatusUpdating ClusterControllerVolumeListParamsStatus = "updating"
	ClusterControllerVolumeListParamsStatusReady    ClusterControllerVolumeListParamsStatus = "ready"
	ClusterControllerVolumeListParamsStatusDeleting ClusterControllerVolumeListParamsStatus = "deleting"
	ClusterControllerVolumeListParamsStatusError    ClusterControllerVolumeListParamsStatus = "error"
)

type ClusterControllerVolumeListParamsType

type ClusterControllerVolumeListParamsType string

Filter by storage type

const (
	ClusterControllerVolumeListParamsTypeABS ClusterControllerVolumeListParamsType = "abs"
)

type ClusterControllerVolumeService

type ClusterControllerVolumeService struct {
	Options []option.RequestOption
}

ClusterControllerVolumeService 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 NewClusterControllerVolumeService method instead.

func NewClusterControllerVolumeService

func NewClusterControllerVolumeService(opts ...option.RequestOption) (r ClusterControllerVolumeService)

NewClusterControllerVolumeService 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 (*ClusterControllerVolumeService) Get

func (r *ClusterControllerVolumeService) Get(ctx context.Context, clusterID string, controllerID string, volumeID string, opts ...option.RequestOption) (res *NKSControllerVolume, err error)

Get details about a volume attached to an NKS controller

func (*ClusterControllerVolumeService) List

List all volumes attached to an NKS controller

func (*ClusterControllerVolumeService) ListAutoPaging

List all volumes attached to an NKS controller

type ClusterCostNewParams

type ClusterCostNewParams struct {
	// Whether to enable autoscaling for the Cluster.
	Autoscaling bool `json:"autoscaling" api:"required"`
	// Kubernetes version for the Cluster.
	KubernetesVersion string `json:"kubernetes_version" api:"required"`
	// Name of the Cluster.
	Name string `json:"name" api:"required"`
	// Project ID to create the Cluster in.
	ProjectID string `json:"project_id" api:"required"`
	// Region the resource is in.
	//
	// Any of "us-sva-2".
	Region shared.RegionName `json:"region,omitzero" api:"required"`
	// ID of the VPC to use for the Cluster.
	VPCID string `json:"vpc_id" api:"required"`
	// Tags to attach to the Cluster.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (ClusterCostNewParams) MarshalJSON

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

func (*ClusterCostNewParams) UnmarshalJSON

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

type ClusterCostService

type ClusterCostService struct {
	Options []option.RequestOption
}

ClusterCostService 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 NewClusterCostService method instead.

func NewClusterCostService

func NewClusterCostService(opts ...option.RequestOption) (r ClusterCostService)

NewClusterCostService 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 (*ClusterCostService) New

Return a priced cost quote for the proposed NKS cluster.

func (*ClusterCostService) Update

func (r *ClusterCostService) Update(ctx context.Context, clusterID string, body ClusterCostUpdateParams, opts ...option.RequestOption) (res *shared.CostQuoteUpdate, err error)

Return a priced cost quote for the proposed NKS cluster update plus a diff against the current state.

type ClusterCostUpdateParams

type ClusterCostUpdateParams struct {
	// Whether to enable autoscaling for the Cluster.
	Autoscaling param.Opt[bool] `json:"autoscaling,omitzero"`
	// Name of the Cluster.
	Name param.Opt[string] `json:"name,omitzero"`
	// Tags to attach to the Cluster.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (ClusterCostUpdateParams) MarshalJSON

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

func (*ClusterCostUpdateParams) UnmarshalJSON

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

type ClusterKubeconfigService

type ClusterKubeconfigService struct {
	Options []option.RequestOption
}

ClusterKubeconfigService 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 NewClusterKubeconfigService method instead.

func NewClusterKubeconfigService

func NewClusterKubeconfigService(opts ...option.RequestOption) (r ClusterKubeconfigService)

NewClusterKubeconfigService 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 (*ClusterKubeconfigService) Get

func (r *ClusterKubeconfigService) Get(ctx context.Context, clusterID string, opts ...option.RequestOption) (res *Kubeconfig, err error)

Get the kubeconfig for an NKS cluster

type ClusterListParams

type ClusterListParams struct {
	// Project ID of resources to request
	ProjectID string `query:"project_id" api:"required" json:"-"`
	// Filter by whether autoscaling is enabled
	Autoscaling param.Opt[bool] `query:"autoscaling,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:"-"`
	// Filter by Kubernetes version, matched exactly
	KubernetesVersion param.Opt[string] `query:"kubernetes_version,omitzero" json:"-"`
	// Maximum number of items to return
	Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
	// Filter by a case-insensitive substring of the Cluster 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
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Filter by the VPC the Cluster is in
	VPCID param.Opt[string] `query:"vpc_id,omitzero" json:"-"`
	// Filter by Cluster status
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "error".
	Status ClusterListParamsStatus `query:"status,omitzero" json:"-"`
	// Filter by tags. Repeat the parameter to require several tags; a Cluster must
	// carry all of them.
	Tags []string `query:"tags,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (ClusterListParams) URLQuery

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

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

type ClusterListParamsStatus

type ClusterListParamsStatus string

Filter by Cluster status

const (
	ClusterListParamsStatusPending  ClusterListParamsStatus = "pending"
	ClusterListParamsStatusCreating ClusterListParamsStatus = "creating"
	ClusterListParamsStatusUpdating ClusterListParamsStatus = "updating"
	ClusterListParamsStatusReady    ClusterListParamsStatus = "ready"
	ClusterListParamsStatusDeleting ClusterListParamsStatus = "deleting"
	ClusterListParamsStatusError    ClusterListParamsStatus = "error"
)

type ClusterLoadBalancerListParams

type ClusterLoadBalancerListParams struct {
	// 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 Kubernetes namespace
	Namespace param.Opt[string] `query:"namespace,omitzero" json:"-"`
	// Filter by whether the load balancer is exposed publicly
	PublicIPEnabled param.Opt[bool] `query:"public_ip_enabled,omitzero" json:"-"`
	// Filter by a case-insensitive substring of the Kubernetes service name
	ServiceName param.Opt[string] `query:"service_name,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, updated_at, namespace, service_name, status
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Filter by load balancer status
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "error".
	Status ClusterLoadBalancerListParamsStatus `query:"status,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (ClusterLoadBalancerListParams) URLQuery

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

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

type ClusterLoadBalancerListParamsStatus

type ClusterLoadBalancerListParamsStatus string

Filter by load balancer status

const (
	ClusterLoadBalancerListParamsStatusPending  ClusterLoadBalancerListParamsStatus = "pending"
	ClusterLoadBalancerListParamsStatusCreating ClusterLoadBalancerListParamsStatus = "creating"
	ClusterLoadBalancerListParamsStatusUpdating ClusterLoadBalancerListParamsStatus = "updating"
	ClusterLoadBalancerListParamsStatusReady    ClusterLoadBalancerListParamsStatus = "ready"
	ClusterLoadBalancerListParamsStatusDeleting ClusterLoadBalancerListParamsStatus = "deleting"
	ClusterLoadBalancerListParamsStatusError    ClusterLoadBalancerListParamsStatus = "error"
)

type ClusterLoadBalancerService

type ClusterLoadBalancerService struct {
	Options []option.RequestOption
}

ClusterLoadBalancerService 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 NewClusterLoadBalancerService method instead.

func NewClusterLoadBalancerService

func NewClusterLoadBalancerService(opts ...option.RequestOption) (r ClusterLoadBalancerService)

NewClusterLoadBalancerService 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 (*ClusterLoadBalancerService) Get

func (r *ClusterLoadBalancerService) Get(ctx context.Context, clusterID string, loadBalancerID string, opts ...option.RequestOption) (res *NKSLoadBalancer, err error)

Get details about an NKS load balancer

func (*ClusterLoadBalancerService) List

List all load balancers in an NKS cluster

func (*ClusterLoadBalancerService) ListAutoPaging

List all load balancers in an NKS cluster

func (*ClusterLoadBalancerService) Update

func (r *ClusterLoadBalancerService) Update(ctx context.Context, clusterID string, loadBalancerID string, body ClusterLoadBalancerUpdateParams, opts ...option.RequestOption) (res *operations.Operation, err error)

Update an NKS load balancer

type ClusterLoadBalancerUpdateParams

type ClusterLoadBalancerUpdateParams struct {
	// Whether to enable a public IP for this load balancer.
	PublicIPEnabled bool `json:"public_ip_enabled" api:"required"`
	// contains filtered or unexported fields
}

func (ClusterLoadBalancerUpdateParams) MarshalJSON

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

func (*ClusterLoadBalancerUpdateParams) UnmarshalJSON

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

type ClusterNewParams

type ClusterNewParams struct {
	// Whether to enable autoscaling for the Cluster.
	Autoscaling bool `json:"autoscaling" api:"required"`
	// Kubernetes version for the Cluster.
	KubernetesVersion string `json:"kubernetes_version" api:"required"`
	// Name of the Cluster.
	Name string `json:"name" api:"required"`
	// Project ID to create the Cluster in.
	ProjectID string `json:"project_id" api:"required"`
	// Region the resource is in.
	//
	// Any of "us-sva-2".
	Region shared.RegionName `json:"region,omitzero" api:"required"`
	// ID of the VPC to use for the Cluster.
	VPCID string `json:"vpc_id" api:"required"`
	// Tags to attach to the Cluster.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (ClusterNewParams) MarshalJSON

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

func (*ClusterNewParams) UnmarshalJSON

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

type ClusterPersistentVolumeClaimListParams

type ClusterPersistentVolumeClaimListParams struct {
	// 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 claim name
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Only claims of at most this size
	SizeGBMax param.Opt[int64] `query:"size_gb_max,omitzero" json:"-"`
	// Only claims of at least this size
	SizeGBMin param.Opt[int64] `query:"size_gb_min,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, updated_at, name, status, size_gb
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Filter by persistent volume claim status
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "error".
	Status ClusterPersistentVolumeClaimListParamsStatus `query:"status,omitzero" json:"-"`
	// Filter by storage type
	//
	// Any of "abs".
	Type ClusterPersistentVolumeClaimListParamsType `query:"type,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (ClusterPersistentVolumeClaimListParams) URLQuery

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

type ClusterPersistentVolumeClaimListParamsStatus

type ClusterPersistentVolumeClaimListParamsStatus string

Filter by persistent volume claim status

const (
	ClusterPersistentVolumeClaimListParamsStatusPending  ClusterPersistentVolumeClaimListParamsStatus = "pending"
	ClusterPersistentVolumeClaimListParamsStatusCreating ClusterPersistentVolumeClaimListParamsStatus = "creating"
	ClusterPersistentVolumeClaimListParamsStatusUpdating ClusterPersistentVolumeClaimListParamsStatus = "updating"
	ClusterPersistentVolumeClaimListParamsStatusReady    ClusterPersistentVolumeClaimListParamsStatus = "ready"
	ClusterPersistentVolumeClaimListParamsStatusDeleting ClusterPersistentVolumeClaimListParamsStatus = "deleting"
	ClusterPersistentVolumeClaimListParamsStatusError    ClusterPersistentVolumeClaimListParamsStatus = "error"
)

type ClusterPersistentVolumeClaimListParamsType

type ClusterPersistentVolumeClaimListParamsType string

Filter by storage type

const (
	ClusterPersistentVolumeClaimListParamsTypeABS ClusterPersistentVolumeClaimListParamsType = "abs"
)

type ClusterPersistentVolumeClaimService

type ClusterPersistentVolumeClaimService struct {
	Options []option.RequestOption
}

ClusterPersistentVolumeClaimService 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 NewClusterPersistentVolumeClaimService method instead.

func NewClusterPersistentVolumeClaimService

func NewClusterPersistentVolumeClaimService(opts ...option.RequestOption) (r ClusterPersistentVolumeClaimService)

NewClusterPersistentVolumeClaimService 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 (*ClusterPersistentVolumeClaimService) Get

func (r *ClusterPersistentVolumeClaimService) Get(ctx context.Context, clusterID string, persistentVolumeClaimID string, opts ...option.RequestOption) (res *PersistentVolumeClaim, err error)

Get details about an NKS persistent volume claim

func (*ClusterPersistentVolumeClaimService) List

List all persistent volume claims in an NKS cluster

func (*ClusterPersistentVolumeClaimService) ListAutoPaging

List all persistent volume claims in an NKS cluster

type ClusterPoolAvailabilityNewParams

type ClusterPoolAvailabilityNewParams struct {
	// Name of the node pool.
	Name string `json:"name" api:"required"`
	// Node configuration.
	NodeConfig NKSNodePoolNodeConfigParam `json:"node_config,omitzero" api:"required"`
	// Number of nodes. Must be between 0 and 100.
	NodeCount param.Opt[int64] `json:"node_count,omitzero"`
	// Tags to attach to the node pool.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (ClusterPoolAvailabilityNewParams) MarshalJSON

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

func (*ClusterPoolAvailabilityNewParams) UnmarshalJSON

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

type ClusterPoolAvailabilityService

type ClusterPoolAvailabilityService struct {
	Options []option.RequestOption
}

ClusterPoolAvailabilityService 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 NewClusterPoolAvailabilityService method instead.

func NewClusterPoolAvailabilityService

func NewClusterPoolAvailabilityService(opts ...option.RequestOption) (r ClusterPoolAvailabilityService)

NewClusterPoolAvailabilityService 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 (*ClusterPoolAvailabilityService) New

Check if a node pool can be created in an NKS cluster

func (*ClusterPoolAvailabilityService) Update

Check if an NKS node pool can be updated

type ClusterPoolAvailabilityUpdateParams

type ClusterPoolAvailabilityUpdateParams struct {
	// Name of the node pool.
	Name param.Opt[string] `json:"name,omitzero"`
	// Number of nodes.
	NodeCount param.Opt[int64] `json:"node_count,omitzero"`
	// Tags to attach to the node pool.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (ClusterPoolAvailabilityUpdateParams) MarshalJSON

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

func (*ClusterPoolAvailabilityUpdateParams) UnmarshalJSON

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

type ClusterPoolCostNewParams

type ClusterPoolCostNewParams struct {
	// Name of the node pool.
	Name string `json:"name" api:"required"`
	// Node configuration.
	NodeConfig NKSNodePoolNodeConfigParam `json:"node_config,omitzero" api:"required"`
	// Number of nodes. Must be between 0 and 100.
	NodeCount param.Opt[int64] `json:"node_count,omitzero"`
	// Tags to attach to the node pool.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (ClusterPoolCostNewParams) MarshalJSON

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

func (*ClusterPoolCostNewParams) UnmarshalJSON

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

type ClusterPoolCostService

type ClusterPoolCostService struct {
	Options []option.RequestOption
}

ClusterPoolCostService 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 NewClusterPoolCostService method instead.

func NewClusterPoolCostService

func NewClusterPoolCostService(opts ...option.RequestOption) (r ClusterPoolCostService)

NewClusterPoolCostService 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 (*ClusterPoolCostService) New

Return a priced cost quote for the proposed NKS node pool.

func (*ClusterPoolCostService) Update

func (r *ClusterPoolCostService) Update(ctx context.Context, clusterID string, poolID string, body ClusterPoolCostUpdateParams, opts ...option.RequestOption) (res *shared.CostQuoteUpdate, err error)

Return a priced cost quote for the proposed NKS node pool update plus a diff against the current state.

type ClusterPoolCostUpdateParams

type ClusterPoolCostUpdateParams struct {
	// Name of the node pool.
	Name param.Opt[string] `json:"name,omitzero"`
	// Number of nodes.
	NodeCount param.Opt[int64] `json:"node_count,omitzero"`
	// Tags to attach to the node pool.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (ClusterPoolCostUpdateParams) MarshalJSON

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

func (*ClusterPoolCostUpdateParams) UnmarshalJSON

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

type ClusterPoolListParams

type ClusterPoolListParams struct {
	// Pagination cursor returned by a previous request. Only valid for the same
	// filters and sort order.
	Cursor param.Opt[string] `query:"cursor,omitzero" json:"-"`
	// Filter by the instance type the pool's nodes run
	InstanceType param.Opt[string] `query:"instance_type,omitzero" json:"-"`
	// Maximum number of items to return
	Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
	// Filter by a case-insensitive substring of the node pool name
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Only pools with at most this many nodes
	NodeCountMax param.Opt[int64] `query:"node_count_max,omitzero" json:"-"`
	// Only pools with at least this many nodes
	NodeCountMin param.Opt[int64] `query:"node_count_min,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, updated_at, name, status, node_count
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Filter by node pool status
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "error".
	Status ClusterPoolListParamsStatus `query:"status,omitzero" json:"-"`
	// Filter by tags. Repeat the parameter to require several tags; a node pool must
	// carry all of them.
	Tags []string `query:"tags,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (ClusterPoolListParams) URLQuery

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

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

type ClusterPoolListParamsStatus

type ClusterPoolListParamsStatus string

Filter by node pool status

const (
	ClusterPoolListParamsStatusPending  ClusterPoolListParamsStatus = "pending"
	ClusterPoolListParamsStatusCreating ClusterPoolListParamsStatus = "creating"
	ClusterPoolListParamsStatusUpdating ClusterPoolListParamsStatus = "updating"
	ClusterPoolListParamsStatusReady    ClusterPoolListParamsStatus = "ready"
	ClusterPoolListParamsStatusDeleting ClusterPoolListParamsStatus = "deleting"
	ClusterPoolListParamsStatusError    ClusterPoolListParamsStatus = "error"
)

type ClusterPoolNewParams

type ClusterPoolNewParams struct {
	// Name of the node pool.
	Name string `json:"name" api:"required"`
	// Node configuration.
	NodeConfig NKSNodePoolNodeConfigParam `json:"node_config,omitzero" api:"required"`
	// Number of nodes. Must be between 0 and 100.
	NodeCount param.Opt[int64] `json:"node_count,omitzero"`
	// Tags to attach to the node pool.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (ClusterPoolNewParams) MarshalJSON

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

func (*ClusterPoolNewParams) UnmarshalJSON

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

type ClusterPoolNodeListParams

type ClusterPoolNodeListParams struct {
	// Pagination cursor returned by a previous request. Only valid for the same
	// filters and sort order.
	Cursor param.Opt[string] `query:"cursor,omitzero" json:"-"`
	// Filter by whether a private address has been assigned yet
	HasPrivateIP param.Opt[bool] `query:"has_private_ip,omitzero" json:"-"`
	// Maximum number of items to return
	Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
	// Filter by a case-insensitive substring of the node name
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Filter by the node's private address
	PrivateIP param.Opt[string] `query:"private_ip,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, updated_at, name, status
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Filter by node status
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "error".
	Status ClusterPoolNodeListParamsStatus `query:"status,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (ClusterPoolNodeListParams) URLQuery

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

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

type ClusterPoolNodeListParamsStatus

type ClusterPoolNodeListParamsStatus string

Filter by node status

const (
	ClusterPoolNodeListParamsStatusPending  ClusterPoolNodeListParamsStatus = "pending"
	ClusterPoolNodeListParamsStatusCreating ClusterPoolNodeListParamsStatus = "creating"
	ClusterPoolNodeListParamsStatusUpdating ClusterPoolNodeListParamsStatus = "updating"
	ClusterPoolNodeListParamsStatusReady    ClusterPoolNodeListParamsStatus = "ready"
	ClusterPoolNodeListParamsStatusDeleting ClusterPoolNodeListParamsStatus = "deleting"
	ClusterPoolNodeListParamsStatusError    ClusterPoolNodeListParamsStatus = "error"
)

type ClusterPoolNodeService

type ClusterPoolNodeService struct {
	Options []option.RequestOption
	Volumes ClusterPoolNodeVolumeService
}

ClusterPoolNodeService 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 NewClusterPoolNodeService method instead.

func NewClusterPoolNodeService

func NewClusterPoolNodeService(opts ...option.RequestOption) (r ClusterPoolNodeService)

NewClusterPoolNodeService 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 (*ClusterPoolNodeService) Delete

func (r *ClusterPoolNodeService) Delete(ctx context.Context, clusterID string, poolID string, nodeID string, opts ...option.RequestOption) (res *operations.Operation, err error)

Delete a single node from an NKS node pool

func (*ClusterPoolNodeService) Get

func (r *ClusterPoolNodeService) Get(ctx context.Context, clusterID string, poolID string, nodeID string, opts ...option.RequestOption) (res *NKSNode, err error)

Get details about an NKS node

func (*ClusterPoolNodeService) List

func (r *ClusterPoolNodeService) List(ctx context.Context, clusterID string, poolID string, query ClusterPoolNodeListParams, opts ...option.RequestOption) (res *pagination.Cursor[NKSNode], err error)

List all nodes in an NKS node pool

func (*ClusterPoolNodeService) ListAutoPaging

List all nodes in an NKS node pool

type ClusterPoolNodeVolumeListParams

type ClusterPoolNodeVolumeListParams struct {
	// 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 volume name
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Only volumes of at most this size
	SizeGBMax param.Opt[int64] `query:"size_gb_max,omitzero" json:"-"`
	// Only volumes of at least this size
	SizeGBMin param.Opt[int64] `query:"size_gb_min,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, updated_at, name, status, size_gb
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Filter by volume kind
	//
	// Any of "boot", "data".
	Kind ClusterPoolNodeVolumeListParamsKind `query:"kind,omitzero" json:"-"`
	// Filter by volume status
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "error".
	Status ClusterPoolNodeVolumeListParamsStatus `query:"status,omitzero" json:"-"`
	// Filter by storage type
	//
	// Any of "abs".
	Type ClusterPoolNodeVolumeListParamsType `query:"type,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (ClusterPoolNodeVolumeListParams) URLQuery

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

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

type ClusterPoolNodeVolumeListParamsKind

type ClusterPoolNodeVolumeListParamsKind string

Filter by volume kind

const (
	ClusterPoolNodeVolumeListParamsKindBoot ClusterPoolNodeVolumeListParamsKind = "boot"
	ClusterPoolNodeVolumeListParamsKindData ClusterPoolNodeVolumeListParamsKind = "data"
)

type ClusterPoolNodeVolumeListParamsStatus

type ClusterPoolNodeVolumeListParamsStatus string

Filter by volume status

const (
	ClusterPoolNodeVolumeListParamsStatusPending  ClusterPoolNodeVolumeListParamsStatus = "pending"
	ClusterPoolNodeVolumeListParamsStatusCreating ClusterPoolNodeVolumeListParamsStatus = "creating"
	ClusterPoolNodeVolumeListParamsStatusUpdating ClusterPoolNodeVolumeListParamsStatus = "updating"
	ClusterPoolNodeVolumeListParamsStatusReady    ClusterPoolNodeVolumeListParamsStatus = "ready"
	ClusterPoolNodeVolumeListParamsStatusDeleting ClusterPoolNodeVolumeListParamsStatus = "deleting"
	ClusterPoolNodeVolumeListParamsStatusError    ClusterPoolNodeVolumeListParamsStatus = "error"
)

type ClusterPoolNodeVolumeListParamsType

type ClusterPoolNodeVolumeListParamsType string

Filter by storage type

const (
	ClusterPoolNodeVolumeListParamsTypeABS ClusterPoolNodeVolumeListParamsType = "abs"
)

type ClusterPoolNodeVolumeService

type ClusterPoolNodeVolumeService struct {
	Options []option.RequestOption
}

ClusterPoolNodeVolumeService 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 NewClusterPoolNodeVolumeService method instead.

func NewClusterPoolNodeVolumeService

func NewClusterPoolNodeVolumeService(opts ...option.RequestOption) (r ClusterPoolNodeVolumeService)

NewClusterPoolNodeVolumeService 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 (*ClusterPoolNodeVolumeService) Get

func (r *ClusterPoolNodeVolumeService) Get(ctx context.Context, clusterID string, poolID string, nodeID string, volumeID string, opts ...option.RequestOption) (res *NKSNodeVolume, err error)

Get details about a volume attached to an NKS node

func (*ClusterPoolNodeVolumeService) List

List all volumes attached to an NKS node

func (*ClusterPoolNodeVolumeService) ListAutoPaging

List all volumes attached to an NKS node

type ClusterPoolService

type ClusterPoolService struct {
	Options      []option.RequestOption
	Availability ClusterPoolAvailabilityService
	Cost         ClusterPoolCostService
	Nodes        ClusterPoolNodeService
	Volumes      ClusterPoolVolumeService
}

ClusterPoolService 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 NewClusterPoolService method instead.

func NewClusterPoolService

func NewClusterPoolService(opts ...option.RequestOption) (r ClusterPoolService)

NewClusterPoolService 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 (*ClusterPoolService) Delete

func (r *ClusterPoolService) Delete(ctx context.Context, clusterID string, poolID string, opts ...option.RequestOption) (res *operations.Operation, err error)

Delete an NKS node pool

func (*ClusterPoolService) Get

func (r *ClusterPoolService) Get(ctx context.Context, clusterID string, poolID string, opts ...option.RequestOption) (res *NKSNodePool, err error)

Get details about an NKS node pool

func (*ClusterPoolService) List

List all node pools in an NKS cluster

func (*ClusterPoolService) ListAutoPaging

List all node pools in an NKS cluster

func (*ClusterPoolService) New

func (r *ClusterPoolService) New(ctx context.Context, clusterID string, body ClusterPoolNewParams, opts ...option.RequestOption) (res *operations.Operation, err error)

Create a node pool in an NKS cluster

func (*ClusterPoolService) Update

func (r *ClusterPoolService) Update(ctx context.Context, clusterID string, poolID string, body ClusterPoolUpdateParams, opts ...option.RequestOption) (res *operations.Operation, err error)

Update an NKS node pool

type ClusterPoolUpdateParams

type ClusterPoolUpdateParams struct {
	// Name of the node pool.
	Name param.Opt[string] `json:"name,omitzero"`
	// Number of nodes.
	NodeCount param.Opt[int64] `json:"node_count,omitzero"`
	// Tags to attach to the node pool.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (ClusterPoolUpdateParams) MarshalJSON

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

func (*ClusterPoolUpdateParams) UnmarshalJSON

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

type ClusterPoolVolumeListParams

type ClusterPoolVolumeListParams struct {
	// 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 volume name
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Only volumes of at most this size
	SizeGBMax param.Opt[int64] `query:"size_gb_max,omitzero" json:"-"`
	// Only volumes of at least this size
	SizeGBMin param.Opt[int64] `query:"size_gb_min,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, updated_at, name, status, size_gb
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Filter by volume kind
	//
	// Any of "boot", "data".
	Kind ClusterPoolVolumeListParamsKind `query:"kind,omitzero" json:"-"`
	// Filter by volume status
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "error".
	Status ClusterPoolVolumeListParamsStatus `query:"status,omitzero" json:"-"`
	// Filter by storage type
	//
	// Any of "abs".
	Type ClusterPoolVolumeListParamsType `query:"type,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (ClusterPoolVolumeListParams) URLQuery

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

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

type ClusterPoolVolumeListParamsKind

type ClusterPoolVolumeListParamsKind string

Filter by volume kind

const (
	ClusterPoolVolumeListParamsKindBoot ClusterPoolVolumeListParamsKind = "boot"
	ClusterPoolVolumeListParamsKindData ClusterPoolVolumeListParamsKind = "data"
)

type ClusterPoolVolumeListParamsStatus

type ClusterPoolVolumeListParamsStatus string

Filter by volume status

const (
	ClusterPoolVolumeListParamsStatusPending  ClusterPoolVolumeListParamsStatus = "pending"
	ClusterPoolVolumeListParamsStatusCreating ClusterPoolVolumeListParamsStatus = "creating"
	ClusterPoolVolumeListParamsStatusUpdating ClusterPoolVolumeListParamsStatus = "updating"
	ClusterPoolVolumeListParamsStatusReady    ClusterPoolVolumeListParamsStatus = "ready"
	ClusterPoolVolumeListParamsStatusDeleting ClusterPoolVolumeListParamsStatus = "deleting"
	ClusterPoolVolumeListParamsStatusError    ClusterPoolVolumeListParamsStatus = "error"
)

type ClusterPoolVolumeListParamsType

type ClusterPoolVolumeListParamsType string

Filter by storage type

const (
	ClusterPoolVolumeListParamsTypeABS ClusterPoolVolumeListParamsType = "abs"
)

type ClusterPoolVolumeService

type ClusterPoolVolumeService struct {
	Options []option.RequestOption
}

ClusterPoolVolumeService 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 NewClusterPoolVolumeService method instead.

func NewClusterPoolVolumeService

func NewClusterPoolVolumeService(opts ...option.RequestOption) (r ClusterPoolVolumeService)

NewClusterPoolVolumeService 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 (*ClusterPoolVolumeService) List

List all volumes attached to the nodes of an NKS node pool

func (*ClusterPoolVolumeService) ListAutoPaging

List all volumes attached to the nodes of an NKS node pool

type ClusterService

type ClusterService struct {
	Options                []option.RequestOption
	Availability           ClusterAvailabilityService
	Cost                   ClusterCostService
	PersistentVolumeClaims ClusterPersistentVolumeClaimService
	Kubeconfig             ClusterKubeconfigService
	Controllers            ClusterControllerService
	LoadBalancers          ClusterLoadBalancerService
	Pools                  ClusterPoolService
}

ClusterService 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 NewClusterService method instead.

func NewClusterService

func NewClusterService(opts ...option.RequestOption) (r ClusterService)

NewClusterService 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 (*ClusterService) Delete

func (r *ClusterService) Delete(ctx context.Context, clusterID string, opts ...option.RequestOption) (res *operations.Operation, err error)

Delete an NKS cluster

func (*ClusterService) Get

func (r *ClusterService) Get(ctx context.Context, clusterID string, opts ...option.RequestOption) (res *NKSCluster, err error)

Get details about an NKS cluster

func (*ClusterService) List

List all NKS clusters

func (*ClusterService) ListAutoPaging

List all NKS clusters

func (*ClusterService) New

Create an NKS Cluster

func (*ClusterService) Update

func (r *ClusterService) Update(ctx context.Context, clusterID string, body ClusterUpdateParams, opts ...option.RequestOption) (res *operations.Operation, err error)

Update an NKS cluster

type ClusterUpdateParams

type ClusterUpdateParams struct {
	// Whether to enable autoscaling for the Cluster.
	Autoscaling param.Opt[bool] `json:"autoscaling,omitzero"`
	// Name of the Cluster.
	Name param.Opt[string] `json:"name,omitzero"`
	// Tags to attach to the Cluster.
	Tags []string `json:"tags,omitzero"`
	// contains filtered or unexported fields
}

func (ClusterUpdateParams) MarshalJSON

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

func (*ClusterUpdateParams) UnmarshalJSON

func (r *ClusterUpdateParams) 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 Kubeconfig

type Kubeconfig struct {
	// Kubeconfig content for the Cluster.
	Kubeconfig string `json:"kubeconfig" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Kubeconfig  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Kubeconfig for an NKS Cluster.

func (Kubeconfig) RawJSON

func (r Kubeconfig) RawJSON() string

Returns the unmodified JSON received from the API

func (*Kubeconfig) UnmarshalJSON

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

type KubernetesVersion

type KubernetesVersion struct {
	// When the Kubernetes version was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// Display name of the Kubernetes version.
	DisplayName string `json:"display_name" api:"required"`
	// Name of the Kubernetes version.
	Name string `json:"name" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		CreatedAt   respjson.Field
		DisplayName respjson.Field
		Name        respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

NKS Kubernetes version details.

func (KubernetesVersion) RawJSON

func (r KubernetesVersion) RawJSON() string

Returns the unmodified JSON received from the API

func (*KubernetesVersion) UnmarshalJSON

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

type KubernetesVersionListParams

type KubernetesVersionListParams struct {
	// 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 version name, e.g. 1.34
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: created_at, version
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (KubernetesVersionListParams) URLQuery

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

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

type KubernetesVersionService

type KubernetesVersionService struct {
	Options []option.RequestOption
}

KubernetesVersionService 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 NewKubernetesVersionService method instead.

func NewKubernetesVersionService

func NewKubernetesVersionService(opts ...option.RequestOption) (r KubernetesVersionService)

NewKubernetesVersionService 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 (*KubernetesVersionService) List

List all supported Kubernetes versions for NKS clusters

func (*KubernetesVersionService) ListAutoPaging

List all supported Kubernetes versions for NKS clusters

type NKSCluster

type NKSCluster struct {
	// Unique identifier for the Cluster.
	ID string `json:"id" api:"required"`
	// Whether autoscaling is enabled for the Cluster.
	Autoscaling bool `json:"autoscaling" api:"required"`
	// When the Cluster was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// Kubernetes version of the Cluster.
	KubernetesVersion string `json:"kubernetes_version" api:"required"`
	// What manages the resource, or null when nothing does. A managed resource can be
	// read but not changed.
	ManagedBy NKSClusterManagedBy `json:"managed_by" api:"required"`
	// Name of the Cluster.
	Name string `json:"name" api:"required"`
	// IDs of pools belonging to this Cluster.
	PoolIDs []string `json:"pool_ids" api:"required"`
	// Private IP (VIP) of the Cluster.
	PrivateIP string `json:"private_ip" api:"required"`
	// Project ID the Cluster belongs to.
	ProjectID string `json:"project_id" api:"required"`
	// Public IP of the Cluster.
	PublicIP string `json:"public_ip" api:"required"`
	// Region the resource is in.
	//
	// Any of "us-sva-2".
	Region shared.RegionName `json:"region" api:"required"`
	// Status of the resource.
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "deleted",
	// "error".
	Status shared.ResourceStatus `json:"status" api:"required"`
	// Tags attached to the Cluster.
	Tags []string `json:"tags" api:"required"`
	// When the Cluster was last updated.
	UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
	// ID of the VPC the Cluster is in.
	VPCID string `json:"vpc_id" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID                respjson.Field
		Autoscaling       respjson.Field
		CreatedAt         respjson.Field
		KubernetesVersion respjson.Field
		ManagedBy         respjson.Field
		Name              respjson.Field
		PoolIDs           respjson.Field
		PrivateIP         respjson.Field
		ProjectID         respjson.Field
		PublicIP          respjson.Field
		Region            respjson.Field
		Status            respjson.Field
		Tags              respjson.Field
		UpdatedAt         respjson.Field
		VPCID             respjson.Field
		ExtraFields       map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

NKS Cluster details.

func (NKSCluster) RawJSON

func (r NKSCluster) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSCluster) UnmarshalJSON

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

type NKSClusterList

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

func (r NKSClusterList) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSClusterList) UnmarshalJSON

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

type NKSClusterManagedBy added in v2.2.1

type NKSClusterManagedBy struct {
	// ID of the thing managing the resource.
	ID string `json:"id" api:"required"`
	// Kind of thing managing the resource.
	//
	// Any of "sandbox_environment".
	Type string `json:"type" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID          respjson.Field
		Type        respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

What manages the resource, or null when nothing does. A managed resource can be read but not changed.

func (NKSClusterManagedBy) RawJSON added in v2.2.1

func (r NKSClusterManagedBy) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSClusterManagedBy) UnmarshalJSON added in v2.2.1

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

type NKSController

type NKSController struct {
	// Unique identifier for the controller.
	ID string `json:"id" api:"required"`
	// When the controller was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// Instance type name.
	InstanceType string `json:"instance_type" api:"required"`
	// Name of the controller.
	Name string `json:"name" api:"required"`
	// Private IP address of the controller.
	PrivateIP string `json:"private_ip" api:"required"`
	// Status of the resource.
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "deleted",
	// "error".
	Status shared.ResourceStatus `json:"status" api:"required"`
	// When the controller was last 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
		CreatedAt    respjson.Field
		InstanceType respjson.Field
		Name         respjson.Field
		PrivateIP    respjson.Field
		Status       respjson.Field
		UpdatedAt    respjson.Field
		ExtraFields  map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

NKS controller details.

func (NKSController) RawJSON

func (r NKSController) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSController) UnmarshalJSON

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

type NKSControllerList

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

func (r NKSControllerList) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSControllerList) UnmarshalJSON

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

type NKSControllerVolume

type NKSControllerVolume struct {
	// Unique identifier for the volume.
	ID string `json:"id" api:"required"`
	// When the volume was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// Volume kind.
	//
	// Any of "boot", "data".
	Kind compute.VolumeKind `json:"kind" api:"required"`
	// Name of the volume.
	Name string `json:"name" api:"required"`
	// Size of the volume in GB.
	Size int64 `json:"size" api:"required"`
	// Status of the resource.
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "deleted",
	// "error".
	Status shared.ResourceStatus `json:"status" api:"required"`
	// Type of the Volume.
	//
	// Any of "nvme", "abs", "longhorn".
	Type compute.VolumeType `json:"type" api:"required"`
	// When the volume was last 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
		CreatedAt   respjson.Field
		Kind        respjson.Field
		Name        respjson.Field
		Size        respjson.Field
		Status      respjson.Field
		Type        respjson.Field
		UpdatedAt   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

NKS controller volume details.

func (NKSControllerVolume) RawJSON

func (r NKSControllerVolume) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSControllerVolume) UnmarshalJSON

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

type NKSControllerVolumeList

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

func (r NKSControllerVolumeList) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSControllerVolumeList) UnmarshalJSON

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

type NKSLoadBalancer

type NKSLoadBalancer struct {
	// Unique identifier for the load balancer.
	ID string `json:"id" api:"required"`
	// Cluster this load balancer belongs to.
	ClusterID string `json:"cluster_id" api:"required"`
	// When the load balancer was first discovered.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// Kubernetes namespace of the load balancer.
	Namespace string `json:"namespace" api:"required"`
	// Private IP address of the load balancer.
	PrivateIP string `json:"private_ip" api:"required"`
	// Public IP address assigned to this load balancer.
	PublicIP string `json:"public_ip" api:"required"`
	// Whether a public IP is enabled for this load balancer.
	PublicIPEnabled bool `json:"public_ip_enabled" api:"required"`
	// Kubernetes service name of the load balancer.
	ServiceName string `json:"service_name" api:"required"`
	// Status of the resource.
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "deleted",
	// "error".
	Status shared.ResourceStatus `json:"status" api:"required"`
	// When the load balancer was last 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
		ClusterID       respjson.Field
		CreatedAt       respjson.Field
		Namespace       respjson.Field
		PrivateIP       respjson.Field
		PublicIP        respjson.Field
		PublicIPEnabled respjson.Field
		ServiceName     respjson.Field
		Status          respjson.Field
		UpdatedAt       respjson.Field
		ExtraFields     map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

NKS load balancer details.

func (NKSLoadBalancer) RawJSON

func (r NKSLoadBalancer) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSLoadBalancer) UnmarshalJSON

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

type NKSLoadBalancerList

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

func (r NKSLoadBalancerList) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSLoadBalancerList) UnmarshalJSON

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

type NKSNode

type NKSNode struct {
	// Unique identifier for the node.
	ID string `json:"id" api:"required"`
	// When the node was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// Name of the node.
	Name string `json:"name" api:"required"`
	// Private IP address of the node.
	PrivateIP string `json:"private_ip" api:"required"`
	// Status of the resource.
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "deleted",
	// "error".
	Status shared.ResourceStatus `json:"status" api:"required"`
	// When the node was last 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
		CreatedAt   respjson.Field
		Name        respjson.Field
		PrivateIP   respjson.Field
		Status      respjson.Field
		UpdatedAt   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

NKS node details.

func (NKSNode) RawJSON

func (r NKSNode) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSNode) UnmarshalJSON

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

type NKSNodeList

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

func (r NKSNodeList) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSNodeList) UnmarshalJSON

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

type NKSNodePool

type NKSNodePool struct {
	// Unique identifier for the node pool.
	ID string `json:"id" api:"required"`
	// ID of the Cluster this node pool belongs to.
	ClusterID string `json:"cluster_id" api:"required"`
	// When the node pool was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// Name of the node pool.
	Name string `json:"name" api:"required"`
	// Node configuration.
	NodeConfig NKSNodePoolNodeConfigResponse `json:"node_config" api:"required"`
	// Number of nodes.
	NodeCount int64 `json:"node_count" api:"required"`
	// Status of the resource.
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "deleted",
	// "error".
	Status shared.ResourceStatus `json:"status" api:"required"`
	// Tags attached to the node pool.
	Tags []string `json:"tags" api:"required"`
	// When the node pool was last 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
		ClusterID   respjson.Field
		CreatedAt   respjson.Field
		Name        respjson.Field
		NodeConfig  respjson.Field
		NodeCount   respjson.Field
		Status      respjson.Field
		Tags        respjson.Field
		UpdatedAt   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

NKS node pool details.

func (NKSNodePool) RawJSON

func (r NKSNodePool) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSNodePool) UnmarshalJSON

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

type NKSNodePoolBootVolumeParam

type NKSNodePoolBootVolumeParam struct {
	// Size of the boot volume in GB.
	Size int64 `json:"size" api:"required"`
	// Type of the Volume.
	//
	// Any of "nvme", "abs", "longhorn".
	Type compute.VolumeType `json:"type,omitzero" api:"required"`
	// contains filtered or unexported fields
}

Boot volume configuration.

The properties Size, Type are required.

func (NKSNodePoolBootVolumeParam) MarshalJSON

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

func (*NKSNodePoolBootVolumeParam) UnmarshalJSON

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

type NKSNodePoolBootVolumeResponse

type NKSNodePoolBootVolumeResponse struct {
	// Size of the boot volume in GB.
	Size int64 `json:"size" api:"required"`
	// Type of the Volume.
	//
	// Any of "nvme", "abs", "longhorn".
	Type compute.VolumeType `json:"type" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Size        respjson.Field
		Type        respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Boot volume configuration.

func (NKSNodePoolBootVolumeResponse) RawJSON

Returns the unmodified JSON received from the API

func (*NKSNodePoolBootVolumeResponse) UnmarshalJSON

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

type NKSNodePoolList

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

func (r NKSNodePoolList) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSNodePoolList) UnmarshalJSON

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

type NKSNodePoolNodeConfigParam

type NKSNodePoolNodeConfigParam struct {
	// Boot volume configuration.
	BootVolume NKSNodePoolBootVolumeParam `json:"boot_volume,omitzero" api:"required"`
	// Instance type name used for worker nodes. Immutable after pool creation.
	InstanceType string `json:"instance_type" api:"required"`
	// Kubernetes labels to apply to each node in the pool. Each entry is "key=value".
	// Keys under kubernetes.io, k8s.io, and nirvanalabs.io prefixes are reserved.
	// Immutable after pool creation.
	Labels []string `json:"labels,omitzero"`
	// Kubernetes taints to apply to each node in the pool at creation time. Each entry
	// is "key=value:Effect" where Effect is NoSchedule, PreferNoSchedule, or
	// NoExecute. Immutable after pool creation.
	Taints []string `json:"taints,omitzero"`
	// contains filtered or unexported fields
}

Node configuration.

The properties BootVolume, InstanceType are required.

func (NKSNodePoolNodeConfigParam) MarshalJSON

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

func (*NKSNodePoolNodeConfigParam) UnmarshalJSON

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

type NKSNodePoolNodeConfigResponse

type NKSNodePoolNodeConfigResponse struct {
	// Boot volume configuration.
	BootVolume NKSNodePoolBootVolumeResponse `json:"boot_volume" api:"required"`
	// Instance type name.
	InstanceType string `json:"instance_type" api:"required"`
	// Kubernetes labels applied to each node in the pool. Each entry is "key=value".
	Labels []string `json:"labels" api:"required"`
	// Kubernetes taints applied to each node in the pool. Each entry is
	// "key=value:Effect".
	Taints []string `json:"taints" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		BootVolume   respjson.Field
		InstanceType respjson.Field
		Labels       respjson.Field
		Taints       respjson.Field
		ExtraFields  map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Node configuration.

func (NKSNodePoolNodeConfigResponse) RawJSON

Returns the unmodified JSON received from the API

func (*NKSNodePoolNodeConfigResponse) UnmarshalJSON

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

type NKSNodeVolume

type NKSNodeVolume struct {
	// Unique identifier for the volume.
	ID string `json:"id" api:"required"`
	// When the volume was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// Volume kind.
	//
	// Any of "boot", "data".
	Kind compute.VolumeKind `json:"kind" api:"required"`
	// Name of the volume.
	Name string `json:"name" api:"required"`
	// Unique identifier of the node the volume is attached to.
	NodeID string `json:"node_id" api:"required"`
	// Size of the volume in GB.
	Size int64 `json:"size" api:"required"`
	// Status of the resource.
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "deleted",
	// "error".
	Status shared.ResourceStatus `json:"status" api:"required"`
	// Type of the Volume.
	//
	// Any of "nvme", "abs", "longhorn".
	Type compute.VolumeType `json:"type" api:"required"`
	// When the volume was last 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
		CreatedAt   respjson.Field
		Kind        respjson.Field
		Name        respjson.Field
		NodeID      respjson.Field
		Size        respjson.Field
		Status      respjson.Field
		Type        respjson.Field
		UpdatedAt   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

NKS node volume details.

func (NKSNodeVolume) RawJSON

func (r NKSNodeVolume) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSNodeVolume) UnmarshalJSON

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

type NKSNodeVolumeList

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

func (r NKSNodeVolumeList) RawJSON() string

Returns the unmodified JSON received from the API

func (*NKSNodeVolumeList) UnmarshalJSON

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

type NKSService

type NKSService struct {
	Options            []option.RequestOption
	KubernetesVersions KubernetesVersionService
	Clusters           ClusterService
}

NKSService 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 NewNKSService method instead.

func NewNKSService

func NewNKSService(opts ...option.RequestOption) (r NKSService)

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

type PersistentVolumeClaim struct {
	// Unique identifier for the persistent volume claim.
	ID string `json:"id" api:"required"`
	// Cluster this persistent volume claim belongs to.
	ClusterID string `json:"cluster_id" api:"required"`
	// When the persistent volume claim was first discovered.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	// Name of the persistent volume claim.
	Name string `json:"name" api:"required"`
	// Size of the persistent volume claim in GB.
	Size int64 `json:"size" api:"required"`
	// Status of the resource.
	//
	// Any of "pending", "creating", "updating", "ready", "deleting", "deleted",
	// "error".
	Status shared.ResourceStatus `json:"status" api:"required"`
	// Type of the Volume.
	//
	// Any of "nvme", "abs", "longhorn".
	Type compute.VolumeType `json:"type" api:"required"`
	// When the persistent volume claim was last 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
		ClusterID   respjson.Field
		CreatedAt   respjson.Field
		Name        respjson.Field
		Size        respjson.Field
		Status      respjson.Field
		Type        respjson.Field
		UpdatedAt   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

NKS persistent volume claim details.

func (PersistentVolumeClaim) RawJSON

func (r PersistentVolumeClaim) RawJSON() string

Returns the unmodified JSON received from the API

func (*PersistentVolumeClaim) UnmarshalJSON

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

type PersistentVolumeClaimList

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

func (r PersistentVolumeClaimList) RawJSON() string

Returns the unmodified JSON received from the API

func (*PersistentVolumeClaimList) UnmarshalJSON

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

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