cache

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 9 Imported by: 0

Documentation

Overview

Package cache defines a cache service which can return all secrets and policies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache defines a cache service used to list all secrets and policies.

func GetCacheInsOr

func GetCacheInsOr(store store.Factory) (*Cache, error)

GetCacheInsOr return cache server instance with given factory.

func (*Cache) ListPolicies

func (c *Cache) ListPolicies(ctx context.Context, r *pb.ListPoliciesRequest) (*pb.ListPoliciesResponse, error)

ListPolicies returns all policies.

func (*Cache) ListSecrets

func (c *Cache) ListSecrets(ctx context.Context, r *pb.ListSecretsRequest) (*pb.ListSecretsResponse, error)

ListSecrets returns all secrets.

Jump to

Keyboard shortcuts

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