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 ¶
func (m *MockComponent) EXPECT() *MockComponentMockRecorder
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