antimetal

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MPL-2.0 Imports: 8 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 NewClient

func NewClient(opts ...ClientOption) (*Client, error)

func (*Client) Handshake

func (c *Client) Handshake(req HandshakeRequest) error

type ClientOption

type ClientOption func(*Client) error

func WithTimeout

func WithTimeout(timeout time.Duration) ClientOption

func WithURL

func WithURL(url string) ClientOption

type HTTPError

type HTTPError struct {
	URL        string
	StatusCode int
	Body       []byte
}

func (*HTTPError) Error

func (e *HTTPError) Error() string

type HandshakeAction

type HandshakeAction string
const (
	HandshakeCreate HandshakeAction = "CREATE"
	HandshakeDelete HandshakeAction = "DELETE"
)

type HandshakeRequest

type HandshakeRequest struct {
	Action      HandshakeAction `json:"action"`
	HandshakeID string          `json:"handshake_id"`
	ExternalID  string          `json:"external_id"`
	RoleARN     string          `json:"role_arn"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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