Documentation
¶
Index ¶
- type Client
- func (c *Client) AddOrgMember(ctx context.Context, orgRef, userRef string, role cstypes.MemberRole) (*cstypes.OrganizationMember, *http.Response, error)
- func (c *Client) CreateOrg(ctx context.Context, req *csapitypes.CreateOrgRequest) (*cstypes.Organization, *http.Response, error)
- func (c *Client) CreateOrgInvitation(ctx context.Context, orgRef string, req *csapitypes.CreateOrgInvitationRequest) (*cstypes.OrgInvitation, *http.Response, error)
- func (c *Client) CreateProject(ctx context.Context, req *csapitypes.CreateUpdateProjectRequest) (*csapitypes.Project, *http.Response, error)
- func (c *Client) CreateProjectGroup(ctx context.Context, req *csapitypes.CreateUpdateProjectGroupRequest) (*csapitypes.ProjectGroup, *http.Response, error)
- func (c *Client) CreateProjectGroupSecret(ctx context.Context, projectGroupRef string, ...) (*csapitypes.Secret, *http.Response, error)
- func (c *Client) CreateProjectGroupVariable(ctx context.Context, projectGroupRef string, ...) (*csapitypes.Variable, *http.Response, error)
- func (c *Client) CreateProjectSecret(ctx context.Context, projectRef string, ...) (*csapitypes.Secret, *http.Response, error)
- func (c *Client) CreateProjectVariable(ctx context.Context, projectRef string, ...) (*csapitypes.Variable, *http.Response, error)
- func (c *Client) CreateRemoteSource(ctx context.Context, req *csapitypes.CreateUpdateRemoteSourceRequest) (*cstypes.RemoteSource, *http.Response, error)
- func (c *Client) CreateUser(ctx context.Context, req *csapitypes.CreateUserRequest) (*cstypes.User, *http.Response, error)
- func (c *Client) CreateUserLA(ctx context.Context, userRef string, req *csapitypes.CreateUserLARequest) (*cstypes.LinkedAccount, *http.Response, error)
- func (c *Client) CreateUserToken(ctx context.Context, userRef string, req *csapitypes.CreateUserTokenRequest) (*csapitypes.CreateUserTokenResponse, *http.Response, error)
- func (c *Client) DeleteOrg(ctx context.Context, orgRef string) (*http.Response, error)
- func (c *Client) DeleteOrgInvitation(ctx context.Context, orgRef string, userRef 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) DisableMaintenance(ctx context.Context) (*http.Response, error)
- func (c *Client) EnableMaintenance(ctx context.Context) (*http.Response, error)
- func (c *Client) Export(ctx context.Context) (*http.Response, error)
- func (c *Client) GetLinkedAccountByRemoteUserAndSource(ctx context.Context, remoteUserID, remoteSourceID string) (*cstypes.LinkedAccount, *http.Response, error)
- func (c *Client) GetMaintenanceStatus(ctx context.Context) (*csapitypes.MaintenanceStatusResponse, *http.Response, error)
- func (c *Client) GetOrg(ctx context.Context, orgRef string) (*cstypes.Organization, *http.Response, error)
- func (c *Client) GetOrgInvitation(ctx context.Context, orgRef string, userRef string) (*cstypes.OrgInvitation, *http.Response, error)
- func (c *Client) GetOrgInvitations(ctx context.Context, orgRef string, limit int) ([]*cstypes.OrgInvitation, *http.Response, error)
- func (c *Client) GetOrgMembers(ctx context.Context, orgRef string) ([]*csapitypes.OrgMemberResponse, *http.Response, error)
- func (c *Client) GetOrgs(ctx context.Context, start string, limit int, asc bool) ([]*cstypes.Organization, *http.Response, error)
- func (c *Client) GetProject(ctx context.Context, projectRef string) (*csapitypes.Project, *http.Response, error)
- func (c *Client) GetProjectGroup(ctx context.Context, projectGroupRef string) (*csapitypes.ProjectGroup, *http.Response, error)
- func (c *Client) GetProjectGroupProjects(ctx context.Context, projectGroupRef string) ([]*csapitypes.Project, *http.Response, error)
- func (c *Client) GetProjectGroupSecrets(ctx context.Context, projectGroupRef string, tree bool) ([]*csapitypes.Secret, *http.Response, error)
- func (c *Client) GetProjectGroupSubgroups(ctx context.Context, projectGroupRef string) ([]*csapitypes.ProjectGroup, *http.Response, error)
- func (c *Client) GetProjectGroupVariables(ctx context.Context, projectGroupRef string, tree bool) ([]*csapitypes.Variable, *http.Response, error)
- func (c *Client) GetProjectSecrets(ctx context.Context, projectRef string, tree bool) ([]*csapitypes.Secret, *http.Response, error)
- func (c *Client) GetProjectVariables(ctx context.Context, projectRef string, tree bool) ([]*csapitypes.Variable, *http.Response, error)
- func (c *Client) GetRemoteSource(ctx context.Context, rsRef string) (*cstypes.RemoteSource, *http.Response, error)
- func (c *Client) GetRemoteSources(ctx context.Context, start string, limit int, asc bool) ([]*cstypes.RemoteSource, *http.Response, error)
- func (c *Client) GetUser(ctx context.Context, userRef string) (*cstypes.User, *http.Response, error)
- func (c *Client) GetUserByLinkedAccount(ctx context.Context, linkedAccountID string) (*cstypes.User, *http.Response, error)
- func (c *Client) GetUserByLinkedAccountRemoteUserAndSource(ctx context.Context, remoteUserID, remoteSourceID string) (*cstypes.User, *http.Response, error)
- func (c *Client) GetUserByToken(ctx context.Context, token string) (*cstypes.User, *http.Response, error)
- func (c *Client) GetUserLinkedAccounts(ctx context.Context, userRef string) ([]*cstypes.LinkedAccount, *http.Response, error)
- func (c *Client) GetUserOrgInvitations(ctx context.Context, userRef string, limit int) ([]*cstypes.OrgInvitation, *http.Response, error)
- func (c *Client) GetUserOrgs(ctx context.Context, userRef string) ([]*csapitypes.UserOrgsResponse, *http.Response, error)
- func (c *Client) GetUserTokens(ctx context.Context, userRef string) ([]*cstypes.UserToken, *http.Response, error)
- func (c *Client) GetUsers(ctx context.Context, start string, limit int, asc bool) ([]*cstypes.User, *http.Response, error)
- func (c *Client) Import(ctx context.Context, r io.Reader) (*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) UpdateOrg(ctx context.Context, orgRef string, req *csapitypes.UpdateOrgRequest) (*cstypes.Organization, *http.Response, error)
- func (c *Client) UpdateProject(ctx context.Context, projectRef string, ...) (*csapitypes.Project, *http.Response, error)
- func (c *Client) UpdateProjectGroup(ctx context.Context, projectGroupRef string, ...) (*csapitypes.ProjectGroup, *http.Response, error)
- func (c *Client) UpdateProjectGroupSecret(ctx context.Context, projectGroupRef, secretName string, ...) (*csapitypes.Secret, *http.Response, error)
- func (c *Client) UpdateProjectGroupVariable(ctx context.Context, projectGroupRef, variableName string, ...) (*csapitypes.Variable, *http.Response, error)
- func (c *Client) UpdateProjectSecret(ctx context.Context, projectRef, secretName string, ...) (*csapitypes.Secret, *http.Response, error)
- func (c *Client) UpdateProjectVariable(ctx context.Context, projectRef, variableName string, ...) (*csapitypes.Variable, *http.Response, error)
- func (c *Client) UpdateRemoteSource(ctx context.Context, remoteSourceRef string, ...) (*cstypes.RemoteSource, *http.Response, error)
- func (c *Client) UpdateUser(ctx context.Context, userRef string, req *csapitypes.UpdateUserRequest) (*cstypes.User, *http.Response, error)
- func (c *Client) UpdateUserLA(ctx context.Context, userRef, laID string, req *csapitypes.UpdateUserLARequest) (*cstypes.LinkedAccount, *http.Response, error)
- func (c *Client) UserOrgInvitationAction(ctx context.Context, userRef string, orgRef string, ...) (*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 (*Client) CreateOrg ¶
func (c *Client) CreateOrg(ctx context.Context, req *csapitypes.CreateOrgRequest) (*cstypes.Organization, *http.Response, error)
func (*Client) CreateOrgInvitation ¶ added in v0.8.0
func (c *Client) CreateOrgInvitation(ctx context.Context, orgRef string, req *csapitypes.CreateOrgInvitationRequest) (*cstypes.OrgInvitation, *http.Response, error)
func (*Client) CreateProject ¶
func (c *Client) CreateProject(ctx context.Context, req *csapitypes.CreateUpdateProjectRequest) (*csapitypes.Project, *http.Response, error)
func (*Client) CreateProjectGroup ¶
func (c *Client) CreateProjectGroup(ctx context.Context, req *csapitypes.CreateUpdateProjectGroupRequest) (*csapitypes.ProjectGroup, *http.Response, error)
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) CreateRemoteSource ¶
func (c *Client) CreateRemoteSource(ctx context.Context, req *csapitypes.CreateUpdateRemoteSourceRequest) (*cstypes.RemoteSource, *http.Response, error)
func (*Client) CreateUser ¶
func (c *Client) CreateUser(ctx context.Context, req *csapitypes.CreateUserRequest) (*cstypes.User, *http.Response, error)
func (*Client) CreateUserLA ¶
func (c *Client) CreateUserLA(ctx context.Context, userRef string, req *csapitypes.CreateUserLARequest) (*cstypes.LinkedAccount, *http.Response, error)
func (*Client) CreateUserToken ¶
func (c *Client) CreateUserToken(ctx context.Context, userRef string, req *csapitypes.CreateUserTokenRequest) (*csapitypes.CreateUserTokenResponse, *http.Response, error)
func (*Client) DeleteOrgInvitation ¶ added in v0.8.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) DisableMaintenance ¶ added in v0.8.0
func (*Client) EnableMaintenance ¶ added in v0.8.0
func (*Client) GetLinkedAccountByRemoteUserAndSource ¶ added in v0.8.0
func (*Client) GetMaintenanceStatus ¶ added in v0.8.0
func (c *Client) GetMaintenanceStatus(ctx context.Context) (*csapitypes.MaintenanceStatusResponse, *http.Response, error)
func (*Client) GetOrgInvitation ¶ added in v0.8.0
func (*Client) GetOrgInvitations ¶ added in v0.8.0
func (*Client) GetOrgMembers ¶
func (c *Client) GetOrgMembers(ctx context.Context, orgRef string) ([]*csapitypes.OrgMemberResponse, *http.Response, error)
func (*Client) GetProject ¶
func (*Client) GetProjectGroup ¶
func (c *Client) GetProjectGroup(ctx context.Context, projectGroupRef string) (*csapitypes.ProjectGroup, *http.Response, error)
func (*Client) GetProjectGroupProjects ¶
func (*Client) GetProjectGroupSecrets ¶
func (*Client) GetProjectGroupSubgroups ¶
func (c *Client) GetProjectGroupSubgroups(ctx context.Context, projectGroupRef string) ([]*csapitypes.ProjectGroup, *http.Response, error)
func (*Client) GetProjectGroupVariables ¶
func (*Client) GetProjectSecrets ¶
func (*Client) GetProjectVariables ¶
func (*Client) GetRemoteSource ¶
func (*Client) GetRemoteSources ¶
func (*Client) GetUserByLinkedAccount ¶
func (*Client) GetUserByLinkedAccountRemoteUserAndSource ¶
func (*Client) GetUserByToken ¶
func (*Client) GetUserLinkedAccounts ¶ added in v0.8.0
func (*Client) GetUserOrgInvitations ¶ added in v0.8.0
func (*Client) GetUserOrgs ¶
func (c *Client) GetUserOrgs(ctx context.Context, userRef string) ([]*csapitypes.UserOrgsResponse, *http.Response, error)
func (*Client) GetUserTokens ¶ added in v0.8.0
func (*Client) RemoveOrgMember ¶
func (*Client) SetHTTPClient ¶
SetHTTPClient replaces default http.Client with user given one.
func (*Client) UpdateOrg ¶ added in v0.8.0
func (c *Client) UpdateOrg(ctx context.Context, orgRef string, req *csapitypes.UpdateOrgRequest) (*cstypes.Organization, *http.Response, error)
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 (*Client) UpdateUserLA ¶
func (c *Client) UpdateUserLA(ctx context.Context, userRef, laID string, req *csapitypes.UpdateUserLARequest) (*cstypes.LinkedAccount, *http.Response, error)
func (*Client) UserOrgInvitationAction ¶ added in v0.8.0
func (c *Client) UserOrgInvitationAction(ctx context.Context, userRef string, orgRef string, req *csapitypes.OrgInvitationActionRequest) (*http.Response, error)
Click to show internal directories.
Click to hide internal directories.