groups

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAddGroupBadgeOptions added in v0.17.0

func GenerateAddGroupBadgeOptions(p *v1alpha1.BadgeParameters) *gitlab.AddGroupBadgeOptions

GenerateAddGroupBadgeOptions generates group creation options from v1alpha1 parameters

func GenerateAddLdapGroupLinkObservation added in v0.17.0

func GenerateAddLdapGroupLinkObservation(ldapGroupLink *gitlab.LDAPGroupLink) v1alpha1.LdapGroupLinkObservation

GenerateAddLdapGroupLinkObservation is used to produce v1alpha1.LdapGroupLinkbObservation

func GenerateAddLdapGroupLinkOptions added in v0.17.0

func GenerateAddLdapGroupLinkOptions(p *v1alpha1.LdapGroupLinkParameters) *gitlab.AddGroupLDAPLinkOptions

GenerateAddLdapGroupLinkOptions is used to produce Options for LdapGroupLink creation

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 GenerateBadgeObservation added in v0.17.0

func GenerateBadgeObservation(b *gitlab.GroupBadge) v1alpha1.BadgeObservation

GenerateBadgeObservation generates v1alpha1 observation from Gitlab GroupBadge

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 GenerateDeleteGroupLDAPLinkWithCNOrFilterOptions added in v0.17.0

func GenerateDeleteGroupLDAPLinkWithCNOrFilterOptions(p *v1alpha1.LdapGroupLinkParameters) *gitlab.DeleteGroupLDAPLinkWithCNOrFilterOptions

GenerateDeleteGroupLDAPLinkWithCNOrFilterOptions is used to produce Options for LdapGroupLink deletion

func GenerateEditGroupBadgeOptions added in v0.17.0

func GenerateEditGroupBadgeOptions(p *v1alpha1.BadgeParameters) *gitlab.EditGroupBadgeOptions

GenerateEditGroupBadgeOptions generates group edit options from v1alpha1 parameters

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 GenerateServiceAccountCreateOptions added in v0.17.0

func GenerateServiceAccountCreateOptions(p *v1alpha1.ServiceAccountParameters) *gitlab.CreateServiceAccountOptions

GenerateServiceAccountCreateOptions is used to produce CreateServiceAccountUserOptions from ServiceAccountParameters

func GenerateServiceAccountObservation added in v0.17.0

func GenerateServiceAccountObservation(u *gitlab.GroupServiceAccount) v1alpha1.ServiceAccountObservation

GenerateServiceAccountObservation is used to produce ServiceAccountObservation from Gitlab User

func GenerateServiceAccountObservationFromUser added in v0.17.0

func GenerateServiceAccountObservationFromUser(u *gitlab.User) v1alpha1.ServiceAccountObservation

GenerateServiceAccountObservationFromUser is used to produce ServiceAccountObservation from Gitlab User

func GenerateUpdateServiceAccountOptions added in v0.17.0

func GenerateUpdateServiceAccountOptions(p *v1alpha1.ServiceAccountParameters) *gitlab.UpdateServiceAccountOptions

GenerateUpdateServiceAccountOptions is used to produce ModifyUserOptions from ServiceAccountParameters

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 GenerateVariableObservation added in v0.17.0

func GenerateVariableObservation(variable *gitlab.GroupVariable) v1alpha1.VariableObservation

GenerateVariableObservation creates VariableObservation from gitlab InstanceVariable

func IsBadgeUpToDate added in v0.17.0

func IsBadgeUpToDate(spec *v1alpha1.BadgeParameters, observed *gitlab.GroupBadge) bool

IsBadgeUpToDate checks whether the observed Gitlab GroupBadge is up to date compared to the desired v1alpha1 parameters

func IsErrorGroupAccessTokenNotFound

func IsErrorGroupAccessTokenNotFound(err error) bool

IsErrorGroupAccessTokenNotFound helper function to test for errGroupAccessTokenNotFound error.

func IsErrorGroupDeployTokenNotFound

func IsErrorGroupDeployTokenNotFound(err error) bool

IsErrorGroupDeployTokenNotFound helper function to test for errGroupDeployTokenNotFound error.

func IsErrorGroupNotFound

func IsErrorGroupNotFound(err error) bool

IsErrorGroupNotFound helper function to test for errGroupNotFound error.

func IsErrorLdapGroupLinkNotFound added in v0.17.0

func IsErrorLdapGroupLinkNotFound(err error) bool

IsErrorLdapGroupLinkNotFound helper function to test for errLdapGroupLinkNotFound error.

func IsErrorMemberNotFound

func IsErrorMemberNotFound(err error) bool

IsErrorMemberNotFound helper function to test for errMemberNotFound error.

