Help us shape the future of Go! Take the 2026 Go Developer Survey

groups

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 11 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 GenerateCreateHookOptions added in v0.21.0

func GenerateCreateHookOptions(p *v1alpha1.HookParameters, token *string) *gitlab.AddGroupHookOptions

GenerateCreateHookOptions generates group hook creation options

func GenerateCreateServiceAccountAccessTokenOptions added in v0.20.0

GenerateCreateServiceAccountAccessTokenOptions generates 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 GenerateEditHookOptions added in v0.21.0

func GenerateEditHookOptions(p *v1alpha1.HookParameters, token *string) *gitlab.EditGroupHookOptions

GenerateEditHookOptions generates group hook 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 GenerateGroupAccessTokenObservation added in v0.18.0

func GenerateGroupAccessTokenObservation(at *gitlab.GroupAccessToken) v1alpha1.AccessTokenObservation

GenerateGroupAccessTokenObservation generates group access token observation from gitlab.GroupAccessToken

func GenerateGroupAccessTokenObservationFromPAT added in v0.21.2

func GenerateGroupAccessTokenObservationFromPAT(at *gitlab.PersonalAccessToken) v1alpha1.AccessTokenObservation

GenerateGroupAccessTokenObservationFromPAT builds the access-token observation from a gitlab.PersonalAccessToken, as returned by the self-inform endpoint in self-managed mode. A group access token is backed by a bot-user personal access token, so the self endpoints return a PersonalAccessToken rather than a GroupAccessToken. AccessLevel is not exposed on the self endpoint and is left zero.

func GenerateGroupMattermostIntegrationOptions added in v0.22.0

func GenerateGroupMattermostIntegrationOptions(in *v1alpha1.IntegrationMattermostParameters, webhook string) *gitlab.GroupMattermostIntegrationOptions

GenerateGroupMattermostIntegrationOptions produces GroupMattermostIntegrationOptions from IntegrationMattermostParameters. The webhook value must be resolved from the referenced secret prior to calling this function and passed in through `webhook`.

UseInheritedSettings is always sent, defaulting to false: when it is omitted, GitLab keeps inheriting settings and ignores all the other submitted attributes.

func GenerateHookObservation added in v0.21.0

func GenerateHookObservation(hook *gitlab.GroupHook) v1alpha1.HookObservation

GenerateHookObservation is used to produce v1alpha1.HookObservation from gitlab.GroupHook.

func GenerateIntegrationHarborObservation added in v0.22.0

func GenerateIntegrationHarborObservation(observation *gitlab.HarborIntegration) v1alpha1.IntegrationHarborObservation

GenerateIntegrationHarborObservation converts gitlab.HarborIntegration to IntegrationHarborObservation.

func GenerateIntegrationMattermostObservation added in v0.22.0

func GenerateIntegrationMattermostObservation(observation *GroupMattermostIntegration) v1alpha1.IntegrationMattermostObservation

GenerateIntegrationMattermostObservation converts GroupMattermostIntegration to IntegrationMattermostObservation. The webhook is intentionally not surfaced as it is a secret.

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 GenerateRotateGroupAccessTokenOptions added in v0.18.0

func GenerateRotateGroupAccessTokenOptions(p *v1alpha1.AccessTokenParameters) *gitlab.RotateGroupAccessTokenOptions

GenerateRotateGroupAccessTokenOptions generates group access token rotation options

func GenerateRotateSelfOptions added in v0.18.0

GenerateRotateSelfOptions generates self-rotation options from access token parameters.

func GenerateRotateServiceAccountAccessTokenOptions added in v0.20.0

GenerateRotateServiceAccountAccessTokenOptions generates rotation options.

func GenerateRotateServiceAccountSelfOptions added in v0.20.0

func GenerateRotateServiceAccountSelfOptions(p *v1alpha1.ServiceAccountAccessTokenParameters) *gitlab.RotatePersonalAccessTokenOptions

GenerateRotateServiceAccountSelfOptions generates self-rotation options from parameters.

func GenerateServiceAccountAccessTokenObservation added in v0.20.0

func GenerateServiceAccountAccessTokenObservation(at *gitlab.PersonalAccessToken) v1alpha1.ServiceAccountAccessTokenObservation

GenerateServiceAccountAccessTokenObservation generates an observation from a gitlab.PersonalAccessToken.

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 GenerateSetUpHarborOptions added in v0.22.0

func GenerateSetUpHarborOptions(in *v1alpha1.IntegrationHarborParameters, password string) *gitlab.SetUpHarborOptions

