mock

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	BuildInvoked bool
	BuildFn      func(name, path string) (image string, err error)
}

func NewBuilder

func NewBuilder() *Builder

func (*Builder) Build

func (i *Builder) Build(name, runtime, path string) (string, error)

type DNSProvider

type DNSProvider struct {
	ProvideInvoked   bool
	NameRequested    string
	AddressRequested string
}

func NewDNSProvider

func NewDNSProvider() *DNSProvider

func (*DNSProvider) Provide

func (d *DNSProvider) Provide(name, address string)

type Deployer

type Deployer struct {
	DeployInvoked bool
	DeployFn      func(name, image string) (address string, err error)
}

func NewDeployer

func NewDeployer() *Deployer

func (*Deployer) Deploy

func (i *Deployer) Deploy(name, image string) (address string, err error)

type Initializer

type Initializer struct {
	SupportedRuntimes []string
	InitializeInvoked bool
	InitializeFn      func(runtime, template, path string) error
}

func NewInitializer

func NewInitializer() *Initializer

func (*Initializer) Initialize

func (i *Initializer) Initialize(runtime, template, path string) error

type Lister

type Lister struct {
	ListInvoked bool
	ListFn      func() ([]string, error)
}

func NewLister

func NewLister() *Lister

func (*Lister) List

func (l *Lister) List() ([]string, error)

type Pusher

type Pusher struct {
	PushInvoked bool
	PushFn      func(image string) error
}

func NewPusher

func NewPusher() *Pusher

func (*Pusher) Push

func (i *Pusher) Push(image string) error

type Remover

type Remover struct {
	RemoveInvoked bool
	RemoveFn      func(string) error
}

func NewRemover

func NewRemover() *Remover

func (*Remover) Remove

func (r *Remover) Remove(name string) error

type Runner

type Runner struct {
	RunInvoked    bool
	RootRequested string
}

func NewRunner

func NewRunner() *Runner

func (*Runner) Run

func (r *Runner) Run(root string) error

type Updater

type Updater struct {
	UpdateInvoked bool
	UpdateFn      func(name, image string) error
}

func NewUpdater

func NewUpdater() *Updater

func (*Updater) Update

func (i *Updater) Update(name, image string) error

Jump to

Keyboard shortcuts

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