coreo

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext() context.Context

NewContext creates a versioned context.

Types

type Client

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

Client struct

func NewClient

func NewClient(opts ...Option) *Client

NewClient creates a new client.

func (*Client) CreateCloudAccount

func (c *Client) CreateCloudAccount(input *client.CreateCloudAccountInput) (*client.CloudAccount, error)

CreateCloudAccount Create cloud account

func (*Client) CreateTeam added in v0.0.7

func (c *Client) CreateTeam(teamName, teamDescription string) (*client.Team, error)

CreateTeam Create a new team

func (*Client) DeleteCloudAccountByID

func (c *Client) DeleteCloudAccountByID(teamID, cloudID string) error

DeleteCloudAccountByID Delete cloud by ID

func (*Client) DeleteTokenByID

func (c *Client) DeleteTokenByID(tokenID string) error

DeleteTokenByID Delete token by ID

func (*Client) GetEventStreamConfig added in v0.0.20

func (c *Client) GetEventStreamConfig(teamID, cloudID string) (*client.EventStreamConfig, error)

GetEventStreamConfig gets event stream setup config

func (*Client) GetRoleCreationInfo added in v0.0.21

func (c *Client) GetRoleCreationInfo(input *client.CreateCloudAccountInput) (*client.RoleCreationInfo, error)

func (*Client) ListCloudAccounts

func (c *Client) ListCloudAccounts(teamID string) ([]*client.CloudAccount, error)

ListCloudAccounts Get list of cloud accounts

func (*Client) ListTeams

func (c *Client) ListTeams() ([]*client.Team, error)

ListTeams get list of teams

func (*Client) ListTokens

func (c *Client) ListTokens() ([]*client.Token, error)

ListTokens get tokens list

func (*Client) MakeClient

func (c *Client) MakeClient() (*client.Client, error)

MakeClient make client method

func (*Client) Option

func (c *Client) Option(opts ...Option) *Client

Option configures the Coreo client with the provided options

func (*Client) ShowCloudAccountByID

func (c *Client) ShowCloudAccountByID(teamID, cloudID string) (*client.CloudAccount, error)

ShowCloudAccountByID show cloud account by ID

func (*Client) ShowResultObject added in v0.0.19

func (c *Client) ShowResultObject(teamID, cloudID, level string) ([]*client.ResultObject, error)

ShowResultObject shows violated objects. If the filter condition (teamID, cloudID in this case) is valid, objects will be filtered. Otherwise return all violation objects under this user account.

func (*Client) ShowResultRule added in v0.0.19

func (c *Client) ShowResultRule(teamID, cloudID, level string) ([]*client.ResultRule, error)

ShowResultRule shows violated rules. If the filter condition (teamID, cloudID in this case) is valid, rules will be filtered. Otherwise return all violation rules under this user account.

func (*Client) ShowTeamByID

func (c *Client) ShowTeamByID(teamID string) (*client.Team, error)

ShowTeamByID show team with ID

func (*Client) ShowTokenByID

func (c *Client) ShowTokenByID(tokenID string) (*client.Token, error)

ShowTokenByID show token by ID

type Option

type Option func(*options)

Option allows specifying various settings configurable by the coreo client user for overriding the defaults

func APIKey

func APIKey(apiKey string) Option

APIKey specifies the apiKey of the Coreo API server request.

func Host

func Host(host string) Option

Host specifies the host address of the Coreo API server.

func SecretKey

func SecretKey(secretKey string) Option

SecretKey specifies the secretKey of the Coreo API server request.

Jump to

Keyboard shortcuts

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