check

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigType   = "rhabarber.config.acme.org"
	ConfigTypeV1 = ConfigType + runtime.VersionSeparator + "v1"
)
View Source
const Name = "check"

Variables

View Source
var (
	RhabarberType   cfgcpi.ConfigType
	RhabarberTypeV1 cfgcpi.ConfigType
)

Functions

func New

func New() *cobra.Command

func ParseDate

func ParseDate(s string) (time.Time, error)

Types

type Config

type Config struct {
	runtime.ObjectVersionedType `json:",inline"`
	Season                      `json:",inline"`
}

Config describes a memory based repository interface.

func NewConfig

func NewConfig(start, end string) *Config

NewConfig creates a new memory ConfigSpec.

func (*Config) ApplyTo

func (a *Config) ApplyTo(ctx cfgcpi.Context, target interface{}) error

func (*Config) GetType

func (a *Config) GetType() string

type Season

type Season struct {
	Start string `json:"start"`
	End   string `json:"end"`
}

Jump to

Keyboard shortcuts

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