Documentation
¶
Index ¶
- func GenerateAddMemberOptions(p *v1alpha1.MemberParameters) *gitlab.AddGroupMemberOptions
- func GenerateAddSamlGroupLinkObservation(samlGroupLink *gitlab.SAMLGroupLink) v1alpha1.SamlGroupLinkObservation
- func GenerateAddSamlGroupLinkOptions(p *v1alpha1.SamlGroupLinkParameters) *gitlab.AddGroupSAMLLinkOptions
- func GenerateCreateGroupAccessTokenOptions(name string, p *v1alpha1.AccessTokenParameters) *gitlab.CreateGroupAccessTokenOptions
- func GenerateCreateGroupDeployTokenOptions(name string, p *v1alpha1.DeployTokenParameters) *gitlab.CreateGroupDeployTokenOptions
- func GenerateCreateGroupOptions(name string, p *v1alpha1.GroupParameters) *gitlab.CreateGroupOptions
- func GenerateCreateVariableOptions(p *v1alpha1.VariableParameters) *gitlab.CreateGroupVariableOptions
- func GenerateEditGroupOptions(name string, p *v1alpha1.GroupParameters) *gitlab.UpdateGroupOptions
- func GenerateEditMemberOptions(p *v1alpha1.MemberParameters) *gitlab.EditGroupMemberOptions
- func GenerateGetVariableOptions(p *v1alpha1.VariableParameters) *gitlab.GetGroupVariableOptions
- func GenerateMemberObservation(groupMember *gitlab.GroupMember) v1alpha1.MemberObservation
- func GenerateObservation(grp *gitlab.Group) v1alpha1.GroupObservation
- func GenerateUpdateVariableOptions(p *v1alpha1.VariableParameters) *gitlab.UpdateGroupVariableOptions
- func GenerateVariableFilter(p *v1alpha1.VariableParameters) *gitlab.VariableFilter
- func IsErrorGroupAccessTokenNotFound(err error) bool
- func IsErrorGroupDeployTokenNotFound(err error) bool
- func IsErrorGroupNotFound(err error) bool
- func IsErrorMemberNotFound(err error) bool
- func IsErrorSamlGroupLinkNotFound(err error) bool
- func IsErrorVariableNotFound(err error) bool
- func IsVariableUpToDate(p *v1alpha1.VariableParameters, g *gitlab.GroupVariable) bool
- func LateInitializeVariable(in *v1alpha1.VariableParameters, variable *gitlab.GroupVariable)
- func ProjectCreationLevelValueV1alpha1ToGitlab(from *v1alpha1.ProjectCreationLevelValue) *gitlab.ProjectCreationLevelValue
- func SubGroupCreationLevelValueV1alpha1ToGitlab(from *v1alpha1.SubGroupCreationLevelValue) *gitlab.SubGroupCreationLevelValue
- func VariableToParameters(in gitlab.GroupVariable) v1alpha1.VariableParameters
- func VisibilityValueV1alpha1ToGitlab(from *v1alpha1.VisibilityValue) *gitlab.VisibilityValue
- type AccessTokenClient
- type Client
- type DeployTokenClient
- type MemberClient
- type SamlGroupLinkClient
- type VariableClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAddMemberOptions ¶
func GenerateAddMemberOptions(p *v1alpha1.MemberParameters) *gitlab.AddGroupMemberOptions
GenerateAddMemberOptions generates group member add options
func GenerateAddSamlGroupLinkObservation ¶
func GenerateAddSamlGroupLinkObservation(samlGroupLink *gitlab.SAMLGroupLink) v1alpha1.SamlGroupLinkObservation
GenerateAddSamlGroupLinkObservation is used to produce v1alpha1.SamlGroupLinkbObservation
func GenerateAddSamlGroupLinkOptions ¶
func GenerateAddSamlGroupLinkOptions(p *v1alpha1.SamlGroupLinkParameters) *gitlab.AddGroupSAMLLinkOptions
GenerateAddSamlGroupLinkOptions is used to produce Options for SamlGroupLink creation
func GenerateCreateGroupAccessTokenOptions ¶
func GenerateCreateGroupAccessTokenOptions(name string, p *v1alpha1.AccessTokenParameters) *gitlab.CreateGroupAccessTokenOptions
GenerateCreateGroupAccessTokenOptions generates project creation options
func GenerateCreateGroupDeployTokenOptions ¶
func GenerateCreateGroupDeployTokenOptions(name string, p *v1alpha1.DeployTokenParameters) *gitlab.CreateGroupDeployTokenOptions
GenerateCreateGroupDeployTokenOptions generates group creation options
func GenerateCreateGroupOptions ¶
func GenerateCreateGroupOptions(name string, p *v1alpha1.GroupParameters) *gitlab.CreateGroupOptions
GenerateCreateGroupOptions generates group creation options
func GenerateCreateVariableOptions ¶
func GenerateCreateVariableOptions(p *v1alpha1.VariableParameters) *gitlab.CreateGroupVariableOptions
GenerateCreateVariableOptions generates group creation options
func GenerateEditGroupOptions ¶
func GenerateEditGroupOptions(name string, p *v1alpha1.GroupParameters) *gitlab.UpdateGroupOptions
GenerateEditGroupOptions generates group edit options
func GenerateEditMemberOptions ¶
func GenerateEditMemberOptions(p *v1alpha1.MemberParameters) *gitlab.EditGroupMemberOptions
GenerateEditMemberOptions generates group member edit options
func GenerateGetVariableOptions ¶
func GenerateGetVariableOptions(p *v1alpha1.VariableParameters) *gitlab.GetGroupVariableOptions
GenerateGetVariableOptions generates group get options
func GenerateMemberObservation ¶
func GenerateMemberObservation(groupMember *gitlab.GroupMember) v1alpha1.MemberObservation
GenerateMemberObservation is used to produce v1alpha1.MemberObservation from gitlab.Member.
func GenerateObservation ¶
func GenerateObservation(grp *gitlab.Group) v1alpha1.GroupObservation
GenerateObservation is used to produce v1alpha1.GroupGitLabObservation from gitlab.Group.
func GenerateUpdateVariableOptions ¶
func GenerateUpdateVariableOptions(p *v1alpha1.VariableParameters) *gitlab.UpdateGroupVariableOptions
GenerateUpdateVariableOptions generates group update options
func GenerateVariableFilter ¶
func GenerateVariableFilter(p *v1alpha1.VariableParameters) *gitlab.VariableFilter
GenerateVariableFilter generates a variable filter that matches the variable parameters' environment scope.
func IsErrorGroupAccessTokenNotFound ¶
IsErrorGroupAccessTokenNotFound helper function to test for errGroupAccessTokenNotFound error.
func IsErrorGroupDeployTokenNotFound ¶
IsErrorGroupDeployTokenNotFound helper function to test for errGroupDeployTokenNotFound error.
func IsErrorGroupNotFound ¶
IsErrorGroupNotFound helper function to test for errGroupNotFound error.
func IsErrorMemberNotFound ¶
IsErrorMemberNotFound helper function to test for errMemberNotFound error.
func IsErrorSamlGroupLinkNotFound ¶
IsErrorSamlGroupLinkNotFound helper function to test for errSamlGroupLinkNotFound error.
func IsErrorVariableNotFound ¶
IsErrorVariableNotFound helper function to test for errGroupNotFound error.
func IsVariableUpToDate ¶
func IsVariableUpToDate(p *v1alpha1.VariableParameters, g *gitlab.GroupVariable) bool
IsVariableUpToDate checks whether there is a change in any of the modifiable fields.
func LateInitializeVariable ¶
func LateInitializeVariable(in *v1alpha1.VariableParameters, variable *gitlab.GroupVariable)
LateInitializeVariable fills the empty fields in the groupVariable spec with the values seen in gitlab.Variable.
func ProjectCreationLevelValueV1alpha1ToGitlab ¶
func ProjectCreationLevelValueV1alpha1ToGitlab(from *v1alpha1.ProjectCreationLevelValue) *gitlab.ProjectCreationLevelValue
ProjectCreationLevelValueV1alpha1ToGitlab converts *v1alpha1.ProjectCreationLevelValue to *gitlab.ProjectCreationLevelValue
func SubGroupCreationLevelValueV1alpha1ToGitlab ¶
func SubGroupCreationLevelValueV1alpha1ToGitlab(from *v1alpha1.SubGroupCreationLevelValue) *gitlab.SubGroupCreationLevelValue
SubGroupCreationLevelValueV1alpha1ToGitlab converts *v1alpha1.SubGroupCreationLevelValue to *gitlab.SubGroupCreationLevelValue
func VariableToParameters ¶
func VariableToParameters(in gitlab.GroupVariable) v1alpha1.VariableParameters
VariableToParameters coonverts a GitLab API representation of a Group Variable back into our local VariableParameters format
func VisibilityValueV1alpha1ToGitlab ¶
func VisibilityValueV1alpha1ToGitlab(from *v1alpha1.VisibilityValue) *gitlab.VisibilityValue
VisibilityValueV1alpha1ToGitlab converts *v1alpha1.VisibilityValue to *gitlab.VisibilityValue
Types ¶
type AccessTokenClient ¶
type AccessTokenClient interface {
GetGroupAccessToken(pid interface{}, id int, options ...gitlab.RequestOptionFunc) (*gitlab.GroupAccessToken, *gitlab.Response, error)
CreateGroupAccessToken(pid interface{}, opt *gitlab.CreateGroupAccessTokenOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupAccessToken, *gitlab.Response, error)
RevokeGroupAccessToken(pid interface{}, id int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}
AccessTokenClient defines Gitlab Group service operations
func NewAccessTokenClient ¶
func NewAccessTokenClient(cfg common.Config) AccessTokenClient
NewAccessTokenClient returns a new Gitlab GroupAccessToken service
type Client ¶
type Client interface {
GetGroup(gid interface{}, opt *gitlab.GetGroupOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Group, *gitlab.Response, error)
CreateGroup(opt *gitlab.CreateGroupOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Group, *gitlab.Response, error)
UpdateGroup(gid interface{}, opt *gitlab.UpdateGroupOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Group, *gitlab.Response, error)
DeleteGroup(gid interface{}, opt *gitlab.DeleteGroupOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}
Client defines Gitlab Group service operations
func NewGroupClient ¶
NewGroupClient returns a new Gitlab Group service
type DeployTokenClient ¶
type DeployTokenClient interface {
GetGroupDeployToken(gid interface{}, deployToken int, options ...gitlab.RequestOptionFunc) (*gitlab.DeployToken, *gitlab.Response, error)
CreateGroupDeployToken(gid interface{}, opt *gitlab.CreateGroupDeployTokenOptions, options ...gitlab.RequestOptionFunc) (*gitlab.DeployToken, *gitlab.Response, error)
DeleteGroupDeployToken(gid interface{}, deployToken int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}
DeployTokenClient defines Gitlab Group service operations
func NewDeployTokenClient ¶
func NewDeployTokenClient(cfg common.Config) DeployTokenClient
NewDeployTokenClient returns a new Gitlab GroupDeployToken service
type MemberClient ¶
type MemberClient interface {
GetGroupMember(gid interface{}, user int, options ...gitlab.RequestOptionFunc) (*gitlab.GroupMember, *gitlab.Response, error)
AddGroupMember(gid interface{}, opt *gitlab.AddGroupMemberOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupMember, *gitlab.Response, error)
EditGroupMember(gid interface{}, user int, opt *gitlab.EditGroupMemberOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupMember, *gitlab.Response, error)
RemoveGroupMember(gid interface{}, user int, opt *gitlab.RemoveGroupMemberOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}
MemberClient defines Gitlab Member service operations
func NewMemberClient ¶
func NewMemberClient(cfg common.Config) MemberClient
NewMemberClient returns a new Gitlab Group Member service
type SamlGroupLinkClient ¶
type SamlGroupLinkClient interface {
GetGroupSAMLLink(gid interface{}, samlGroupName string, options ...gitlab.RequestOptionFunc) (*gitlab.SAMLGroupLink, *gitlab.Response, error)
AddGroupSAMLLink(gid interface{}, opt *gitlab.AddGroupSAMLLinkOptions, options ...gitlab.RequestOptionFunc) (*gitlab.SAMLGroupLink, *gitlab.Response, error)
DeleteGroupSAMLLink(gid interface{}, samlGroupName string, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}
SamlGroupLinkClient defines Gitlab Saml Group Link Service Operations
func NewSamlGroupLinkClient ¶
func NewSamlGroupLinkClient(cfg common.Config) SamlGroupLinkClient
NewSamlGroupLinkClient returns a new Giltab Group Service
type VariableClient ¶
type VariableClient interface {
ListVariables(gid interface{}, opt *gitlab.ListGroupVariablesOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.GroupVariable, *gitlab.Response, error)
GetVariable(gid interface{}, key string, opt *gitlab.GetGroupVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupVariable, *gitlab.Response, error)
CreateVariable(gid interface{}, opt *gitlab.CreateGroupVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupVariable, *gitlab.Response, error)
UpdateVariable(gid interface{}, key string, opt *gitlab.UpdateGroupVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupVariable, *gitlab.Response, error)
RemoveVariable(gid interface{}, key string, opt *gitlab.RemoveGroupVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}
VariableClient defines Gitlab Variable service operations
func NewVariableClient ¶
func NewVariableClient(cfg common.Config) VariableClient
NewVariableClient returns a new Gitlab Group service