mocks

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) CreateHTTP

func (_m *Client) CreateHTTP(http caddyapi.HTTP) error

CreateHTTP provides a mock function with given fields: http

func (*Client) CreateServer

func (_m *Client) CreateServer(name string, server caddyapi.Server) (string, error)

CreateServer provides a mock function with given fields: name, server

func (*Client) DeleteHTTP

func (_m *Client) DeleteHTTP() error

DeleteHTTP provides a mock function with given fields:

func (*Client) DeleteServer

func (_m *Client) DeleteServer(id string) error

DeleteServer provides a mock function with given fields: id

func (*Client) GetHTTP

func (_m *Client) GetHTTP() (*caddyapi.HTTP, error)

GetHTTP provides a mock function with given fields:

func (*Client) GetServer

func (_m *Client) GetServer(id string) (*caddyapi.Server, error)

GetServer provides a mock function with given fields: id

func (*Client) UpdateHTTPGracePeriod

func (_m *Client) UpdateHTTPGracePeriod(gracePeriod caddyapi.Duration) error

UpdateHTTPGracePeriod provides a mock function with given fields: gracePeriod

func (*Client) UpdateHTTPPort

func (_m *Client) UpdateHTTPPort(httpPort int) error

UpdateHTTPPort provides a mock function with given fields: httpPort

func (*Client) UpdateHTTPSPort

func (_m *Client) UpdateHTTPSPort(httpsPort int) error

UpdateHTTPSPort provides a mock function with given fields: httpsPort

func (*Client) UpdateServerListen

func (_m *Client) UpdateServerListen(id string, listen []string) error

UpdateServerListen provides a mock function with given fields: id, listen

func (*Client) UpdateServerRoutes

func (_m *Client) UpdateServerRoutes(id string, routes []caddyapi.Route) error

UpdateServerRoutes provides a mock function with given fields: id, routes

Jump to

Keyboard shortcuts

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