upload

package
v0.16.5 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 21 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 *Config) error

func NewUploadCmd

func NewUploadCmd() *cobra.Command

Types

type Config added in v0.15.4

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

func DefaultConfig added in v0.14.1

func DefaultConfig() *Config

func (*Config) GetClazzUploadUrl added in v0.15.4

func (config *Config) GetClazzUploadUrl() string

func (*Config) GetFuncCtxUploadUrl added in v0.15.4

func (config *Config) GetFuncCtxUploadUrl() string

func (*Config) GetFuncUploadUrl added in v0.15.4

func (config *Config) GetFuncUploadUrl() string

func (*Config) ToJson added in v0.15.4

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

func (*Config) ToMap added in v0.15.4

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

type ContextPart added in v0.15.4

type ContextPart struct {
	GraphCache *sibyl2.FuncGraph
}

type ExecuteCache added in v0.15.4

type ExecuteCache struct {
	AnalyzeGraph *sibyl2.FuncGraph
}

type ExecuteCacheMap added in v0.15.4

type ExecuteCacheMap = map[core.LangType]*ExecuteCache

func ExecCurRevWithConfig added in v0.15.4

func ExecCurRevWithConfig(uploadSrc string, wc *object.WorkspaceConfig, c *Config) (ExecuteCacheMap, error)

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"`
}

Jump to

Keyboard shortcuts

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