remock

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateContainer

func ValidateContainer(container model.Container) error

func ValidateDeployment

func ValidateDeployment(deployment model.Deployment) error

Types

type Mock

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

func NewMock

func NewMock() *Mock

func (*Mock) Delete

func (mock *Mock) Delete(req rest.Rq) error

func (*Mock) Get

func (mock *Mock) Get(req rest.Rq) error

func (*Mock) Post

func (mock *Mock) Post(req rest.Rq) error

func (*Mock) Put

func (mock *Mock) Put(req rest.Rq) error

func (*Mock) SetFingerprint

func (mock *Mock) SetFingerprint(fingerprint string)

func (*Mock) SetToken

func (mock *Mock) SetToken(token string)

type RqValidator

type RqValidator struct {
	rest.Rq
}

func (*RqValidator) Validate

func (rqv *RqValidator) Validate() error

func (*RqValidator) ValidateBody

func (rqv *RqValidator) ValidateBody() error

func (*RqValidator) ValidateURL

func (rqv *RqValidator) ValidateURL() error

Directories

Path Synopsis
Code generated by noice.
Code generated by noice.

Jump to

Keyboard shortcuts

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