groups

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func GenerateAddSamlGroupLinkObservation(samlGroupLink *gitlab.SAMLGroupLink) v1alpha1.SamlGroupLinkObservation

GenerateAddSamlGroupLinkObservation is used to produce v1alpha1.SamlGroupLinkbObservation

func GenerateAddSamlGroupLinkOptions added in v0.8.0

func GenerateAddSamlGroupLinkOptions(p *v1alpha1.SamlGroupLinkParameters) *gitlab.AddGroupSAMLLinkOptions

GenerateAddSamlGroupLinkOptions is used to produce Options for SamlGroupSync creation

func GenerateCreateGroupAccessTokenOptions added in v0.7.0

func GenerateCreateGroupAccessTokenOptions(name string, p *v1alpha1.AccessTokenParameters) *gitlab.CreateGroupAccessTokenOptions

GenerateCreateGroupAccessTokenOptions generates project creation options

func GenerateCreateGroupDeployTokenOptions added in v0.2.0

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

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

func GenerateUpdateVariableOptions(p *v1alpha1.VariableParameters) *gitlab.UpdateGroupVariableOptions

GenerateUpdateVariableOptions generates group update options

func GenerateVariableFilter added in v0.5.0

func GenerateVariableFilter(p *v1alpha1.VariableParameters) *gitlab.VariableFilter

GenerateVariableFilter generates a variable filter that matches the variable parameters' environment scope.

func IsErrorGroupAccessTokenNotFound added in v0.7.0

func IsErrorGroupAccessTokenNotFound(err error) bool

IsErrorGroupAccessTokenNotFound helper function to test for errGroupAccessTokenNotFound error.

func IsErrorGroupDeployTokenNotFound added in v0.2.0

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 IsErrorMemberNotFound

func IsErrorMemberNotFound(err error) bool

IsErrorMemberNotFound helper function to test for errMemberNotFound error.

func IsErrorSamlGroupLinkNotFound added in v0.8.0

func IsErrorSamlGroupLinkNotFound(err error) bool

IsErrorSamlGroupLinkNotFound helper function to test for errSamlGroupLinkNotFound error.

func IsErrorVariableNotFound added in v0.5.0

func IsErrorVariableNotFound(err error) bool

IsErrorVariableNotFound helper function to test for errGroupNotFound error.

func IsVariableUpToDate added in v0.5.0

func IsVariableUpToDate(p *v1alpha1.VariableParameters, g *gitlab.GroupVariable) bool

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

func LateInitializeVariable added in v0.5.0

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

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

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

func NewAccessTokenClient(cfg clients.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)
	ShareGroupWithGroup(gid interface{}, opt *gitlab.ShareGroupWithGroupOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Group, *gitlab.Response, error)
	UnshareGroupFromGroup(gid interface{}, groupID int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}

Client defines Gitlab Group service operations

func NewGroupClient

func NewGroupClient(cfg clients.Config) Client

NewGroupClient returns a new Gitlab Group service

type DeployTokenClient added in v0.2.0

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

func NewDeployTokenClient(cfg clients.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 clients.Config) MemberClient

NewMemberClient returns a new Gitlab Group Member service

type SamlGroupLinkClient added in v0.8.0

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

func NewSamlGroupLinkClient(cfg clients.Config) SamlGroupLinkClient

NewSamlGroupLinkClient returns a new Giltab Group Service

type VariableClient added in v0.5.0

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

VariableClient defines Gitlab Variable service operations

func NewVariableClient added in v0.5.0

func NewVariableClient(cfg clients.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