func IsErrorSamlGroupLinkNotFound

func IsErrorSamlGroupLinkNotFound(err error) bool

IsErrorSamlGroupLinkNotFound helper function to test for errSamlGroupLinkNotFound error.

func IsServiceAccountUpToDate added in v0.17.0

func IsServiceAccountUpToDate(p *v1alpha1.ServiceAccountParameters, u *gitlab.User) bool

IsServiceAccountUpToDate checks whether the ServiceAccountParameters is in sync with Gitlab User returns true if the parameters are nil or all fields are in sync

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 Variable 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 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 int64, 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 int64, 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 BadgeClient added in v0.17.0

type BadgeClient interface {
	ListGroupBadges(gid any, opt *gitlab.ListGroupBadgesOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.GroupBadge, *gitlab.Response, error)
	GetGroupBadge(gid any, badge int64, options ...gitlab.RequestOptionFunc) (*gitlab.GroupBadge, *gitlab.Response, error)
	AddGroupBadge(gid any, opt *gitlab.AddGroupBadgeOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupBadge, *gitlab.Response, error)
	EditGroupBadge(gid any, badge int64, opt *gitlab.EditGroupBadgeOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupBadge, *gitlab.Response, error)
	DeleteGroupBadge(gid any, badge int64, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
	PreviewGroupBadge(gid any, opt *gitlab.GroupBadgePreviewOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupBadge, *gitlab.Response, error)
}

GroupBadgeClient defines Gitlab Group service operations

func NewBadgeClient added in v0.17.0

func NewBadgeClient(cfg common.Config) BadgeClient

NewBadgeClient returns a new Gitlab GroupBadge 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)
	ShareGroupWithGroup(gid interface{}, opt *gitlab.ShareGroupWithGroupOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Group, *gitlab.Response, error)
	UnshareGroupFromGroup(gid interface{}, groupID int64, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}

Client defines Gitlab Group service operations

func NewGroupClient

func NewGroupClient(cfg common.Config) Client

NewGroupClient returns a new Gitlab Group service

type DeployTokenClient

type DeployTokenClient interface {
	GetGroupDeployToken(gid interface{}, deployToken int64, 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 int64, 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 LdapGroupLinkClient added in v0.17.0

type LdapGroupLinkClient interface {
	ListGroupLDAPLinks(gid interface{}, options ...gitlab.RequestOptionFunc) ([]*gitlab.LDAPGroupLink, *gitlab.Response, error)
	AddGroupLDAPLink(gid interface{}, opt *gitlab.AddGroupLDAPLinkOptions, options ...gitlab.RequestOptionFunc) (*gitlab.LDAPGroupLink, *gitlab.Response, error)
	DeleteGroupLDAPLinkWithCNOrFilter(gid interface{}, opts *gitlab.DeleteGroupLDAPLinkWithCNOrFilterOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}

LdapGroupLinkClient defines Gitlab LDAP Group Link Service Operations

func NewLdapGroupLinkClient added in v0.17.0

func NewLdapGroupLinkClient(cfg common.Config) LdapGroupLinkClient

NewLdapGroupLinkClient returns a new GitLab Group Service

type MemberClient

type MemberClient interface {
	GetGroupMember(gid interface{}, user int64, 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 int64, opt *gitlab.EditGroupMemberOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupMember, *gitlab.Response, error)
	RemoveGroupMember(gid interface{}, user int64, 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 ServiceAccountClient added in v0.17.0

type ServiceAccountClient interface {
	CreateServiceAccount(gid any, opt *gitlab.CreateServiceAccountOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupServiceAccount, *gitlab.Response, error)
	UpdateServiceAccount(gid any, serviceAccount int64, opt *gitlab.UpdateServiceAccountOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupServiceAccount, *gitlab.Response, error)
	DeleteServiceAccount(gid any, serviceAccount int64, opt *gitlab.DeleteServiceAccountOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}

ServiceAccountClient defines Gitlab Service Account service operations

func NewServiceAccountClient added in v0.17.0

func NewServiceAccountClient(cfg common.Config) ServiceAccountClient

NewServiceAccountClient returns a new Gitlab Service Account service

type VariableClient

type VariableClient interface {
	ListVariables(gid any, opt *gitlab.ListGroupVariablesOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.GroupVariable, *gitlab.Response, error)
	GetVariable(gid any, key string, opt *gitlab.GetGroupVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupVariable, *gitlab.Response, error)
	CreateVariable(gid any, opt *gitlab.CreateGroupVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupVariable, *gitlab.Response, error)
	UpdateVariable(gid any, key string, opt *gitlab.UpdateGroupVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupVariable, *gitlab.Response, error)
	RemoveVariable(gid any, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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