gitregistry

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveKey

func SaveKey(gConf *grantedConfig.Config, key string, value string) error

This is used when user passed the required value through flag.

func SaveKeys

func SaveKeys(gConf *grantedConfig.Config, ansmap map[string]interface{}) error

This is used when user enters the required key through cli prompts.

Types

type ConfigYAML

type ConfigYAML struct {
	AwsConfigPaths []string                         `yaml:"awsConfig"`
	TemplateValues []map[string][]map[string]string `yaml:"templateValues"`
}

func (ConfigYAML) PromptRequiredKeys

func (c ConfigYAML) PromptRequiredKeys(passedKeys []string, interactive bool, registryName string) error

granted.yml config might contain user specific variables in such case we would prompt users to add them before registry is added.

type Opts

type Opts struct {
	Name         string
	URL          string
	Path         string
	Filename     string
	RequiredKeys []string
	Interactive  bool
}

type Registry

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

func New

func New(opts Opts) (*Registry, error)

func (Registry) AWSProfiles

func (r Registry) AWSProfiles(ctx context.Context) (*ini.File, error)

func (Registry) Delete

func (r Registry) Delete() error

Delete the local clone of the registry repo.

Jump to

Keyboard shortcuts

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