sdk

package
v0.0.0-...-d0de3f5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 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 Account

type Account struct {
	Id                    string
	Name                  string
	Environment           string
	HasRealTimeMonitoring bool
	SecurityPackage       bool
	CostPackage           bool
	Code                  string
}

type AccountAccessSettings

type AccountAccessSettings struct {
	RoleArn    string
	ExternalId string
}

type AccountOverview

type AccountOverview struct {
	Id          string
	Name        string
	Environment string
}

type Client

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

func NewClient

func NewClient(apiKey string, region string) *Client

func (Client) CreateAccount

func (client Client) CreateAccount(request CreateAccountRequest) (string, error)

func (Client) DeleteAccount

func (client Client) DeleteAccount(id string) error

func (Client) DoesAccountExist

func (client Client) DoesAccountExist(id string) (bool, error)

func (Client) GetAccount

func (client Client) GetAccount(id string) (*Account, error)

func (Client) GetAccountAccessSettings

func (client Client) GetAccountAccessSettings(id string) (*AccountAccessSettings, error)

func (Client) GetExternalId

func (client Client) GetExternalId() (string, error)

func (Client) ListAccounts

func (client Client) ListAccounts() ([]AccountOverview, error)

func (Client) UpdateAccount

func (client Client) UpdateAccount(id string, name string, environment string) error

func (Client) UpdateAccountSubscription

func (client Client) UpdateAccountSubscription(id string, cost bool, realtime bool, security bool) error

type CreateAccountRequest

type CreateAccountRequest struct {
	Name                  string
	Environment           string
	Role                  string
	ExternalId            string
	HasRealTimeMonitoring bool
	CostPackage           bool
	SecurityPackage       bool
	Retries               int
	Code                  string
}

Jump to

Keyboard shortcuts

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