api

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClient

func WithClient(ctx context.Context, client *Depot) context.Context

Types

type Depot

type Depot struct {
	BaseURL string
	// contains filtered or unexported fields
}

func GetContextClient

func GetContextClient(ctx context.Context) *Depot

func New

func New(baseURL string, token string) *Depot

func NewFromEnv

func NewFromEnv(token string) *Depot

func (*Depot) Example

func (d *Depot) Example(id string) error

func (*Depot) RegisterAwsBuilder

func (d *Depot) RegisterAwsBuilder(request RegisterAwsBuilderRequest) (*RegisterAwsBuilderResponse, error)

type ErrorResponse

type ErrorResponse struct {
	OK    bool   `json:"ok"`
	Error string `json:"error"`
}

type ExampleResponse

type ExampleResponse struct {
	OK bool `json:"ok"`
}

type RegisterAwsBuilderRequest

type RegisterAwsBuilderRequest struct {
	Document  string `json:"document"`
	Signature string `json:"signature"`
	ASG       string `json:"asg"`
}

type RegisterAwsBuilderResponse

type RegisterAwsBuilderResponse struct {
	OK    bool   `json:"ok"`
	Token string `json:"token"`
	Role  string `json:"role"`
}

Jump to

Keyboard shortcuts

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