config

package
v1.2.0-4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var GitCommandArguments = basecli.Arguments{
	{ConfigID: "git.auth", LongName: "git-auth", ShortName: "", Message: "Git repository authentication info, [format: 'username:password']", Default: "", IsHidden: false},
	{ConfigID: "git.tag", LongName: "git-tag", ShortName: "", Message: "Git tag in the repository", Default: ""},
	{ConfigID: "git.branch", LongName: "git-branch", ShortName: "", Message: "Git branch in the repository", Default: ""},
	{ConfigID: "git.commit", LongName: "git-commit", ShortName: "", Message: "Git commit hash in the repository", Default: ""},
	{ConfigID: "git.depth", LongName: "depth", ShortName: "", Message: "Git clone depth", Default: 0},
}
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},
	{ConfigID: "provider.policy_map", LongName: "policy-map", ShortName: "", Message: "Path to policy select configuration", Default: "/policies/map.yaml"},
	{ConfigID: "provider.timeout", LongName: "timeout", ShortName: "", Message: "Evaluation timeout", Default: "300s"},
}

Functions

This section is empty.

Types

type Application

type Application struct {
	basecli.BaseConfig `yaml:",omitempty,inline" json:",omitempty,inline" mapstructure:",squash"`
	Git                valintPkg.GitConfig `yaml:"git,omitempty" json:"git,omitempty" mapstructure:"git"`
	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"`
	PolicySelect     string   `yaml:"policy_map,omitempty" json:"policy_map,omitempty" mapstructure:"policy_map"`
	Timeout          string   `yaml:"timeout,omitempty" json:"timeout,omitempty" mapstructure:"timeout"`
}

Jump to

Keyboard shortcuts

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