cmsvc

package
v1.0.0-RC Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CMSvc

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

func New

func New(bdl *bundle.Bundle, dbClient *dbclient.Client, ops ...Option) *CMSvc

func (*CMSvc) CreateNS

func (s *CMSvc) CreateNS(source apistructs.PipelineSource, ns string) error

func (*CMSvc) DeleteConfigs

func (s *CMSvc) DeleteConfigs(source apistructs.PipelineSource, ns string, deleteKeys []string, forceDel bool) error

func (*CMSvc) DeleteNS

func (s *CMSvc) DeleteNS(source apistructs.PipelineSource, ns string) error

func (*CMSvc) GetConfigs

func (s *CMSvc) GetConfigs(source apistructs.PipelineSource, ns string, globalDecrypt bool, keys ...apistructs.PipelineCmsConfigKey) (
	[]apistructs.PipelineCmsConfig, error)

func (*CMSvc) MakeBranchPrefixSecretNamespace

func (s *CMSvc) MakeBranchPrefixSecretNamespace(appID, branch string) (string, error)

func (*CMSvc) MakeDefaultSecretNamespace

func (s *CMSvc) MakeDefaultSecretNamespace(appID string) string

func (*CMSvc) PrefixListNS

func (s *CMSvc) PrefixListNS(source apistructs.PipelineSource, nsPrefix string) ([]apistructs.PipelineCmsNs, error)

func (*CMSvc) UpdateConfigs

func (s *CMSvc) UpdateConfigs(source apistructs.PipelineSource, ns string, kvs map[string]apistructs.PipelineCmsConfigValue) error

type Option

type Option func(*CMSvc)

func WithRsaCrypt

func WithRsaCrypt(rsaCrypt *encryption.RsaCrypt) Option

Jump to

Keyboard shortcuts

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