common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 19 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientAuthEnabled

func ClientAuthEnabled(c Command) bool

func ConnectsToOrderer

func ConnectsToOrderer(c Command) bool

func JSONMarshall

func JSONMarshall(v interface{}) []byte

func JSONUnmarshal

func JSONUnmarshal(raw []byte, v interface{}) interface{}

func JSONUnmarshalInt

func JSONUnmarshalInt(v interface{}) int

func JSONUnmarshalString

func JSONUnmarshalString(v interface{}) string

func NewCommand

func NewCommand(path string, command Command) *exec.Cmd

func NextColor

func NextColor() string

func UniqueName

func UniqueName() string

UniqueName generates base-32 enocded UUIDs for container names.

Types

type BuildServer

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

func NewBuildServer

func NewBuildServer(args ...string) *BuildServer

func (*BuildServer) Client

func (s *BuildServer) Client() *BuilderClient

func (*BuildServer) EnableRaceDetector

func (s *BuildServer) EnableRaceDetector()

func (*BuildServer) Serve

func (s *BuildServer) Serve()

func (*BuildServer) Shutdown

func (s *BuildServer) Shutdown()

type BuilderClient

type BuilderClient struct {
	ServerAddress string `json:"server_address"`
}

func (*BuilderClient) Build

func (c *BuilderClient) Build(path string) string

type Command

type Command interface {
	Args() []string
	SessionName() string
}

type Enver

type Enver interface {
	Env() []string
}

type WorkingDirer

type WorkingDirer interface {
	WorkingDir() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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