GenerateSetUpHarborOptions produces SetUpHarborOptions from IntegrationHarborParameters. The password value must be resolved from the referenced secret prior to calling this function and passed in through `password`. An empty password is omitted from the options so that existing remote state is not unintentionally cleared.

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 GetServiceAccountAccessToken added in v0.20.0

func GetServiceAccountAccessToken(c ServiceAccountAccessTokenClient, gid any, serviceAccount, tokenID int64, options ...gitlab.RequestOptionFunc) (*gitlab.PersonalAccessToken, *gitlab.Response, error)

GetServiceAccountAccessToken paginates over a service account's personal access tokens and returns the one matching tokenID. When no token matches it returns a nil token and the last response so callers can detect not-found.

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 IsHookUpToDate added in v0.21.0

func IsHookUpToDate(p *v1alpha1.HookParameters, g *gitlab.GroupHook) bool

IsHookUpToDate checks whether there is a change in any of the modifiable fields.

func IsIntegrationHarborUpToDate added in v0.22.0

func IsIntegrationHarborUpToDate(spec *v1alpha1.IntegrationHarborParameters, observation *gitlab.HarborIntegration) bool

IsIntegrationHarborUpToDate returns true if the remote Harbor integration matches the desired spec.

func IsIntegrationMattermostUpToDate added in v0.22.0

func IsIntegrationMattermostUpToDate(spec *v1alpha1.IntegrationMattermostParameters, observation *GroupMattermostIntegration) bool

IsIntegrationMattermostUpToDate returns true if the remote Mattermost integration matches the desired spec.

The inheritance state is compared first. While inheriting, GitLab ignores all other settings, so they are not compared.

Note: WebHook is excluded because GitLab does not return it (write-only).

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 LateInitializeHook added in v0.21.0

func LateInitializeHook(in *v1alpha1.HookParameters, hook *gitlab.GroupHook)

LateInitializeHook fills the empty fields in the hook spec with the values seen in gitlab.GroupHook.

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 ShouldRotateAccessToken added in v0.18.0

func ShouldRotateAccessToken(p *v1alpha1.AccessTokenParameters, a *gitlab.GroupAccessToken) bool

ShouldRotateAccessToken returns true when the token must be rotated.

func ShouldRotateAccessTokenFromPAT added in v0.21.2

func ShouldRotateAccessTokenFromPAT(p *v1alpha1.AccessTokenParameters, a *gitlab.PersonalAccessToken) bool

ShouldRotateAccessTokenFromPAT returns true when the self-managed token must be rotated, evaluated against a gitlab.PersonalAccessToken from the self-inform endpoint.

func ShouldRotateServiceAccountAccessToken added in v0.20.0

func ShouldRotateServiceAccountAccessToken(p *v1alpha1.ServiceAccountAccessTokenParameters, a *gitlab.PersonalAccessToken) bool

