repomirror

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoMirrorFieldGroup

type RepoMirrorFieldGroup struct {
	FeatureRepoMirror        bool   `default:"false" validate:"" json:"FEATURE_REPO_MIRROR" yaml:"FEATURE_REPO_MIRROR"`
	RepoMirrorInterval       int    `default:"30" validate:"" json:"REPO_MIRROR_INTERVAL,omitempty" yaml:"REPO_MIRROR_INTERVAL,omitempty"`
	RepoMirrorServerHostname string `default:"" validate:"" json:"REPO_MIRROR_SERVER_HOSTNAME,omitempty" yaml:"REPO_MIRROR_SERVER_HOSTNAME,omitempty"`
	RepoMirrorTlsVerify      bool   `default:"true" validate:"" json:"REPO_MIRROR_TLS_VERIFY" yaml:"REPO_MIRROR_TLS_VERIFY"`
}

RepoMirrorFieldGroup represents the RepoMirrorFieldGroup config fields

func NewRepoMirrorFieldGroup

func NewRepoMirrorFieldGroup(fullConfig map[string]interface{}) (*RepoMirrorFieldGroup, error)

NewRepoMirrorFieldGroup creates a new RepoMirrorFieldGroup

func (*RepoMirrorFieldGroup) Fields

func (fg *RepoMirrorFieldGroup) Fields() []string

Fields returns a list of strings representing the fields in this field group

func (*RepoMirrorFieldGroup) Validate

Validate checks the configuration settings for this field group

Jump to

Keyboard shortcuts

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