api

package
v0.30.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 6 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
}

Client handles Control Plane API operations

func NewClient

func NewClient(http HTTPDoer) *Client

NewClient creates a new API client

func (*Client) CreateDataplane

func (c *Client) CreateDataplane(ctx context.Context, spec DataplaneSpec) (*Dataplane, error)

CreateDataplane creates a new dataplane

func (*Client) DeleteDataplane

func (c *Client) DeleteDataplane(ctx context.Context, id string) error

DeleteDataplane deletes a dataplane by ID

func (*Client) GetDataplane

func (c *Client) GetDataplane(ctx context.Context, id string) (*Dataplane, error)

GetDataplane retrieves a specific dataplane by ID

func (*Client) ListDataplanes

func (c *Client) ListDataplanes(ctx context.Context) ([]Dataplane, error)

ListDataplanes retrieves all dataplanes

type Dataplane

type Dataplane struct {
	ID     string            `json:"id"`
	Name   string            `json:"name"`
	Type   string            `json:"type"`
	Status string            `json:"status"`
	Config map[string]string `json:"config"`
}

Dataplane represents a dataplane resource

type DataplaneSpec

type DataplaneSpec struct {
	Name   string            `json:"name"`
	Type   string            `json:"type"`
	Config map[string]string `json:"config"`
}

DataplaneSpec represents the input for dataplane operations

type HTTPDoer

type HTTPDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPDoer interface for making HTTP requests

Jump to

Keyboard shortcuts

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