ShouldRotateServiceAccountAccessToken returns true when the token must be rotated.

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)
	RotateGroupAccessToken(gid any, id int64, opt *gitlab.RotateGroupAccessTokenOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupAccessToken, *gitlab.Response, error)
	RotateSelf(opt *gitlab.RotatePersonalAccessTokenOptions, options ...gitlab.RequestOptionFunc) (*gitlab.PersonalAccessToken, *gitlab.Response, error)
	GetSelf(options ...gitlab.RequestOptionFunc) (*gitlab.PersonalAccessToken, *gitlab.Response, error)
	RevokeSelf(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 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)
	ArchiveGroup(gid any, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
	UnarchiveGroup(gid any, 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)
	ListGroups(opt *gitlab.ListGroupsOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.Group, *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 GroupMattermostIntegration added in v0.22.0

type GroupMattermostIntegration struct {
	gitlab.Integration
	Properties *GroupMattermostIntegrationProperties `json:"properties"`
}

GroupMattermostIntegration represents a Mattermost integration for a group, as returned by GitLab.

It replaces gitlab.GroupMattermostIntegration, which decodes notify_only_broken_pipelines, branches_to_be_notified, labels_to_be_notified and labels_to_be_notified_behavior from the top level of the response, where GitLab returns null: GitLab returns them in the properties.

type GroupMattermostIntegrationProperties added in v0.22.0

type GroupMattermostIntegrationProperties struct {
	gitlab.GroupMattermostIntegrationProperties
	NotifyOnlyBrokenPipelines  gitlab.BoolValue `json:"notify_only_broken_pipelines"`
	BranchesToBeNotified       string           `json:"branches_to_be_notified"`
	LabelsToBeNotified         string           `json:"labels_to_be_notified"`
	LabelsToBeNotifiedBehavior string           `json:"labels_to_be_notified_behavior"`
}

GroupMattermostIntegrationProperties represents the properties of a group Mattermost integration.

type HarborClient added in v0.22.0

type HarborClient interface {
	GetGroupHarborSettings(gid any, options ...gitlab.RequestOptionFunc) (*gitlab.HarborIntegration, *gitlab.Response, error)
	SetUpGroupHarbor(gid any, opt *gitlab.SetUpHarborOptions, options ...gitlab.RequestOptionFunc) (*gitlab.HarborIntegration, *gitlab.Response, error)
	DisableGroupHarbor(gid any, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}

HarborClient defines GitLab Harbor integration operations for a group.

func NewHarborClient added in v0.22.0

func NewHarborClient(cfg common.Config) HarborClient

NewHarborClient returns a new GitLab Integrations client for group Harbor operations.

type HookClient added in v0.21.0

type HookClient interface {
	GetGroupHook(gid interface{}, hook int64, options ...gitlab.RequestOptionFunc) (*gitlab.GroupHook, *gitlab.Response, error)
	AddGroupHook(gid interface{}, opt *gitlab.AddGroupHookOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupHook, *gitlab.Response, error)
	EditGroupHook(gid interface{}, hook int64, opt *gitlab.EditGroupHookOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupHook, *gitlab.Response, error)
	DeleteGroupHook(gid interface{}, hook int64, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}

HookClient defines Gitlab Group Hook service operations

func NewHookClient added in v0.21.0

func NewHookClient(cfg common.Config) HookClient

NewHookClient returns a new Gitlab Group Hook 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 MattermostClient added in v0.22.0

type MattermostClient interface {
	GetGroupMattermostIntegration(gid any, options ...gitlab.RequestOptionFunc) (*GroupMattermostIntegration, *gitlab.Response, error)
	SetGroupMattermostIntegration(gid any, opt *gitlab.GroupMattermostIntegrationOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupMattermostIntegration, *gitlab.Response, error)
	DeleteGroupMattermostIntegration(gid any, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}

MattermostClient defines GitLab Mattermost integration operations for a group.

func NewMattermostClient added in v0.22.0

func NewMattermostClient(cfg common.Config) MattermostClient

NewMattermostClient returns a new GitLab Integrations client for group Mattermost operations.

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 ServiceAccountAccessTokenClient added in v0.20.0

type ServiceAccountAccessTokenClient interface {
	// Owner-authenticated endpoints (the ProviderConfig is a group owner).
	ListServiceAccountPersonalAccessTokens(gid any, serviceAccount int64, opt *gitlab.ListServiceAccountPersonalAccessTokensOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.PersonalAccessToken, *gitlab.Response, error)
	CreateServiceAccountPersonalAccessToken(gid any, serviceAccount int64, opt *gitlab.CreateServiceAccountPersonalAccessTokenOptions, options ...gitlab.RequestOptionFunc) (*gitlab.PersonalAccessToken, *gitlab.Response, error)
	RevokeServiceAccountPersonalAccessToken(gid any, serviceAccount, token int64, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
	RotateServiceAccountPersonalAccessToken(gid any, serviceAccount, token int64, opt *gitlab.RotateServiceAccountPersonalAccessTokenOptions, options ...gitlab.RequestOptionFunc) (*gitlab.PersonalAccessToken, *gitlab.Response, error)

	// Self-authenticated endpoints (the ProviderConfig authenticates with the
	// very token this resource manages). Used in self-managed mode.
	GetServiceAccountSelf(options ...gitlab.RequestOptionFunc) (*gitlab.PersonalAccessToken, *gitlab.Response, error)
	RotateServiceAccountSelf(opt *gitlab.RotatePersonalAccessTokenOptions, options ...gitlab.RequestOptionFunc) (*gitlab.PersonalAccessToken, *gitlab.Response, error)
	RevokeServiceAccountSelf(options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}

ServiceAccountAccessTokenClient defines GitLab group service account personal access token operations.

func NewServiceAccountAccessTokenClient added in v0.20.0

func NewServiceAccountAccessTokenClient(cfg common.Config) ServiceAccountAccessTokenClient

NewServiceAccountAccessTokenClient returns a new GitLab service account access token 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