codeimpl

package
v0.0.0-...-b891ec6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCodeImpl

func NewCodeImpl(cfg Config) *codeImpl

Types

type CIRepo

type CIRepo struct {
	Repo string `json:"repo" required:"true"`
	Link string `json:"link" required:"true"`
}

type Config

type Config struct {
	ShellScript string      `json:"shell_script"`
	PkgSrcOrg   string      `json:"pkg_src_org"`
	Watch       Watch       `json:"watch"`
	Robot       RobotConfig `json:"robot"   required:"true"`
	CIRepo      CIRepo      `json:"ci_repo" required:"true"`
}

func (*Config) SetDefault

func (c *Config) SetDefault()

type RobotConfig

type RobotConfig struct {
	Username string `json:"username" required:"true"`
	Token    string `json:"token"    required:"true"`
}

type Watch

type Watch struct {
	Interval  int `json:"interval"`
	LoopTimes int `json:"loop_times"`
}

func (*Watch) IntervalDuration

func (c *Watch) IntervalDuration() time.Duration

Jump to

Keyboard shortcuts

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