fake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 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 Client

type Client struct {
	NewRequestS  *vault.Request
	RawRequestFn func(r *vault.Request) (*vault.Response, error)
	// contains filtered or unexported fields
}

func NewFakeClient

func NewFakeClient() *Client

func (*Client) NewRequest

func (c *Client) NewRequest(method, requestPath string) *vault.Request

func (*Client) RawRequest

func (c *Client) RawRequest(r *vault.Request) (*vault.Response, error)

func (*Client) SetToken

func (c *Client) SetToken(v string)

func (*Client) Sys

func (c *Client) Sys() *vault.Sys

func (*Client) Token

func (c *Client) Token() string

func (*Client) WithNewRequest

func (c *Client) WithNewRequest(r *vault.Request) *Client

func (*Client) WithRawRequest

func (c *Client) WithRawRequest(resp *vault.Response, err error) *Client

Jump to

Keyboard shortcuts

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