zones

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(c HTTPClient) *Client

func (*Client) Find

func (c *Client) Find(ctx context.Context, req FindRequest) ([]FindResponse, error)

Find

func (*Client) Index

func (c *Client) Index(ctx context.Context, req IndexRequest) ([]IndexResponse, error)

Index Get status for all zones.

func (*Client) IndexContent

func (c *Client) IndexContent(ctx context.Context, req IndexContentRequest) ([]IndexContentResponse, error)

IndexContent List zone content.

type FindRequest

type FindRequest struct {
	Node string `url:"node" json:"node"` // The cluster node name.
	Zone string `url:"zone" json:"zone"` // The SDN zone object identifier.

}

type FindResponse

type FindResponse struct {
	Subdir string `url:"subdir" json:"subdir"`
}

type HTTPClient

type HTTPClient interface {
	Do(context.Context, string, string, interface{}, interface{}) error
}

type IndexContentRequest

type IndexContentRequest struct {
	Node string `url:"node" json:"node"` // The cluster node name.
	Zone string `url:"zone" json:"zone"` // The SDN zone object identifier.

}

type IndexContentResponse

type IndexContentResponse struct {
	Vnet string `url:"vnet" json:"vnet"` // Vnet identifier.

	// The following parameters are optional
	Status    *string `url:"status,omitempty" json:"status,omitempty"`       // Status.
	Statusmsg *string `url:"statusmsg,omitempty" json:"statusmsg,omitempty"` // Status details
}

type IndexRequest

type IndexRequest struct {
	Node string `url:"node" json:"node"` // The cluster node name.

}

type IndexResponse

type IndexResponse struct {
	Status Status `url:"status" json:"status"` // Status of zone
	Zone   string `url:"zone" json:"zone"`     // The SDN zone object identifier.

}

type Status added in v0.0.15

type Status string
const (
	Status_AVAILABLE Status = "available"
	Status_PENDING   Status = "pending"
	Status_ERROR     Status = "error"
)

func PtrStatus added in v0.0.15

func PtrStatus(i Status) *Status

Jump to

Keyboard shortcuts

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