config

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Build   string
	Version string
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiVersion string   `yaml:"apiVersion"`
	Kind       string   `yaml:"kind"`
	MetaData   MetaData `yaml:"metadata"`
	Spec       Spec     `yaml:"spec"`
}

func New

func New() *Config

type Gpt

type Gpt struct {
	Url  string `yaml:"url"`
	User string `yaml:"user"`
	Pass string `yaml:"pass"`
}

type MetaData

type MetaData struct {
	Name string `yaml:"name"`
}

type Repo

type Repo struct {
	Url  string `yaml:"url"`
	User string `yaml:"user"`
	Pass string `yaml:"pass"`
}

type Review

type Review struct {
	Url  string `yaml:"url"`
	User string `yaml:"user"`
	Pass string `yaml:"pass"`
}

type Sight

type Sight struct {
	Name   string `yaml:"name"`
	Enable bool   `yaml:"enable"`
}

type Spec

type Spec struct {
	Sights []Sight `yaml:"sights"`
	Repo   Repo    `yaml:"repo"`
	Review Review  `yaml:"review"`
	Gpt    Gpt     `yaml:"gpt"`
}

Jump to

Keyboard shortcuts

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