client

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(url string) *Client

NewClient initializes and returns a API client.

func (*Client) AddOrgMember

func (c *Client) AddOrgMember(ctx context.Context, orgRef, userRef string, role cstypes.MemberRole) (*cstypes.OrganizationMember, *http.Response, error)

func (*Client) CreateOrg

func (*Client) CreateProjectGroupSecret

func (c *Client) CreateProjectGroupSecret(ctx context.Context, projectGroupRef string, req *csapitypes.CreateUpdateSecretRequest) (*csapitypes.Secret, *http.Response, error)

func (*Client) CreateProjectGroupVariable

func (c *Client) CreateProjectGroupVariable(ctx context.Context, projectGroupRef string, req *csapitypes.CreateUpdateVariableRequest) (*csapitypes.Variable, *http.Response, error)

func (*Client) CreateProjectSecret

func (c *Client) CreateProjectSecret(ctx context.Context, projectRef string, req *csapitypes.CreateUpdateSecretRequest) (*csapitypes.Secret, *http.Response, error)

func (*Client) CreateProjectVariable

func (c *Client) CreateProjectVariable(ctx context.Context, projectRef string, req *csapitypes.CreateUpdateVariableRequest) (*csapitypes.Variable, *http.Response, error)

func (*Client) CreateUser

func (*Client) CreateUserLA

func (*Client) DeleteOrg

func (c *Client) DeleteOrg(ctx context.Context, orgRef string) (*http.Response, error)

func (*Client) DeleteProject

func (c *Client) DeleteProject(ctx context.Context, projectRef string) (*http.Response, error)

func (*Client) DeleteProjectGroup

func (c *Client) DeleteProjectGroup(ctx context.Context, projectGroupRef string) (*http.Response, error)

func (*Client) DeleteProjectGroupSecret

func (c *Client) DeleteProjectGroupSecret(ctx context.Context, projectGroupRef, secretName string) (*http.Response, error)

func (*Client) DeleteProjectGroupVariable

func (c *Client) DeleteProjectGroupVariable(ctx context.Context, projectGroupRef, variableName string) (*http.Response, error)

func (*Client) DeleteProjectSecret

func (c *Client) DeleteProjectSecret(ctx context.Context, projectRef, secretName string) (*http.Response, error)

func (*Client) DeleteProjectVariable

func (c *Client) DeleteProjectVariable(ctx context.Context, projectRef, variableName string) (*http.Response, error)

func (*Client) DeleteRemoteSource

func (c *Client) DeleteRemoteSource(ctx context.Context, rsRef string) (*http.Response, error)

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, userRef string) (*http.Response, error)

func (*Client) DeleteUserLA

func (c *Client) DeleteUserLA(ctx context.Context, userRef, laID string) (*http.Response, error)

func (*Client) DeleteUserToken

func (c *Client) DeleteUserToken(ctx context.Context, userRef, tokenName string) (*http.Response, error)

func (*Client) GetOrg

func (c *Client) GetOrg(ctx context.Context, orgRef string) (*cstypes.Organization, *http.Response, error)

func (*Client) GetOrgMembers

func (c *Client) GetOrgMembers(ctx context.Context, orgRef string) ([]*csapitypes.OrgMemberResponse, *http.Response, error)

func (*Client) GetOrgs

func (c *Client) GetOrgs(ctx context.Context, start string, limit int, asc bool) ([]*cstypes.Organization, *http.Response, error)

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, projectRef string) (*csapitypes.Project, *http.Response, error)

func (*Client) GetProjectGroup

func (c *Client) GetProjectGroup(ctx context.Context, projectGroupRef string) (*csapitypes.ProjectGroup, *http.Response, error)

func (*Client) GetProjectGroupProjects

func (c *Client) GetProjectGroupProjects(ctx context.Context, projectGroupRef string) ([]*csapitypes.Project, *http.Response, error)

func (*Client) GetProjectGroupSecrets

func (c *Client) GetProjectGroupSecrets(ctx context.Context, projectGroupRef string, tree bool) ([]*csapitypes.Secret, *http.Response, error)

func (*Client) GetProjectGroupSubgroups

func (c *Client) GetProjectGroupSubgroups(ctx context.Context, projectGroupRef string) ([]*csapitypes.ProjectGroup, *http.Response, error)

func (*Client) GetProjectGroupVariables

func (c *Client) GetProjectGroupVariables(ctx context.Context, projectGroupRef string, tree bool) ([]*csapitypes.Variable, *http.Response, error)

func (*Client) GetProjectSecrets

func (c *Client) GetProjectSecrets(ctx context.Context, projectRef string, tree bool) ([]*csapitypes.Secret, *http.Response, error)

func (*Client) GetProjectVariables

func (c *Client) GetProjectVariables(ctx context.Context, projectRef string, tree bool) ([]*csapitypes.Variable, *http.Response, error)

func (*Client) GetRemoteSource

func (c *Client) GetRemoteSource(ctx context.Context, rsRef string) (*cstypes.RemoteSource, *http.Response, error)

func (*Client) GetRemoteSources

func (c *Client) GetRemoteSources(ctx context.Context, start string, limit int, asc bool) ([]*cstypes.RemoteSource, *http.Response, error)

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, userRef string) (*cstypes.User, *http.Response, error)

func (*Client) GetUserByLinkedAccount

func (c *Client) GetUserByLinkedAccount(ctx context.Context, linkedAccountID string) (*cstypes.User, *http.Response, error)

func (*Client) GetUserByLinkedAccountRemoteUserAndSource

func (c *Client) GetUserByLinkedAccountRemoteUserAndSource(ctx context.Context, remoteUserID, remoteSourceID string) (*cstypes.User, *http.Response, error)

func (*Client) GetUserByToken

func (c *Client) GetUserByToken(ctx context.Context, token string) (*cstypes.User, *http.Response, error)

func (*Client) GetUserOrgs

func (c *Client) GetUserOrgs(ctx context.Context, userRef string) ([]*csapitypes.UserOrgsResponse, *http.Response, error)

func (*Client) GetUsers

func (c *Client) GetUsers(ctx context.Context, start string, limit int, asc bool) ([]*cstypes.User, *http.Response, error)

func (*Client) RemoveOrgMember

func (c *Client) RemoveOrgMember(ctx context.Context, orgRef, userRef string) (*http.Response, error)

func (*Client) SetHTTPClient

func (c *Client) SetHTTPClient(client *http.Client)

SetHTTPClient replaces default http.Client with user given one.

func (*Client) UpdateProject

func (c *Client) UpdateProject(ctx context.Context, projectRef string, req *csapitypes.CreateUpdateProjectRequest) (*csapitypes.Project, *http.Response, error)

func (*Client) UpdateProjectGroup

func (c *Client) UpdateProjectGroup(ctx context.Context, projectGroupRef string, req *csapitypes.CreateUpdateProjectGroupRequest) (*csapitypes.ProjectGroup, *http.Response, error)

func (*Client) UpdateProjectGroupSecret

func (c *Client) UpdateProjectGroupSecret(ctx context.Context, projectGroupRef, secretName string, req *csapitypes.CreateUpdateSecretRequest) (*csapitypes.Secret, *http.Response, error)

func (*Client) UpdateProjectGroupVariable

func (c *Client) UpdateProjectGroupVariable(ctx context.Context, projectGroupRef, variableName string, req *csapitypes.CreateUpdateVariableRequest) (*csapitypes.Variable, *http.Response, error)

func (*Client) UpdateProjectSecret

func (c *Client) UpdateProjectSecret(ctx context.Context, projectRef, secretName string, req *csapitypes.CreateUpdateSecretRequest) (*csapitypes.Secret, *http.Response, error)

func (*Client) UpdateProjectVariable

func (c *Client) UpdateProjectVariable(ctx context.Context, projectRef, variableName string, req *csapitypes.CreateUpdateVariableRequest) (*csapitypes.Variable, *http.Response, error)

func (*Client) UpdateRemoteSource

func (c *Client) UpdateRemoteSource(ctx context.Context, remoteSourceRef string, req *csapitypes.CreateUpdateRemoteSourceRequest) (*cstypes.RemoteSource, *http.Response, error)

func (*Client) UpdateUser

func (c *Client) UpdateUser(ctx context.Context, userRef string, req *csapitypes.UpdateUserRequest) (*cstypes.User, *http.Response, error)

func (*Client) UpdateUserLA

func (c *Client) UpdateUserLA(ctx context.Context, userRef, laID string, req *csapitypes.UpdateUserLARequest) (*cstypes.LinkedAccount, *http.Response, error)

Source Files

Jump to

Keyboard shortcuts

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