Back to

Package fake

Latest Go to latest

The latest major version is .

Published: Aug 7, 2020 | License: Apache-2.0 | Module:


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

type Vault

type Vault struct {
	NewFn  func(string, corelisters.SecretLister, v1alpha2.GenericIssuer) (*Vault, error)
	SignFn func([]byte, time.Duration) ([]byte, []byte, error)

func New

func New() *Vault

func (*Vault) New

func (v *Vault) New(ns string, sl corelisters.SecretLister, iss v1alpha2.GenericIssuer) (*Vault, error)

func (*Vault) Sign

func (v *Vault) Sign(csrPEM []byte, duration time.Duration) ([]byte, []byte, error)

func (*Vault) Sys

func (v *Vault) Sys() *vault.Sys

func (*Vault) WithNew

func (v *Vault) WithNew(f func(string, corelisters.SecretLister, v1alpha2.GenericIssuer) (*Vault, error)) *Vault

func (*Vault) WithSign

func (v *Vault) WithSign(certPEM, caPEM []byte, err error) *Vault

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier