config

package
v0.0.3-1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationName = "gatekeeper-valint"
)

Variables

View Source
var ProviderCommandArguments = basecli.Arguments{
	{ConfigID: "provider.image-pull-secrets", LongName: "image-pull-secrets", ShortName: "", Message: "The names of the secrets used to pull evidence from registries", Default: []string{}},
	{ConfigID: "provider.port", LongName: "port", ShortName: "", Message: "Port for the server to listen on", Default: defaultPort},
}

Functions

This section is empty.

Types

type Application

type Application struct {
	basecli.BaseConfig `yaml:",omitempty,inline" json:",omitempty,inline" mapstructure:",squash"`
	Provider           ProviderConfig `yaml:"provider,omitempty" json:"provider,omitempty" mapstructure:"provider"`

	Valint valintPkg.Application `yaml:"valint,omitempty" json:"valint,omitempty" mapstructure:"valint"`
	// contains filtered or unexported fields
}

func (Application) GetConfigPath

func (a Application) GetConfigPath() string

Implement ApplicationConfig interface

func (*Application) PostInit

func (cfg *Application) PostInit() error

func (*Application) SetVersion

func (cfg *Application) SetVersion(version string)

func (*Application) Version

func (cfg *Application) Version() string

type ProviderConfig

type ProviderConfig struct {
	ImagePullSecrets []string `yaml:"image-pull-secrets,omitempty" json:"image-pull-secrets,omitempty" mapstructure:"image-pull-secrets"`
	Port             int      `yaml:"port,omitempty" json:"port,omitempty" mapstructure:"port"`
}

Jump to

Keyboard shortcuts

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