mock

package
v0.0.0-...-bf260ca Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 2 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(*dubbo.Dubbo) error
}

func NewBuilder

func NewBuilder() *Builder

func (*Builder) Build

func (i *Builder) Build(ctx context.Context, f *dubbo.Dubbo) error

type Client

type Client struct {
	// Members used to confirm certain configuration was used for instantiation
	// (roughly map to the real clients WithX functions)
	Confirm          bool
	RepositoriesPath string
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Repositories

func (c *Client) Repositories() *Repositories

type Pusher

type Pusher struct {
	PushInvoked bool
	PushFn      func(*dubbo.Dubbo) (string, error)
}

func NewPusher

func NewPusher() *Pusher

func (*Pusher) Push

func (i *Pusher) Push(ctx context.Context, f *dubbo.Dubbo) (string, error)

type Repositories

type Repositories struct {
	// Members which record whether or not the various methods were invoked.
	ListInvoked bool
	// contains filtered or unexported fields
}

func NewRepositories

func NewRepositories() *Repositories

func (*Repositories) Add

func (r *Repositories) Add(name, url string) (string, error)

func (*Repositories) All

func (r *Repositories) All() ([]dubbo.Repository, error)

func (*Repositories) List

func (r *Repositories) List() ([]string, error)

func (*Repositories) Remove

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

func (*Repositories) Rename

func (r *Repositories) Rename(old, new string) error

Jump to

Keyboard shortcuts

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