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

package gen

import "github.com/wallyworld/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
    AdminFacadeDetails() []facade.Details
}

go:generate go run github.com/golang/mock/mockgen -package gen -destination describeapi_mock.go github.com/juju/juju/generate/schemagen/gen APIServer,Registry,PackageRegistry,Linker

type FacadeSchema Uses

type FacadeSchema struct {
    Name        string
    Description string
    Version     int
    AvailableTo []string
    Schema      *jsonschema.Schema
}

func Generate Uses

func Generate(pkgRegistry PackageRegistry, linker Linker, client APIServer, options ...Option) ([]FacadeSchema, error)

Generate a FacadeSchema from the APIServer

type Linker Uses

type Linker interface {
    Links(string, facade.Factory) []string
}

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) AdminFacadeDetails Uses

func (m *MockAPIServer) AdminFacadeDetails() []facade.Details

AdminFacadeDetails mocks base method

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) AdminFacadeDetails Uses

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

AdminFacadeDetails indicates an expected call of AdminFacadeDetails

func (*MockAPIServerMockRecorder) AllFacades Uses

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

AllFacades indicates an expected call of AllFacades

type MockLinker Uses

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

MockLinker is a mock of Linker interface

func NewMockLinker Uses

func NewMockLinker(ctrl *gomock.Controller) *MockLinker

NewMockLinker creates a new mock instance

func (*MockLinker) EXPECT Uses

func (m *MockLinker) EXPECT() *MockLinkerMockRecorder

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

func (m *MockLinker) Links(arg0 string, arg1 facade.Factory) []string

Links mocks base method

type MockLinkerMockRecorder Uses

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

MockLinkerMockRecorder is the mock recorder for MockLinker

func (mr *MockLinkerMockRecorder) Links(arg0, arg1 interface{}) *gomock.Call

Links indicates an expected call of Links

type MockPackageRegistry Uses

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

MockPackageRegistry is a mock of PackageRegistry interface

func NewMockPackageRegistry Uses

func NewMockPackageRegistry(ctrl *gomock.Controller) *MockPackageRegistry

NewMockPackageRegistry creates a new mock instance

func (*MockPackageRegistry) EXPECT Uses

func (m *MockPackageRegistry) EXPECT() *MockPackageRegistryMockRecorder

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

func (*MockPackageRegistry) LoadPackage Uses

func (m *MockPackageRegistry) LoadPackage() (*packages.Package, error)

LoadPackage mocks base method

type MockPackageRegistryMockRecorder Uses

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

MockPackageRegistryMockRecorder is the mock recorder for MockPackageRegistry

func (*MockPackageRegistryMockRecorder) LoadPackage Uses

func (mr *MockPackageRegistryMockRecorder) LoadPackage() *gomock.Call

LoadPackage indicates an expected call of LoadPackage

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

func (*MockRegistry) ListDetails Uses

func (m *MockRegistry) ListDetails() []facade.Details

ListDetails 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

func (*MockRegistryMockRecorder) ListDetails Uses

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

ListDetails indicates an expected call of ListDetails

type Option Uses

type Option func(*options)

Option to be passed to Connect to customize the resulting instance.

func WithAdminFacades Uses

func WithAdminFacades(adminFacades bool) Option

WithAdminFacades sets the adminFacades on the option

type PackageRegistry Uses

type PackageRegistry interface {
    LoadPackage() (*packages.Package, error)
}

type Registry Uses

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

Package gen imports 12 packages (graph). Updated 2020-08-08. Refresh now. Tools for package owners.