cloudapi

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 10 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 is a client for the Atlas Cloud API.

func New

func New(endpoint, token string) *Client

New creates a new Client for the Atlas Cloud API.

func (*Client) Dir

func (c *Client) Dir(ctx context.Context, input DirInput) (migrate.Dir, error)

Dir retrieves a directory from the Atlas Cloud API.

type DirInput

type DirInput struct {
	Name string `json:"name"`
	Tag  string `json:"tag,omitempty"`
}

DirInput is the input type for retrieving a single directory.

Jump to

Keyboard shortcuts

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