istio: istio.io/istio/security/pkg/nodeagent/cache/mock Index | Files

package mock

import "istio.io/istio/security/pkg/nodeagent/cache/mock"

Index

Package Files

secretcache_mock.go

type CAClient Uses

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

func NewMockCAClient Uses

func NewMockCAClient(mockCertChain1st, mockCertChainRemain []string) *CAClient

func (*CAClient) CSRSign Uses

func (c *CAClient) CSRSign(ctx context.Context, csrPEM []byte, exchangedToken string,
    certValidTTLInSec int64) ([]string, error)

type TokenExchangeServer Uses

type TokenExchangeServer struct {
}

func NewMockTokenExchangeServer Uses

func NewMockTokenExchangeServer() *TokenExchangeServer

func (*TokenExchangeServer) ExchangeToken Uses

func (s *TokenExchangeServer) ExchangeToken(context.Context, string, string) (string, time.Time, int, error)

Package mock imports 7 packages (graph). Updated 2019-09-13. Refresh now. Tools for package owners.