service

package
v0.0.0-...-0049866 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	K8sPrefix   = "K8S_SECRET_"
	ScopePrefix = "# Scope: "

	// scopes
	AllScope      = "*"
	StageScope    = "staging"
	ProdScope     = "production"
	ProdTestScope = "prodtest"
)

Variables

This section is empty.

Functions

func AddPrefix

func AddPrefix(data []gitlab.CiVariable) []gitlab.CiVariable

func ApplyScopeFilter

func ApplyScopeFilter(data gitlab.CiVariableList, scopeFilter string) gitlab.CiVariableList

func ParseDotEnv

func ParseDotEnv(input []byte) []gitlab.CiVariable

Types

type CiPrinter

type CiPrinter interface {
	Print(data gitlab.CiVariableList) string
}

func PrinterProvider

func PrinterProvider(format string) (printer CiPrinter)

type Service

type Service interface {
	Search()
	Get(format string, scopeFilter string)
	Create(format string, k8s bool, fileFlag string)
	Update(format string, k8s bool, fileFlag string)
}

func NewService

func NewService(api gitlab.Api, cmd *cobra.Command, args []string) Service

Jump to

Keyboard shortcuts

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