upload

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 20 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecWithConfig added in v0.14.1

func ExecWithConfig(c *UploadConfig)

func NewUploadCmd

func NewUploadCmd() *cobra.Command

Types

type ServerConfigPart added in v0.10.0

type ServerConfigPart struct {
	Url   string `mapstructure:"url"`
	Batch int    `mapstructure:"batch"`
	Dry   bool   `mapstructure:"dry"`
	Depth int    `mapstructure:"depth"`
}

type SrcConfigPart added in v0.10.0

type SrcConfigPart struct {
	RepoId       string   `mapstructure:"repoId"`
	RevHash      string   `mapstructure:"revHash"`
	Src          string   `mapstructure:"src"`
	Lang         []string `mapstructure:"lang"`
	WithCtx      bool     `mapstructure:"withCtx"`
	WithClass    bool     `mapstructure:"withClass"`
	IncludeRegex string   `mapstructure:"includeRegex"`
	ExcludeRegex string   `mapstructure:"excludeRegex"`
}

type UploadConfig added in v0.14.1

type UploadConfig struct {
	*SrcConfigPart    `mapstructure:"src"`
	*ServerConfigPart `mapstructure:"server"`
}

func DefaultConfig added in v0.14.1

func DefaultConfig() *UploadConfig

func (*UploadConfig) ToJson added in v0.14.1

func (config *UploadConfig) ToJson() ([]byte, error)

func (*UploadConfig) ToMap added in v0.14.1

func (config *UploadConfig) ToMap() (map[string]any, error)

Jump to

Keyboard shortcuts

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