gitlab

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package gitlab implements a gitlab backend that can be used to inject Gitlab CI/CD variables as kubernetes secrets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackend

func NewBackend() backend.Backend

NewBackend gives you a new gitlab backend

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

Backend is a gitlab variables backend

func (*Backend) Get

func (d *Backend) Get(key string, version string) (string, error)

Get takes a key and version, and returns the value

func (*Backend) Init

func (d *Backend) Init(parameters map[string]interface{}, credentials []byte) error

Init implements SecretsBackend interface

type ErrGet

type ErrGet struct {
	// contains filtered or unexported fields
}

func (*ErrGet) Error

func (e *ErrGet) Error() string

type ErrInitFailed

type ErrInitFailed struct {
	// contains filtered or unexported fields
}

func (*ErrInitFailed) Error

func (e *ErrInitFailed) Error() string

type GitlabCredentials

type GitlabCredentials struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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