Documentation ¶
Index ¶
- func NewContext() context.Context
- type Client
- func (c *Client) CreateCloudAccount(input *client.CreateCloudAccountInput) (*client.CloudAccount, error)
- func (c *Client) CreateTeam(teamName, teamDescription string) (*client.Team, error)
- func (c *Client) DeleteCloudAccountByID(teamID, cloudID string) error
- func (c *Client) DeleteTokenByID(tokenID string) error
- func (c *Client) GetEventStreamConfig(teamID, cloudID string) (*client.EventStreamConfig, error)
- func (c *Client) GetRoleCreationInfo(input *client.CreateCloudAccountInput) (*client.RoleCreationInfo, error)
- func (c *Client) ListCloudAccounts(teamID string) ([]*client.CloudAccount, error)
- func (c *Client) ListTeams() ([]*client.Team, error)
- func (c *Client) ListTokens() ([]*client.Token, error)
- func (c *Client) MakeClient() (*client.Client, error)
- func (c *Client) Option(opts ...Option) *Client
- func (c *Client) ShowCloudAccountByID(teamID, cloudID string) (*client.CloudAccount, error)
- func (c *Client) ShowResultObject(teamID, cloudID, level string) ([]*client.ResultObject, error)
- func (c *Client) ShowResultRule(teamID, cloudID, level string) ([]*client.ResultRule, error)
- func (c *Client) ShowTeamByID(teamID string) (*client.Team, error)
- func (c *Client) ShowTokenByID(tokenID string) (*client.Token, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client struct
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
CreateTeam Create a new team
func (*Client) DeleteCloudAccountByID ¶
DeleteCloudAccountByID Delete cloud by ID
func (*Client) DeleteTokenByID ¶
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) ListTokens ¶
ListTokens get tokens list
func (*Client) MakeClient ¶
MakeClient make client method
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 ¶
ShowTeamByID show team with ID