cert-manager: github.com/jetstack/cert-manager/pkg/internal/vault/fake Index | Files

package fake

import "github.com/jetstack/cert-manager/pkg/internal/vault/fake"

Index

Package Files

client.go vault.go

type Client Uses

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

func NewFakeClient Uses

func NewFakeClient() *Client

func (*Client) NewRequest Uses

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

func (*Client) RawRequest Uses

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

func (*Client) SetToken Uses

func (c *Client) SetToken(v string)

func (*Client) Sys Uses

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

func (*Client) Token Uses

func (c *Client) Token() string

func (*Client) WithNewRequest Uses

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

func (*Client) WithRawRequest Uses

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

type Vault Uses

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

func New Uses

func New() *Vault

func (*Vault) New Uses

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

func (*Vault) Sign Uses

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

func (*Vault) Sys Uses

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

func (*Vault) WithNew Uses

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

func (*Vault) WithSign Uses

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

Package fake imports 5 packages (graph). Updated 2020-02-02. Refresh now. Tools for package owners.