Documentation
¶
Index ¶
- func NewContext() context.Context
- type Client
- func (c *Client) CreateCloudAccount(teamID, resourceKey, resourceSecret, resourceName string) (*client.CloudAccount, error)
- func (c *Client) CreateComposite(teamID, gitRepoURL, name, gitKeyId string) (*client.Composite, error)
- func (c *Client) CreateGitKey(teamID, resourceSecret, resourceName string) (*client.GitKey, error)
- func (c *Client) CreatePlan(planConfigContent []byte) (*client.Plan, error)
- func (c *Client) CreateTeam(teamName, teamDescription string) (*client.Team, error)
- func (c *Client) DeleteCloudAccountByID(teamID, cloudID string) error
- func (c *Client) DeleteCompositeByID(teamID, compositeID string) error
- func (c *Client) DeleteGitKeyByID(teamID, gitKeyID string) error
- func (c *Client) DeletePlanByID(teamID, compositeID, planID string) error
- func (c *Client) DeleteTokenByID(tokenID string) error
- func (c *Client) DisablePlanByID(teamID, compositeID, planID string) (*client.Plan, error)
- func (c *Client) EnablePlanByID(teamID, compositeID, planID string) (*client.Plan, error)
- func (c *Client) GetPlanPanel(teamID, compositeID, planID string) (*client.Panel, error)
- func (c *Client) InitPlan(branch, name, region, teamID, cloudID, compositeID, revision string, ...) (*client.PlanConfig, error)
- func (c *Client) ListCloudAccounts(teamID string) ([]*client.CloudAccount, error)
- func (c *Client) ListComposites(teamID string) ([]*client.Composite, error)
- func (c *Client) ListGitKeys(teamID string) ([]*client.GitKey, error)
- func (c *Client) ListPlans(teamID, compositeID string) ([]*client.Plan, 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) RunNowPlanByID(teamID, compositeID, planID string) (*client.Plan, error)
- func (c *Client) ShowCloudAccountByID(teamID, cloudID string) (*client.CloudAccount, error)
- func (c *Client) ShowCompositeByID(teamID, compositeID string) (*client.Composite, error)
- func (c *Client) ShowGitKeyByID(teamID, gitKeyID string) (*client.GitKey, error)
- func (c *Client) ShowPlanByID(teamID, compositeID, planID string) (*client.Plan, error)
- func (c *Client) ShowTeamByID(teamID string) (*client.Team, error)
- func (c *Client) ShowTokenByID(tokenID string) (*client.Token, error)
- type Interface
- 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(teamID, resourceKey, resourceSecret, resourceName string) (*client.CloudAccount, error)
CreateCloudAccount Create cloud account
func (*Client) CreateComposite ¶
func (c *Client) CreateComposite(teamID, gitRepoURL, name, gitKeyId string) (*client.Composite, error)
CreateComposite Create composite
func (*Client) CreateGitKey ¶
CreateGitKey Create git key
func (*Client) CreatePlan ¶ added in v0.0.3
CreatePlan create a plan
func (*Client) CreateTeam ¶ added in v0.0.7
CreateTeam Create a new team
func (*Client) DeleteCloudAccountByID ¶
DeleteCloudAccountByID Delete cloud by ID
func (*Client) DeleteCompositeByID ¶ added in v0.0.7
DeleteCompositeByID delete composite by ID
func (*Client) DeleteGitKeyByID ¶
DeleteGitKeyByID delete git key
func (*Client) DeletePlanByID ¶
DeletePlanByID Delete by ID
func (*Client) DeleteTokenByID ¶
DeleteTokenByID Delete token by ID
func (*Client) DisablePlanByID ¶
DisablePlanByID Disable plan by ID
func (*Client) EnablePlanByID ¶
EnablePlanByID Enable plan by ID
func (*Client) GetPlanPanel ¶ added in v0.0.3
GetPlanPanel get plan panel
func (*Client) InitPlan ¶ added in v0.0.3
func (c *Client) InitPlan(branch, name, region, teamID, cloudID, compositeID, revision string, interval int) (*client.PlanConfig, error)
InitPlan init a plan
func (*Client) ListCloudAccounts ¶
func (c *Client) ListCloudAccounts(teamID string) ([]*client.CloudAccount, error)
ListCloudAccounts Get list of cloud accounts
func (*Client) ListComposites ¶
ListComposites List composite
func (*Client) ListGitKeys ¶
ListGitKeys Get list of git keys
func (*Client) ListTokens ¶
ListTokens get tokens list
func (*Client) MakeClient ¶
MakeClient make client method
func (*Client) RunNowPlanByID ¶ added in v0.0.7
RunNowPlanByID Run Now plan by ID
func (*Client) ShowCloudAccountByID ¶
func (c *Client) ShowCloudAccountByID(teamID, cloudID string) (*client.CloudAccount, error)
ShowCloudAccountByID show cloud account by ID
func (*Client) ShowCompositeByID ¶
ShowCompositeByID show composite by ID
func (*Client) ShowGitKeyByID ¶
ShowGitKeyByID Show gitkey with ID
func (*Client) ShowPlanByID ¶
ShowPlanByID Show plan by ID
func (*Client) ShowTeamByID ¶
ShowTeamByID show team with ID
type Interface ¶
type Interface interface {
ListTeams() ([]*client.Team, error)
ShowTeamByID(teamID string) (*client.Team, error)
CreateTeam(teamName, teamDescripton string) (*client.Team, error)
ListTokens() ([]*client.Token, error)
ShowTokenByID(tokenID string) (*client.Token, error)
DeleteTokenByID(tokenID string) error
ListCloudAccounts(teamID string) ([]*client.CloudAccount, error)
ShowCloudAccountByID(teamID, cloudID string) (*client.CloudAccount, error)
CreateCloudAccount(teamID, resourceKey, resourceSecret, resourceName string) (*client.CloudAccount, error)
DeleteCloudAccountByID(teamID, cloudID string) error
ListGitKeys(teamID string) ([]*client.GitKey, error)
ShowGitKeyByID(teamID, gitKeyID string) (*client.GitKey, error)
CreateGitKey(teamID, resourceSecret, resourceName string) (*client.GitKey, error)
DeleteGitKeyByID(teamID, gitKeyID string) error
ListComposites(teamID string) ([]*client.Composite, error)
ShowCompositeByID(teamID, compositeID string) (*client.Composite, error)
CreateComposite(teamID, gitRepoURL, name, gitKeyId string) (*client.Composite, error)
DeleteCompositeByID(teamID, compositeID string) error
ListPlans(teamID, compositeID string) ([]*client.Plan, error)
ShowPlanByID(teamID, compositeID, planID string) (*client.Plan, error)
EnablePlanByID(teamID, compositeID, planID string) (*client.Plan, error)
DisablePlanByID(teamID, compositeID, planID string) (*client.Plan, error)
DeletePlanByID(teamID, compositeID, planID string) error
InitPlan(branch, name, region, teamID, cloudID, compositeID, revision string, interval int) (*client.PlanConfig, error)
CreatePlan(planConfigJSON []byte) (*client.Plan, error)
GetPlanPanel(teamID, compositeID, planID string) (*client.Panel, error)
RunNowPlanByID(teamID, compositeID, planID string) (*client.Plan, error)
}
Interface for Coreo client for mocking in tests