infra

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppInit added in v1.1.5

func AppInit(ctx *cli.Context) error

func CommandInit added in v1.1.5

func CommandInit(ctx *cli.Context) error

func GetLogger

func GetLogger() dd.LevelLogger

func GetWorkerPoolRunner

func GetWorkerPoolRunner() dd.TaskRunner

Types

type Config

type Config struct {
	RepoConfig *RepoConfig `yaml:"repo"`
	SyncConfig *SyncConfig `yaml:"sync"`
	Cwd        *string     `yaml:"cwd"`
}

Config - config represent config.yaml

func GetConfig

func GetConfig() *Config

type GitUpContext

type GitUpContext struct {
	// contains filtered or unexported fields
}

type INIConfig added in v1.5.0

type INIConfig struct {
	Host  *string `ini:"gitlab_host"`
	Token *string `ini:"gitlab_token"`
}

INIConfig - config represent gitup.ini

type RepoConfig

type RepoConfig struct {
	Type           *string `yaml:"type"`
	Host           *string `yaml:"host,omitempty"`
	Token          *string `yaml:"token,omitempty"`
	FilterArchived bool    `yaml:"filter_archived,omitempty"`
}

RepoConfig - repo setion of config.yaml

type SyncConfig

type SyncConfig struct {
	Bare   bool      `yaml:"bare"`
	Groups []*string `yaml:"groups,omitempty"`
}

SyncConfig - sync setion of config.yaml

Jump to

Keyboard shortcuts

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