coreo

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 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) DeleteCloudAccountByID

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

DeleteCloudAccountByID Delete cloud by ID

func (*Client) GetEventRemoveConfig added in v0.0.23

func (c *Client) GetEventRemoveConfig(cloudID string) (*client.EventRemoveConfig, error)

func (*Client) GetEventStreamConfig added in v0.0.20

func (c *Client) GetEventStreamConfig(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() ([]*client.CloudAccount, error)

ListCloudAccounts Get list of cloud accounts

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) ReValidateRole added in v0.0.27

func (c *Client) ReValidateRole(cloudID string) (*client.RoleReValidationResult, error)

func (*Client) ShowCloudAccountByID

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

ShowCloudAccountByID show cloud account by ID

func (*Client) UpdateCloudAccount added in v0.0.27

func (c *Client) UpdateCloudAccount(input *client.UpdateCloudAccountInput) (*client.CloudAccount, error)

type Option

type Option func(*options)

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

func Host

func Host(host string) Option

Host specifies the host address of the Coreo API server.

func RefreshToken added in v0.0.38

func RefreshToken(refreshToken string) Option

RefreshToken specifies the refreshToken of the Coreo API server request.

Jump to

Keyboard shortcuts

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