gitlab

package
v0.10.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTag added in v0.7.0

func ExtractTag(tags map[string]string) (string, error)

Types

type GroupVariablesClient added in v0.7.0

type GroupVariablesClient interface {
	GetVariable(gid any, key string, opts *gitlab.GetGroupVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.GroupVariable, *gitlab.Response, error)
	ListVariables(gid any, opt *gitlab.ListGroupVariablesOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.GroupVariable, *gitlab.Response, error)
}

type ProjectGroupPathSorter added in v0.7.0

type ProjectGroupPathSorter []*gitlab.ProjectGroup

func (ProjectGroupPathSorter) Len added in v0.7.0

func (a ProjectGroupPathSorter) Len() int

func (ProjectGroupPathSorter) Less added in v0.7.0

func (a ProjectGroupPathSorter) Less(i, j int) bool

func (ProjectGroupPathSorter) Swap added in v0.7.0

func (a ProjectGroupPathSorter) Swap(i, j int)

type ProjectVariablesClient added in v0.7.0

type ProjectVariablesClient interface {
	GetVariable(pid any, key string, opt *gitlab.GetProjectVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectVariable, *gitlab.Response, error)
	ListVariables(pid any, opt *gitlab.ListProjectVariablesOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.ProjectVariable, *gitlab.Response, error)
}

type ProjectsClient added in v0.7.0

type ProjectsClient interface {
	ListProjectsGroups(pid any, opt *gitlab.ListProjectGroupOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.ProjectGroup, *gitlab.Response, error)
}

type Provider added in v0.7.3

type Provider struct{}

Provider satisfies the provider interface.

func (*Provider) Capabilities added in v0.7.3

func (g *Provider) Capabilities() esv1beta1.SecretStoreCapabilities

Capabilities return the provider supported capabilities (ReadOnly, WriteOnly, ReadWrite).

func (*Provider) NewClient added in v0.7.3

func (g *Provider) NewClient(ctx context.Context, store esv1beta1.GenericStore, kube kclient.Client, namespace string) (esv1beta1.SecretsClient, error)

Method on GitLab Provider to set up projectVariablesClient with credentials, populate projectID and environment.

func (*Provider) ValidateStore added in v0.7.3

func (g *Provider) ValidateStore(store esv1beta1.GenericStore) (admission.Warnings, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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