juju: github.com/juju/juju/generate/schemagen/gen Index | Files

package gen

import "github.com/juju/juju/generate/schemagen/gen"

Package gen is a generated GoMock package.

Copyright 2019 Canonical Ltd. Licensed under the AGPLv3, see LICENCE file for details.

Index

Package Files

describeapi_mock.go generator.go

type APIServer Uses

type APIServer interface {
    AllFacades() Registry
}

go:generate mockgen -package gen -destination describeapi_mock.go github.com/juju/juju/generate/schemagen/gen APIServer,Registry

type FacadeSchema Uses

type FacadeSchema struct {
    Name    string
    Version int
    Schema  *jsonschema.Schema
}

func Generate Uses

func Generate(client APIServer) ([]FacadeSchema, error)

Generate a FacadeSchema from the APIServer

type MockAPIServer Uses

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

MockAPIServer is a mock of APIServer interface

func NewMockAPIServer Uses

func NewMockAPIServer(ctrl *gomock.Controller) *MockAPIServer

NewMockAPIServer creates a new mock instance

func (*MockAPIServer) AllFacades Uses

func (m *MockAPIServer) AllFacades() Registry

AllFacades mocks base method

func (*MockAPIServer) EXPECT Uses

func (m *MockAPIServer) EXPECT() *MockAPIServerMockRecorder

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

type MockAPIServerMockRecorder Uses

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

MockAPIServerMockRecorder is the mock recorder for MockAPIServer

func (*MockAPIServerMockRecorder) AllFacades Uses

func (mr *MockAPIServerMockRecorder) AllFacades() *gomock.Call

AllFacades indicates an expected call of AllFacades

type MockRegistry Uses

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

MockRegistry is a mock of Registry interface

func NewMockRegistry Uses

func NewMockRegistry(ctrl *gomock.Controller) *MockRegistry

NewMockRegistry creates a new mock instance

func (*MockRegistry) EXPECT Uses

func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder

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

func (*MockRegistry) GetType Uses

func (m *MockRegistry) GetType(arg0 string, arg1 int) (reflect.Type, error)

GetType mocks base method

func (*MockRegistry) List Uses

func (m *MockRegistry) List() []facade.Description

List mocks base method

type MockRegistryMockRecorder Uses

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

MockRegistryMockRecorder is the mock recorder for MockRegistry

func (*MockRegistryMockRecorder) GetType Uses

func (mr *MockRegistryMockRecorder) GetType(arg0, arg1 interface{}) *gomock.Call

GetType indicates an expected call of GetType

func (*MockRegistryMockRecorder) List Uses

func (mr *MockRegistryMockRecorder) List() *gomock.Call

List indicates an expected call of List

type Registry Uses

type Registry interface {
    List() []facade.Description
    GetType(name string, version int) (reflect.Type, error)
}

Package gen imports 6 packages (graph) and is imported by 2 packages. Updated 2019-08-23. Refresh now. Tools for package owners.