all

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

The all package facilitates the registration of Juju components into the relevant machinery. It is intended as the one place in Juju where the components (horizontal design layers) and the machinery (vertical/architectural layers) intersect. This approach helps alleviate interdependence between the components and the machinery.

This is done in an independent package to avoid circular imports.

Package all is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterForClient

func RegisterForClient() error

RegisterForClient registers all the parts of the components with the Juju machinery for use as a client (e.g. juju).

func RegisterForContainerAgent

func RegisterForContainerAgent() error

RegisterForContainerAgent registers the parts of the components with the Juju machinery for use as a agent (e.g. jujud, jujuc).

func RegisterForServer

func RegisterForServer() error

RegisterForServer registers all the parts of the components with the Juju machinery for use as a server (e.g. jujud, jujuc).

Types

type Component

type Component interface {
	// contains filtered or unexported methods
}

run "go generate" from the package directory.

type MockComponent

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

MockComponent is a mock of Component interface

func NewMockComponent

func NewMockComponent(ctrl *gomock.Controller) *MockComponent

NewMockComponent creates a new mock instance

func (*MockComponent) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

type MockComponentMockRecorder

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

MockComponentMockRecorder is the mock recorder for MockComponent

Jump to

Keyboard shortcuts

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