shared

package
v1.87.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

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

Documentation

Index

Constants

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" api:"required"`
	PreviousCursor string `json:"previous_cursor" api:"required"`
	TotalCount     int64  `json:"total_count" api:"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 (
	RegionNameUsSva2 RegionName = "us-sva-2"
)

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

type SourceIPRuleParam added in v1.35.0

type SourceIPRuleParam struct {
	// List of IPv4 CIDR addresses to allow.
	Allowed []string `json:"allowed,omitzero"`
	// List of IPv4 CIDR addresses to deny.
	Blocked []string `json:"blocked,omitzero"`
	// contains filtered or unexported fields
}

IP filter rules.

func (SourceIPRuleParam) MarshalJSON added in v1.35.0

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

func (*SourceIPRuleParam) UnmarshalJSON added in v1.35.0

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

type SourceIPRuleResponse added in v1.54.0

type SourceIPRuleResponse struct {
	// List of IPv4 CIDR addresses to allow.
	Allowed []string `json:"allowed" api:"required"`
	// List of IPv4 CIDR addresses to deny.
	Blocked []string `json:"blocked" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Allowed     respjson.Field
		Blocked     respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

IP filter rules.

func (SourceIPRuleResponse) RawJSON added in v1.54.0

func (r SourceIPRuleResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*SourceIPRuleResponse) UnmarshalJSON added in v1.54.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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