Documentation
¶
Index ¶
- type Client
- func (c *Client) AddOrgMember(ctx context.Context, orgRef, userRef string, role gwapitypes.MemberRole) (*gwapitypes.AddOrgMemberResponse, *http.Response, error)
- func (c *Client) CreateOrg(ctx context.Context, req *gwapitypes.CreateOrgRequest) (*gwapitypes.OrgResponse, *http.Response, error)
- func (c *Client) CreateProject(ctx context.Context, req *gwapitypes.CreateProjectRequest) (*gwapitypes.ProjectResponse, *http.Response, error)
- func (c *Client) CreateProjectGroup(ctx context.Context, req *gwapitypes.CreateProjectGroupRequest) (*gwapitypes.ProjectResponse, *http.Response, error)
- func (c *Client) CreateProjectGroupSecret(ctx context.Context, projectGroupRef string, ...) (*gwapitypes.SecretResponse, *http.Response, error)
- func (c *Client) CreateProjectGroupVariable(ctx context.Context, projectGroupRef string, ...) (*gwapitypes.VariableResponse, *http.Response, error)
- func (c *Client) CreateProjectSecret(ctx context.Context, projectRef string, req *gwapitypes.CreateSecretRequest) (*gwapitypes.SecretResponse, *http.Response, error)
- func (c *Client) CreateProjectVariable(ctx context.Context, projectRef string, req *gwapitypes.CreateVariableRequest) (*gwapitypes.VariableResponse, *http.Response, error)
- func (c *Client) CreateRemoteSource(ctx context.Context, req *gwapitypes.CreateRemoteSourceRequest) (*gwapitypes.RemoteSourceResponse, *http.Response, error)
- func (c *Client) CreateUser(ctx context.Context, req *gwapitypes.CreateUserRequest) (*gwapitypes.UserResponse, *http.Response, error)
- func (c *Client) CreateUserLA(ctx context.Context, userRef string, req *gwapitypes.CreateUserLARequest) (*gwapitypes.CreateUserLAResponse, *http.Response, error)
- func (c *Client) CreateUserToken(ctx context.Context, userRef string, req *gwapitypes.CreateUserTokenRequest) (*gwapitypes.CreateUserTokenResponse, *http.Response, error)
- func (c *Client) DeleteLogs(ctx context.Context, runID, taskID string, setup bool, step int) (*http.Response, error)
- func (c *Client) DeleteOrg(ctx context.Context, orgRef string) (*http.Response, error)
- func (c *Client) DeleteProject(ctx context.Context, projectRef string) (*http.Response, error)
- func (c *Client) DeleteProjectGroup(ctx context.Context, projectGroupRef string) (*http.Response, error)
- func (c *Client) DeleteProjectGroupSecret(ctx context.Context, projectGroupRef, secretName string) (*http.Response, error)
- func (c *Client) DeleteProjectGroupVariable(ctx context.Context, projectGroupRef, variableName string) (*http.Response, error)
- func (c *Client) DeleteProjectSecret(ctx context.Context, projectRef, secretName string) (*http.Response, error)
- func (c *Client) DeleteProjectVariable(ctx context.Context, projectRef, variableName string) (*http.Response, error)
- func (c *Client) DeleteRemoteSource(ctx context.Context, rsRef string) (*http.Response, error)
- func (c *Client) DeleteUser(ctx context.Context, userRef string) (*http.Response, error)
- func (c *Client) DeleteUserLA(ctx context.Context, userRef, laID string) (*http.Response, error)
- func (c *Client) DeleteUserToken(ctx context.Context, userRef, tokenName string) (*http.Response, error)
- func (c *Client) GetCurrentUser(ctx context.Context) (*gwapitypes.UserResponse, *http.Response, error)
- func (c *Client) GetLogs(ctx context.Context, runID, taskID string, setup bool, step int, follow bool) (*http.Response, error)
- func (c *Client) GetOrgMembers(ctx context.Context, orgRef string) (*gwapitypes.OrgMembersResponse, *http.Response, error)
- func (c *Client) GetProject(ctx context.Context, projectRef string) (*gwapitypes.ProjectResponse, *http.Response, error)
- func (c *Client) GetProjectGroup(ctx context.Context, projectGroupRef string) (*gwapitypes.ProjectGroupResponse, *http.Response, error)
- func (c *Client) GetProjectGroupProjects(ctx context.Context, projectGroupRef string) ([]*gwapitypes.ProjectResponse, *http.Response, error)
- func (c *Client) GetProjectGroupSecrets(ctx context.Context, projectRef string, tree, removeoverridden bool) ([]*gwapitypes.SecretResponse, *http.Response, error)
- func (c *Client) GetProjectGroupSubgroups(ctx context.Context, projectGroupRef string) ([]*gwapitypes.ProjectGroupResponse, *http.Response, error)
- func (c *Client) GetProjectGroupVariables(ctx context.Context, projectRef string, tree, removeoverridden bool) ([]*gwapitypes.VariableResponse, *http.Response, error)
- func (c *Client) GetProjectSecrets(ctx context.Context, projectRef string, tree, removeoverridden bool) ([]*gwapitypes.SecretResponse, *http.Response, error)
- func (c *Client) GetProjectVariables(ctx context.Context, projectRef string, tree, removeoverridden bool) ([]*gwapitypes.VariableResponse, *http.Response, error)
- func (c *Client) GetRemoteSource(ctx context.Context, rsRef string) (*gwapitypes.RemoteSourceResponse, *http.Response, error)
- func (c *Client) GetRemoteSources(ctx context.Context, start string, limit int, asc bool) ([]*gwapitypes.RemoteSourceResponse, *http.Response, error)
- func (c *Client) GetRun(ctx context.Context, runID string) (*gwapitypes.RunResponse, *http.Response, error)
- func (c *Client) GetRunTask(ctx context.Context, runID, taskID string) (*gwapitypes.RunTaskResponse, *http.Response, error)
- func (c *Client) GetRuns(ctx context.Context, phaseFilter, resultFilter, groups, runGroups []string, ...) ([]*gwapitypes.RunsResponse, *http.Response, error)
- func (c *Client) GetUser(ctx context.Context, userRef string) (*gwapitypes.UserResponse, *http.Response, error)
- func (c *Client) GetUsers(ctx context.Context, start string, limit int, asc bool) ([]*gwapitypes.UserResponse, *http.Response, error)
- func (c *Client) GetVersion(ctx context.Context) (*gwapitypes.VersionResponse, *http.Response, error)
- func (c *Client) ProjectCreateRun(ctx context.Context, projectRef string, ...) (*http.Response, error)
- func (c *Client) ReconfigProject(ctx context.Context, projectRef string) (*http.Response, error)
- func (c *Client) RegisterUser(ctx context.Context, req *gwapitypes.RegisterUserRequest) (*gwapitypes.RegisterUserResponse, *http.Response, error)
- func (c *Client) RemoveOrgMember(ctx context.Context, orgRef, userRef string) (*http.Response, error)
- func (c *Client) SetHTTPClient(client *http.Client)
- func (c *Client) UpdateProject(ctx context.Context, projectRef string, req *gwapitypes.UpdateProjectRequest) (*gwapitypes.ProjectResponse, *http.Response, error)
- func (c *Client) UpdateProjectGroup(ctx context.Context, projectGroupRef string, ...) (*gwapitypes.ProjectResponse, *http.Response, error)
- func (c *Client) UpdateProjectGroupSecret(ctx context.Context, projectGroupRef, secretName string, ...) (*gwapitypes.SecretResponse, *http.Response, error)
- func (c *Client) UpdateProjectGroupVariable(ctx context.Context, projectGroupRef, variableName string, ...) (*gwapitypes.VariableResponse, *http.Response, error)
- func (c *Client) UpdateProjectSecret(ctx context.Context, projectRef, secretName string, ...) (*gwapitypes.SecretResponse, *http.Response, error)
- func (c *Client) UpdateProjectVariable(ctx context.Context, projectRef, variableName string, ...) (*gwapitypes.VariableResponse, *http.Response, error)
- func (c *Client) UpdateRemoteSource(ctx context.Context, rsRef string, req *gwapitypes.UpdateRemoteSourceRequest) (*gwapitypes.RemoteSourceResponse, *http.Response, error)
- func (c *Client) UserCreateRun(ctx context.Context, req *gwapitypes.UserCreateRunRequest) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddOrgMember ¶
func (c *Client) AddOrgMember(ctx context.Context, orgRef, userRef string, role gwapitypes.MemberRole) (*gwapitypes.AddOrgMemberResponse, *http.Response, error)
func (*Client) CreateOrg ¶
func (c *Client) CreateOrg(ctx context.Context, req *gwapitypes.CreateOrgRequest) (*gwapitypes.OrgResponse, *http.Response, error)
func (*Client) CreateProject ¶
func (c *Client) CreateProject(ctx context.Context, req *gwapitypes.CreateProjectRequest) (*gwapitypes.ProjectResponse, *http.Response, error)
func (*Client) CreateProjectGroup ¶
func (c *Client) CreateProjectGroup(ctx context.Context, req *gwapitypes.CreateProjectGroupRequest) (*gwapitypes.ProjectResponse, *http.Response, error)
func (*Client) CreateProjectGroupSecret ¶
func (c *Client) CreateProjectGroupSecret(ctx context.Context, projectGroupRef string, req *gwapitypes.CreateSecretRequest) (*gwapitypes.SecretResponse, *http.Response, error)
func (*Client) CreateProjectGroupVariable ¶
func (c *Client) CreateProjectGroupVariable(ctx context.Context, projectGroupRef string, req *gwapitypes.CreateVariableRequest) (*gwapitypes.VariableResponse, *http.Response, error)
func (*Client) CreateProjectSecret ¶
func (c *Client) CreateProjectSecret(ctx context.Context, projectRef string, req *gwapitypes.CreateSecretRequest) (*gwapitypes.SecretResponse, *http.Response, error)
func (*Client) CreateProjectVariable ¶
func (c *Client) CreateProjectVariable(ctx context.Context, projectRef string, req *gwapitypes.CreateVariableRequest) (*gwapitypes.VariableResponse, *http.Response, error)
func (*Client) CreateRemoteSource ¶
func (c *Client) CreateRemoteSource(ctx context.Context, req *gwapitypes.CreateRemoteSourceRequest) (*gwapitypes.RemoteSourceResponse, *http.Response, error)
func (*Client) CreateUser ¶
func (c *Client) CreateUser(ctx context.Context, req *gwapitypes.CreateUserRequest) (*gwapitypes.UserResponse, *http.Response, error)
func (*Client) CreateUserLA ¶
func (c *Client) CreateUserLA(ctx context.Context, userRef string, req *gwapitypes.CreateUserLARequest) (*gwapitypes.CreateUserLAResponse, *http.Response, error)
func (*Client) CreateUserToken ¶
func (c *Client) CreateUserToken(ctx context.Context, userRef string, req *gwapitypes.CreateUserTokenRequest) (*gwapitypes.CreateUserTokenResponse, *http.Response, error)
func (*Client) DeleteLogs ¶ added in v0.4.0
func (*Client) DeleteProject ¶
func (*Client) DeleteProjectGroup ¶
func (*Client) DeleteProjectGroupSecret ¶
func (*Client) DeleteProjectGroupVariable ¶
func (*Client) DeleteProjectSecret ¶
func (*Client) DeleteProjectVariable ¶
func (*Client) DeleteRemoteSource ¶
func (*Client) DeleteUser ¶
func (*Client) DeleteUserLA ¶
func (*Client) DeleteUserToken ¶
func (*Client) GetCurrentUser ¶
func (c *Client) GetCurrentUser(ctx context.Context) (*gwapitypes.UserResponse, *http.Response, error)
func (*Client) GetOrgMembers ¶
func (c *Client) GetOrgMembers(ctx context.Context, orgRef string) (*gwapitypes.OrgMembersResponse, *http.Response, error)
func (*Client) GetProject ¶
func (c *Client) GetProject(ctx context.Context, projectRef string) (*gwapitypes.ProjectResponse, *http.Response, error)
func (*Client) GetProjectGroup ¶
func (c *Client) GetProjectGroup(ctx context.Context, projectGroupRef string) (*gwapitypes.ProjectGroupResponse, *http.Response, error)
func (*Client) GetProjectGroupProjects ¶
func (c *Client) GetProjectGroupProjects(ctx context.Context, projectGroupRef string) ([]*gwapitypes.ProjectResponse, *http.Response, error)
func (*Client) GetProjectGroupSecrets ¶ added in v0.3.0
func (c *Client) GetProjectGroupSecrets(ctx context.Context, projectRef string, tree, removeoverridden bool) ([]*gwapitypes.SecretResponse, *http.Response, error)
func (*Client) GetProjectGroupSubgroups ¶
func (c *Client) GetProjectGroupSubgroups(ctx context.Context, projectGroupRef string) ([]*gwapitypes.ProjectGroupResponse, *http.Response, error)
func (*Client) GetProjectGroupVariables ¶ added in v0.3.0
func (c *Client) GetProjectGroupVariables(ctx context.Context, projectRef string, tree, removeoverridden bool) ([]*gwapitypes.VariableResponse, *http.Response, error)
func (*Client) GetProjectSecrets ¶ added in v0.3.0
func (c *Client) GetProjectSecrets(ctx context.Context, projectRef string, tree, removeoverridden bool) ([]*gwapitypes.SecretResponse, *http.Response, error)
func (*Client) GetProjectVariables ¶ added in v0.3.0
func (c *Client) GetProjectVariables(ctx context.Context, projectRef string, tree, removeoverridden bool) ([]*gwapitypes.VariableResponse, *http.Response, error)
func (*Client) GetRemoteSource ¶
func (c *Client) GetRemoteSource(ctx context.Context, rsRef string) (*gwapitypes.RemoteSourceResponse, *http.Response, error)
func (*Client) GetRemoteSources ¶
func (*Client) GetRun ¶
func (c *Client) GetRun(ctx context.Context, runID string) (*gwapitypes.RunResponse, *http.Response, error)
func (*Client) GetRunTask ¶ added in v0.4.0
func (c *Client) GetRunTask(ctx context.Context, runID, taskID string) (*gwapitypes.RunTaskResponse, *http.Response, error)
func (*Client) GetUser ¶
func (c *Client) GetUser(ctx context.Context, userRef string) (*gwapitypes.UserResponse, *http.Response, error)
func (*Client) GetVersion ¶ added in v0.3.0
func (c *Client) GetVersion(ctx context.Context) (*gwapitypes.VersionResponse, *http.Response, error)
func (*Client) ProjectCreateRun ¶
func (c *Client) ProjectCreateRun(ctx context.Context, projectRef string, req *gwapitypes.ProjectCreateRunRequest) (*http.Response, error)
func (*Client) ReconfigProject ¶
func (*Client) RegisterUser ¶
func (c *Client) RegisterUser(ctx context.Context, req *gwapitypes.RegisterUserRequest) (*gwapitypes.RegisterUserResponse, *http.Response, error)
func (*Client) RemoveOrgMember ¶
func (*Client) SetHTTPClient ¶
SetHTTPClient replaces default http.Client with user given one.
func (*Client) UpdateProject ¶ added in v0.3.0
func (c *Client) UpdateProject(ctx context.Context, projectRef string, req *gwapitypes.UpdateProjectRequest) (*gwapitypes.ProjectResponse, *http.Response, error)
func (*Client) UpdateProjectGroup ¶ added in v0.3.0
func (c *Client) UpdateProjectGroup(ctx context.Context, projectGroupRef string, req *gwapitypes.UpdateProjectGroupRequest) (*gwapitypes.ProjectResponse, *http.Response, error)
func (*Client) UpdateProjectGroupSecret ¶
func (c *Client) UpdateProjectGroupSecret(ctx context.Context, projectGroupRef, secretName string, req *gwapitypes.UpdateSecretRequest) (*gwapitypes.SecretResponse, *http.Response, error)
func (*Client) UpdateProjectGroupVariable ¶
func (c *Client) UpdateProjectGroupVariable(ctx context.Context, projectGroupRef, variableName string, req *gwapitypes.UpdateVariableRequest) (*gwapitypes.VariableResponse, *http.Response, error)
func (*Client) UpdateProjectSecret ¶
func (c *Client) UpdateProjectSecret(ctx context.Context, projectRef, secretName string, req *gwapitypes.UpdateSecretRequest) (*gwapitypes.SecretResponse, *http.Response, error)
func (*Client) UpdateProjectVariable ¶
func (c *Client) UpdateProjectVariable(ctx context.Context, projectRef, variableName string, req *gwapitypes.UpdateVariableRequest) (*gwapitypes.VariableResponse, *http.Response, error)
func (*Client) UpdateRemoteSource ¶
func (c *Client) UpdateRemoteSource(ctx context.Context, rsRef string, req *gwapitypes.UpdateRemoteSourceRequest) (*gwapitypes.RemoteSourceResponse, *http.Response, error)
func (*Client) UserCreateRun ¶
func (c *Client) UserCreateRun(ctx context.Context, req *gwapitypes.UserCreateRunRequest) (*http.Response, error)
Click to show internal directories.
Click to hide internal directories.