v1

package
v0.0.0-...-b37c9ab Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_apiserver_v1_cache_proto protoreflect.FileDescriptor

Functions

func RegisterCacheServer

func RegisterCacheServer(s *grpc.Server, srv CacheServer)

Types

type CacheClient

type CacheClient interface {
	ListSecrets(ctx context.Context, in *ListSecretsRequest, opts ...grpc.CallOption) (*ListSecretsResponse, error)
	ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error)
}

CacheClient is the client API for Cache service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCacheClient

func NewCacheClient(cc grpc.ClientConnInterface) CacheClient

type CacheServer

type CacheServer interface {
	ListSecrets(context.Context, *ListSecretsRequest) (*ListSecretsResponse, error)
	ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error)
}

CacheServer is the server API for Cache service.

type ListPoliciesRequest

type ListPoliciesRequest struct {
	Offset *int64 `protobuf:"varint,1,opt,name=offset,proto3,oneof" json:"offset,omitempty"`
	Limit  *int64 `protobuf:"varint,2,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

ListPoliciesRequest defines ListPolicies request struct.

func (*ListPoliciesRequest) Descriptor deprecated

func (*ListPoliciesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListPoliciesRequest.ProtoReflect.Descriptor instead.

func (*ListPoliciesRequest) GetLimit

func (x *ListPoliciesRequest) GetLimit() int64

func (*ListPoliciesRequest) GetOffset

func (x *ListPoliciesRequest) GetOffset() int64

func (*ListPoliciesRequest) ProtoMessage

func (*ListPoliciesRequest) ProtoMessage()

func (*ListPoliciesRequest) ProtoReflect

func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message

func (*ListPoliciesRequest) Reset

func (x *ListPoliciesRequest) Reset()

func (*ListPoliciesRequest) String

func (x *ListPoliciesRequest) String() string

type ListPoliciesResponse

type ListPoliciesResponse struct {
	TotalCount int64         `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	Items      []*PolicyInfo `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

ListPoliciesResponse defines ListPolicies response struct.

func (*ListPoliciesResponse) Descriptor deprecated

func (*ListPoliciesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListPoliciesResponse.ProtoReflect.Descriptor instead.

func (*ListPoliciesResponse) GetItems

func (x *ListPoliciesResponse) GetItems() []*PolicyInfo

func (*ListPoliciesResponse) GetTotalCount

func (x *ListPoliciesResponse) GetTotalCount() int64

func (*ListPoliciesResponse) ProtoMessage

func (*ListPoliciesResponse) ProtoMessage()

func (*ListPoliciesResponse) ProtoReflect

func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message

func (*ListPoliciesResponse) Reset

func (x *ListPoliciesResponse) Reset()

func (*ListPoliciesResponse) String

func (x *ListPoliciesResponse) String() string

type ListSecretsRequest

type ListSecretsRequest struct {
	Offset *int64 `protobuf:"varint,1,opt,name=offset,proto3,oneof" json:"offset,omitempty"`
	Limit  *int64 `protobuf:"varint,2,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

ListSecretsRequest defines ListSecrets request struct.

func (*ListSecretsRequest) Descriptor deprecated

func (*ListSecretsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSecretsRequest.ProtoReflect.Descriptor instead.

func (*ListSecretsRequest) GetLimit

func (x *ListSecretsRequest) GetLimit() int64

func (*ListSecretsRequest) GetOffset

func (x *ListSecretsRequest) GetOffset() int64

func (*ListSecretsRequest) ProtoMessage

func (*ListSecretsRequest) ProtoMessage()

func (*ListSecretsRequest) ProtoReflect

func (x *ListSecretsRequest) ProtoReflect() protoreflect.Message

func (*ListSecretsRequest) Reset

func (x *ListSecretsRequest) Reset()

func (*ListSecretsRequest) String

func (x *ListSecretsRequest) String() string

type ListSecretsResponse

type ListSecretsResponse struct {
	TotalCount int64         `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	Items      []*SecretInfo `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

ListSecretsResponse defines ListSecrets response struct.

func (*ListSecretsResponse) Descriptor deprecated

func (*ListSecretsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSecretsResponse.ProtoReflect.Descriptor instead.

func (*ListSecretsResponse) GetItems

func (x *ListSecretsResponse) GetItems() []*SecretInfo

func (*ListSecretsResponse) GetTotalCount

func (x *ListSecretsResponse) GetTotalCount() int64

func (*ListSecretsResponse) ProtoMessage

func (*ListSecretsResponse) ProtoMessage()

func (*ListSecretsResponse) ProtoReflect

func (x *ListSecretsResponse) ProtoReflect() protoreflect.Message

func (*ListSecretsResponse) Reset

func (x *ListSecretsResponse) Reset()

func (*ListSecretsResponse) String

func (x *ListSecretsResponse) String() string

type PolicyInfo

type PolicyInfo struct {
	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Username     string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	PolicyStr    string `protobuf:"bytes,3,opt,name=policy_str,json=policyStr,proto3" json:"policy_str,omitempty"`
	PolicyShadow string `protobuf:"bytes,4,opt,name=policy_shadow,json=policyShadow,proto3" json:"policy_shadow,omitempty"`
	CreatedAt    string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

PolicyInfo contains policy details.

func (*PolicyInfo) Descriptor deprecated

func (*PolicyInfo) Descriptor() ([]byte, []int)

Deprecated: Use PolicyInfo.ProtoReflect.Descriptor instead.

func (*PolicyInfo) GetCreatedAt

func (x *PolicyInfo) GetCreatedAt() string

func (*PolicyInfo) GetName

func (x *PolicyInfo) GetName() string

func (*PolicyInfo) GetPolicyShadow

func (x *PolicyInfo) GetPolicyShadow() string

func (*PolicyInfo) GetPolicyStr

func (x *PolicyInfo) GetPolicyStr() string

func (*PolicyInfo) GetUsername

func (x *PolicyInfo) GetUsername() string

func (*PolicyInfo) ProtoMessage

func (*PolicyInfo) ProtoMessage()

func (*PolicyInfo) ProtoReflect

func (x *PolicyInfo) ProtoReflect() protoreflect.Message

func (*PolicyInfo) Reset

func (x *PolicyInfo) Reset()

func (*PolicyInfo) String

func (x *PolicyInfo) String() string

type SecretInfo

type SecretInfo struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	SecretId    string `protobuf:"bytes,2,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	Username    string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	SecretKey   string `protobuf:"bytes,4,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
	Expires     int64  `protobuf:"varint,5,opt,name=expires,proto3" json:"expires,omitempty"`
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	CreatedAt   string `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   string `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

SecretInfo contains secret details.

func (*SecretInfo) Descriptor deprecated

func (*SecretInfo) Descriptor() ([]byte, []int)

Deprecated: Use SecretInfo.ProtoReflect.Descriptor instead.

func (*SecretInfo) GetCreatedAt

func (x *SecretInfo) GetCreatedAt() string

func (*SecretInfo) GetDescription

func (x *SecretInfo) GetDescription() string

func (*SecretInfo) GetExpires

func (x *SecretInfo) GetExpires() int64

func (*SecretInfo) GetName

func (x *SecretInfo) GetName() string

func (*SecretInfo) GetSecretId

func (x *SecretInfo) GetSecretId() string

func (*SecretInfo) GetSecretKey

func (x *SecretInfo) GetSecretKey() string

func (*SecretInfo) GetUpdatedAt

func (x *SecretInfo) GetUpdatedAt() string

func (*SecretInfo) GetUsername

func (x *SecretInfo) GetUsername() string

func (*SecretInfo) ProtoMessage

func (*SecretInfo) ProtoMessage()

func (*SecretInfo) ProtoReflect

func (x *SecretInfo) ProtoReflect() protoreflect.Message

func (*SecretInfo) Reset

func (x *SecretInfo) Reset()

func (*SecretInfo) String

func (x *SecretInfo) String() string

type UnimplementedCacheServer

type UnimplementedCacheServer struct {
}

UnimplementedCacheServer can be embedded to have forward compatible implementations.

func (*UnimplementedCacheServer) ListPolicies

func (*UnimplementedCacheServer) ListSecrets

Jump to

Keyboard shortcuts

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