Documentation ¶
Index ¶
- type ActionHandler
- func (h *ActionHandler) AddOrgMember(ctx context.Context, orgRef, userRef string, role types.MemberRole) (*types.OrganizationMember, error)
- func (h *ActionHandler) CreateOrg(ctx context.Context, org *types.Organization) (*types.Organization, error)
- func (h *ActionHandler) CreateProject(ctx context.Context, project *types.Project) (*types.Project, error)
- func (h *ActionHandler) CreateProjectGroup(ctx context.Context, projectGroup *types.ProjectGroup) (*types.ProjectGroup, error)
- func (h *ActionHandler) CreateRemoteSource(ctx context.Context, remoteSource *types.RemoteSource) (*types.RemoteSource, error)
- func (h *ActionHandler) CreateSecret(ctx context.Context, secret *types.Secret) (*types.Secret, error)
- func (h *ActionHandler) CreateUser(ctx context.Context, req *CreateUserRequest) (*types.User, error)
- func (h *ActionHandler) CreateUserLA(ctx context.Context, req *CreateUserLARequest) (*types.LinkedAccount, error)
- func (h *ActionHandler) CreateUserToken(ctx context.Context, userRef, tokenName string) (string, error)
- func (h *ActionHandler) CreateVariable(ctx context.Context, variable *types.Variable) (*types.Variable, error)
- func (h *ActionHandler) DeleteOrg(ctx context.Context, orgRef string) error
- func (h *ActionHandler) DeleteProject(ctx context.Context, projectRef string) error
- func (h *ActionHandler) DeleteProjectGroup(ctx context.Context, projectGroupRef string) error
- func (h *ActionHandler) DeleteRemoteSource(ctx context.Context, remoteSourceName string) error
- func (h *ActionHandler) DeleteSecret(ctx context.Context, parentType types.ConfigType, parentRef, secretName string) error
- func (h *ActionHandler) DeleteUser(ctx context.Context, userRef string) error
- func (h *ActionHandler) DeleteUserLA(ctx context.Context, userRef, laID string) error
- func (h *ActionHandler) DeleteUserToken(ctx context.Context, userRef, tokenName string) error
- func (h *ActionHandler) DeleteVariable(ctx context.Context, parentType types.ConfigType, ...) error
- func (h *ActionHandler) Export(ctx context.Context, w io.Writer) error
- func (h *ActionHandler) GetOrgMembers(ctx context.Context, orgRef string) ([]*OrgMemberResponse, error)
- func (h *ActionHandler) GetProject(ctx context.Context, projectRef string) (*types.Project, error)
- func (h *ActionHandler) GetProjectGroup(ctx context.Context, projectGroupRef string) (*types.ProjectGroup, error)
- func (h *ActionHandler) GetProjectGroupProjects(ctx context.Context, projectGroupRef string) ([]*types.Project, error)
- func (h *ActionHandler) GetProjectGroupSubgroups(ctx context.Context, projectGroupRef string) ([]*types.ProjectGroup, error)
- func (h *ActionHandler) GetSecret(ctx context.Context, secretID string) (*types.Secret, error)
- func (h *ActionHandler) GetSecrets(ctx context.Context, parentType types.ConfigType, parentRef string, tree bool) ([]*types.Secret, error)
- func (h *ActionHandler) GetUserOrgs(ctx context.Context, userRef string) ([]*UserOrgsResponse, error)
- func (h *ActionHandler) GetVariables(ctx context.Context, parentType types.ConfigType, parentRef string, tree bool) ([]*types.Variable, error)
- func (h *ActionHandler) Import(ctx context.Context, r io.Reader) error
- func (h *ActionHandler) MaintenanceMode(ctx context.Context, enable bool) error
- func (h *ActionHandler) RemoveOrgMember(ctx context.Context, orgRef, userRef string) error
- func (h *ActionHandler) SetMaintenanceMode(maintenanceMode bool)
- func (h *ActionHandler) UpdateProject(ctx context.Context, req *UpdateProjectRequest) (*types.Project, error)
- func (h *ActionHandler) UpdateProjectGroup(ctx context.Context, req *UpdateProjectGroupRequest) (*types.ProjectGroup, error)
- func (h *ActionHandler) UpdateRemoteSource(ctx context.Context, req *UpdateRemoteSourceRequest) (*types.RemoteSource, error)
- func (h *ActionHandler) UpdateSecret(ctx context.Context, req *UpdateSecretRequest) (*types.Secret, error)
- func (h *ActionHandler) UpdateUser(ctx context.Context, req *UpdateUserRequest) (*types.User, error)
- func (h *ActionHandler) UpdateUserLA(ctx context.Context, req *UpdateUserLARequest) (*types.LinkedAccount, error)
- func (h *ActionHandler) UpdateVariable(ctx context.Context, req *UpdateVariableRequest) (*types.Variable, error)
- func (h *ActionHandler) ValidateProject(ctx context.Context, project *types.Project) error
- func (h *ActionHandler) ValidateProjectGroup(ctx context.Context, projectGroup *types.ProjectGroup) error
- func (h *ActionHandler) ValidateRemoteSource(ctx context.Context, remoteSource *types.RemoteSource) error
- func (h *ActionHandler) ValidateSecret(ctx context.Context, secret *types.Secret) error
- func (h *ActionHandler) ValidateVariable(ctx context.Context, variable *types.Variable) error
- type CreateUserLARequest
- type CreateUserRequest
- type OrgMemberResponse
- type UpdateProjectGroupRequest
- type UpdateProjectRequest
- type UpdateRemoteSourceRequest
- type UpdateSecretRequest
- type UpdateUserLARequest
- type UpdateUserRequest
- type UpdateVariableRequest
- type UserOrgsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionHandler ¶
type ActionHandler struct {
// contains filtered or unexported fields
}
func NewActionHandler ¶
func NewActionHandler(logger *zap.Logger, readDB *readdb.ReadDB, dm *datamanager.DataManager, e *etcd.Store) *ActionHandler
func (*ActionHandler) AddOrgMember ¶
func (h *ActionHandler) AddOrgMember(ctx context.Context, orgRef, userRef string, role types.MemberRole) (*types.OrganizationMember, error)
AddOrgMember add/updates an org member. TODO(sgotti) handle invitation when implemented
func (*ActionHandler) CreateOrg ¶
func (h *ActionHandler) CreateOrg(ctx context.Context, org *types.Organization) (*types.Organization, error)
func (*ActionHandler) CreateProject ¶
func (*ActionHandler) CreateProjectGroup ¶
func (h *ActionHandler) CreateProjectGroup(ctx context.Context, projectGroup *types.ProjectGroup) (*types.ProjectGroup, error)
func (*ActionHandler) CreateRemoteSource ¶
func (h *ActionHandler) CreateRemoteSource(ctx context.Context, remoteSource *types.RemoteSource) (*types.RemoteSource, error)
func (*ActionHandler) CreateSecret ¶
func (*ActionHandler) CreateUser ¶
func (h *ActionHandler) CreateUser(ctx context.Context, req *CreateUserRequest) (*types.User, error)
func (*ActionHandler) CreateUserLA ¶
func (h *ActionHandler) CreateUserLA(ctx context.Context, req *CreateUserLARequest) (*types.LinkedAccount, error)
func (*ActionHandler) CreateUserToken ¶
func (*ActionHandler) CreateVariable ¶
func (*ActionHandler) DeleteOrg ¶
func (h *ActionHandler) DeleteOrg(ctx context.Context, orgRef string) error
func (*ActionHandler) DeleteProject ¶
func (h *ActionHandler) DeleteProject(ctx context.Context, projectRef string) error
func (*ActionHandler) DeleteProjectGroup ¶
func (h *ActionHandler) DeleteProjectGroup(ctx context.Context, projectGroupRef string) error
func (*ActionHandler) DeleteRemoteSource ¶
func (h *ActionHandler) DeleteRemoteSource(ctx context.Context, remoteSourceName string) error
func (*ActionHandler) DeleteSecret ¶
func (h *ActionHandler) DeleteSecret(ctx context.Context, parentType types.ConfigType, parentRef, secretName string) error
func (*ActionHandler) DeleteUser ¶
func (h *ActionHandler) DeleteUser(ctx context.Context, userRef string) error
func (*ActionHandler) DeleteUserLA ¶
func (h *ActionHandler) DeleteUserLA(ctx context.Context, userRef, laID string) error
func (*ActionHandler) DeleteUserToken ¶
func (h *ActionHandler) DeleteUserToken(ctx context.Context, userRef, tokenName string) error
func (*ActionHandler) DeleteVariable ¶
func (h *ActionHandler) DeleteVariable(ctx context.Context, parentType types.ConfigType, parentRef, variableName string) error
func (*ActionHandler) GetOrgMembers ¶
func (h *ActionHandler) GetOrgMembers(ctx context.Context, orgRef string) ([]*OrgMemberResponse, error)
func (*ActionHandler) GetProject ¶ added in v0.3.0
func (*ActionHandler) GetProjectGroup ¶ added in v0.3.0
func (h *ActionHandler) GetProjectGroup(ctx context.Context, projectGroupRef string) (*types.ProjectGroup, error)
func (*ActionHandler) GetProjectGroupProjects ¶
func (*ActionHandler) GetProjectGroupSubgroups ¶
func (h *ActionHandler) GetProjectGroupSubgroups(ctx context.Context, projectGroupRef string) ([]*types.ProjectGroup, error)
func (*ActionHandler) GetSecrets ¶
func (h *ActionHandler) GetSecrets(ctx context.Context, parentType types.ConfigType, parentRef string, tree bool) ([]*types.Secret, error)
func (*ActionHandler) GetUserOrgs ¶
func (h *ActionHandler) GetUserOrgs(ctx context.Context, userRef string) ([]*UserOrgsResponse, error)
func (*ActionHandler) GetVariables ¶
func (h *ActionHandler) GetVariables(ctx context.Context, parentType types.ConfigType, parentRef string, tree bool) ([]*types.Variable, error)
func (*ActionHandler) MaintenanceMode ¶ added in v0.2.0
func (h *ActionHandler) MaintenanceMode(ctx context.Context, enable bool) error
func (*ActionHandler) RemoveOrgMember ¶
func (h *ActionHandler) RemoveOrgMember(ctx context.Context, orgRef, userRef string) error
RemoveOrgMember removes an org member.
func (*ActionHandler) SetMaintenanceMode ¶ added in v0.2.0
func (h *ActionHandler) SetMaintenanceMode(maintenanceMode bool)
func (*ActionHandler) UpdateProject ¶
func (h *ActionHandler) UpdateProject(ctx context.Context, req *UpdateProjectRequest) (*types.Project, error)
func (*ActionHandler) UpdateProjectGroup ¶
func (h *ActionHandler) UpdateProjectGroup(ctx context.Context, req *UpdateProjectGroupRequest) (*types.ProjectGroup, error)
func (*ActionHandler) UpdateRemoteSource ¶
func (h *ActionHandler) UpdateRemoteSource(ctx context.Context, req *UpdateRemoteSourceRequest) (*types.RemoteSource, error)
func (*ActionHandler) UpdateSecret ¶
func (h *ActionHandler) UpdateSecret(ctx context.Context, req *UpdateSecretRequest) (*types.Secret, error)
func (*ActionHandler) UpdateUser ¶
func (h *ActionHandler) UpdateUser(ctx context.Context, req *UpdateUserRequest) (*types.User, error)
func (*ActionHandler) UpdateUserLA ¶
func (h *ActionHandler) UpdateUserLA(ctx context.Context, req *UpdateUserLARequest) (*types.LinkedAccount, error)
func (*ActionHandler) UpdateVariable ¶
func (h *ActionHandler) UpdateVariable(ctx context.Context, req *UpdateVariableRequest) (*types.Variable, error)
func (*ActionHandler) ValidateProject ¶
func (*ActionHandler) ValidateProjectGroup ¶
func (h *ActionHandler) ValidateProjectGroup(ctx context.Context, projectGroup *types.ProjectGroup) error
func (*ActionHandler) ValidateRemoteSource ¶
func (h *ActionHandler) ValidateRemoteSource(ctx context.Context, remoteSource *types.RemoteSource) error
func (*ActionHandler) ValidateSecret ¶
func (*ActionHandler) ValidateVariable ¶
type CreateUserLARequest ¶
type CreateUserRequest ¶
type CreateUserRequest struct { UserName string CreateUserLARequest *CreateUserLARequest }
type OrgMemberResponse ¶
type OrgMemberResponse struct { User *types.User Role types.MemberRole }
type UpdateProjectGroupRequest ¶
type UpdateProjectGroupRequest struct { ProjectGroupRef string ProjectGroup *types.ProjectGroup }
type UpdateProjectRequest ¶
type UpdateRemoteSourceRequest ¶
type UpdateRemoteSourceRequest struct { RemoteSourceRef string RemoteSource *types.RemoteSource }
type UpdateSecretRequest ¶
type UpdateUserLARequest ¶
type UpdateUserRequest ¶
type UpdateVariableRequest ¶
type UserOrgsResponse ¶
type UserOrgsResponse struct { Organization *types.Organization Role types.MemberRole }
Click to show internal directories.
Click to hide internal directories.