config

package
v0.0.0-...-01a409d Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayFlags

type ArrayFlags []string

func (*ArrayFlags) Set

func (i *ArrayFlags) Set(value string) error

func (*ArrayFlags) String

func (i *ArrayFlags) String() string

type Config

type Config struct {
	CacheWindow          time.Duration `json:"cacheWindow"`
	CacheWindowWhenEmpty time.Duration `json:"cacheWindowWhenEmpty"`
	ResyncInterval       time.Duration `json:"resyncInterval"`
	MemcachedServers     string        `json:"memcachedServers"`
	MemcachedUser        string        `json:"memcachedUser"`
	MemcachedPass        string        `json:"memcachedPass"`
	GithubPatNamespace   string        `json:"githubPatNamespace"`

	AllNs           bool     `json:"allNs"`
	InClusterConfig bool     `json:"inClusterConfig"`
	Kubeconfig      string   `json:"kubeconfig"`
	RunnerNSs       []string `json:"runnerNSs"`
	// contains filtered or unexported fields
}

func (*Config) AddFlags

func (c *Config) AddFlags()

func (*Config) GetAllWorkflows

func (c *Config) GetAllWorkflows() []GithubWorkflowConfig

func (*Config) GetWorkflow

func (c *Config) GetWorkflow(key string) (*GithubWorkflowConfig, error)

func (*Config) InitWorkflows

func (c *Config) InitWorkflows(params ...interface{}) error

func (*Config) SetupConfig

func (c *Config) SetupConfig(params ...interface{}) error

type Duration

type Duration struct {
	time.Duration
}

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

type GithubWorkflowConfig

type GithubWorkflowConfig struct {
	Name       string          `json:"name"`
	Namespace  string          `json:"namespace"`
	Token      string          `json:"token"`
	Owner      string          `json:"owner"`
	Repository string          `json:"repository"`
	Scaling    scaling.Scaling `json:"scaling"`
}

type IWorkflowSource

type IWorkflowSource interface {
	GetAllWorkflows() []GithubWorkflowConfig
	GetWorkflow(key string) (*GithubWorkflowConfig, error)
}

Jump to

Keyboard shortcuts

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