amplifyx

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 8 Imported by: 0

README

amplifyx

Go Reference Go Report Card

Installation

go install github.com/m0t0k1ch1-go/amplifyx/cmd/amplifyx@latest

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLI struct {
	Deploy  DeployArgs `cmd:""`
	Version struct{}   `cmd:""`
}

CLI represents the command-line interface.

Functions

This section is empty.

Types

type Client

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

Client is a client for AWS Amplify.

func NewClient

func NewClient(ctx context.Context) (*Client, error)

NewClient returns a new Client.

func (*Client) Deploy

func (c *Client) Deploy(ctx context.Context, args DeployArgs) error

Deploy starts a release job and waits for it to complete.

func (*Client) Version added in v1.3.0

func (c *Client) Version() string

Version returns the module version.

type DeployArgs

type DeployArgs struct {
	AppID               string        `required:""`
	BranchName          string        `default:"main"`
	ObservationTimeout  time.Duration `default:"5m"`
	ObservationInterval time.Duration `default:"5s"`
}

DeployArgs is the set of arguments for Deploy.

Directories

Path Synopsis
cmd
amplifyx command

Jump to

Keyboard shortcuts

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