cdk

package
v0.0.0-...-3fc36a1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 4 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{}

Client is CDK client

func (*Client) Deploy

func (*Client) Deploy(repoPath string, stacks []string, contexts map[string]string) (string, error)

Deploy stack

func (*Client) Diff

func (*Client) Diff(repoPath string, stacks []string, contexts map[string]string) (string, bool, error)

Diff stack and returns (diff, hasDiff, error)

func (*Client) List

func (*Client) List(repoPath string, contexts map[string]string) ([]string, error)

List stack

func (*Client) Setup

func (*Client) Setup(repoPath string) error

Setup env to run cdk commands

type Clienter

type Clienter interface {
	Setup(repoPath string) error
	List(repoPath string, contexts map[string]string) ([]string, error)
	Diff(repoPath string, stacks []string, contexts map[string]string) (string, bool, error)
	Deploy(repoPath string, stacks []string, contexts map[string]string) (string, error)
}

Clienter is interface of CDK client

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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