shared

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination added in v1.21.0

type Pagination struct {
	NextCursor     string `json:"next_cursor,required"`
	PreviousCursor string `json:"previous_cursor,required"`
	TotalCount     int64  `json:"total_count,required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		NextCursor     respjson.Field
		PreviousCursor respjson.Field
		TotalCount     respjson.Field
		ExtraFields    map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Pagination response details.

func (Pagination) RawJSON added in v1.21.0

func (r Pagination) RawJSON() string

Returns the unmodified JSON received from the API

func (*Pagination) UnmarshalJSON added in v1.21.0

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

type RegionName

type RegionName string

Region the resource is in.

const (
	RegionNameUsSea1 RegionName = "us-sea-1"
	RegionNameUsSva1 RegionName = "us-sva-1"
	RegionNameUsSva2 RegionName = "us-sva-2"
	RegionNameUsChi1 RegionName = "us-chi-1"
	RegionNameUsWdc1 RegionName = "us-wdc-1"
	RegionNameEuFrk1 RegionName = "eu-frk-1"
	RegionNameApSin1 RegionName = "ap-sin-1"
	RegionNameApSeo1 RegionName = "ap-seo-1"
	RegionNameApTyo1 RegionName = "ap-tyo-1"
)

type ResourceStatus

type ResourceStatus string

Status of the resource.

const (
	ResourceStatusPending  ResourceStatus = "pending"
	ResourceStatusCreating ResourceStatus = "creating"
	ResourceStatusUpdating ResourceStatus = "updating"
	ResourceStatusReady    ResourceStatus = "ready"
	ResourceStatusDeleting ResourceStatus = "deleting"
	ResourceStatusDeleted  ResourceStatus = "deleted"
	ResourceStatusError    ResourceStatus = "error"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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