compile

package
v0.0.0-...-ca7b50d Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// 用于访问私有镜像托管仓库访问配置,比如访问私有得docker-hub
	registry.AuthConfig

	Mode       string
	Host       string
	CaCertPath string
	CertPath   string
	KeyPath    string
}

func (*Config) Valid

func (c *Config) Valid() error

type ContractCompile

type ContractCompile interface {
	Execute(ctx context.Context, args cmd.Args) error
	Close(ctx context.Context) error
	Ping(ctx context.Context) error
}

func New

func New(kind Engine, cfg *Config) (ContractCompile, error)

func NewDocker

func NewDocker(cfg *Config) (ContractCompile, error)

func NewK8s

func NewK8s(c *Config) (ContractCompile, error)

type Engine

type Engine string
const (
	Docker Engine = "docker"
	K8S    Engine = "k8s"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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