api

package
v0.0.0-...-e184c60 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

credstore.proto

It has these top-level messages:

AuthRequest
AuthReply
SigningKeyRequest
SigningKeyReply
GetTokenRequest
GetTokenReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCredStoreAuthServer

func RegisterCredStoreAuthServer(s *grpc.Server, srv CredStoreAuthServer)

func RegisterCredStoreServer

func RegisterCredStoreServer(s *grpc.Server, srv CredStoreServer)

Types

type AuthReply

type AuthReply struct {
	// JWT that can be used with other CredStore RPCs.
	AuthJwt string `protobuf:"bytes,1,opt,name=auth_jwt,json=authJwt" json:"auth_jwt,omitempty"`
}

func (*AuthReply) Descriptor

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

func (*AuthReply) GetAuthJwt

func (m *AuthReply) GetAuthJwt() string

func (*AuthReply) ProtoMessage

func (*AuthReply) ProtoMessage()

func (*AuthReply) Reset

func (m *AuthReply) Reset()

func (*AuthReply) String

func (m *AuthReply) String() string

type AuthRequest

type AuthRequest struct {
}

func (*AuthRequest) Descriptor

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

func (*AuthRequest) ProtoMessage

func (*AuthRequest) ProtoMessage()

func (*AuthRequest) Reset

func (m *AuthRequest) Reset()

func (*AuthRequest) String

func (m *AuthRequest) String() string

type CredStoreAuthClient

type CredStoreAuthClient interface {
	// Auth takes in jwt.AppToken (bundled into the binary) and returns a jwt.AppToken,
	// useable for other RPCs with credstore.
	Auth(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthReply, error)
	// Returns the currently used public key.
	SigningKey(ctx context.Context, in *SigningKeyRequest, opts ...grpc.CallOption) (*SigningKeyReply, error)
}

func NewCredStoreAuthClient

func NewCredStoreAuthClient(cc *grpc.ClientConn) CredStoreAuthClient

type CredStoreAuthServer

type CredStoreAuthServer interface {
	// Auth takes in jwt.AppToken (bundled into the binary) and returns a jwt.AppToken,
	// useable for other RPCs with credstore.
	Auth(context.Context, *AuthRequest) (*AuthReply, error)
	// Returns the currently used public key.
	SigningKey(context.Context, *SigningKeyRequest) (*SigningKeyReply, error)
}

type CredStoreClient

type CredStoreClient interface {
	// GetToken provides a JWT token for remote endpoint based on its DNS name.
	GetToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*GetTokenReply, error)
}

func NewCredStoreClient

func NewCredStoreClient(cc *grpc.ClientConn) CredStoreClient

type CredStoreServer

type CredStoreServer interface {
	// GetToken provides a JWT token for remote endpoint based on its DNS name.
	GetToken(context.Context, *GetTokenRequest) (*GetTokenReply, error)
}

type GetTokenReply

type GetTokenReply struct {
	// JWT to use with target RPC.
	SessionJwt string `protobuf:"bytes,1,opt,name=session_jwt,json=sessionJwt" json:"session_jwt,omitempty"`
}

func (*GetTokenReply) Descriptor

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

func (*GetTokenReply) GetSessionJwt

func (m *GetTokenReply) GetSessionJwt() string

func (*GetTokenReply) ProtoMessage

func (*GetTokenReply) ProtoMessage()

func (*GetTokenReply) Reset

func (m *GetTokenReply) Reset()

func (*GetTokenReply) String

func (m *GetTokenReply) String() string

type GetTokenRequest

type GetTokenRequest struct {
	// Target RPC endpoint.
	Target string `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
}

func (*GetTokenRequest) Descriptor

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

func (*GetTokenRequest) GetTarget

func (m *GetTokenRequest) GetTarget() string

func (*GetTokenRequest) ProtoMessage

func (*GetTokenRequest) ProtoMessage()

func (*GetTokenRequest) Reset

func (m *GetTokenRequest) Reset()

func (*GetTokenRequest) String

func (m *GetTokenRequest) String() string

type SigningKeyReply

type SigningKeyReply struct {
	// DER-encoded public key used to sign JWTs on this server.
	SigningKey []byte `protobuf:"bytes,1,opt,name=signing_key,json=signingKey,proto3" json:"signing_key,omitempty"`
}

func (*SigningKeyReply) Descriptor

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

func (*SigningKeyReply) GetSigningKey

func (m *SigningKeyReply) GetSigningKey() []byte

func (*SigningKeyReply) ProtoMessage

func (*SigningKeyReply) ProtoMessage()

func (*SigningKeyReply) Reset

func (m *SigningKeyReply) Reset()

func (*SigningKeyReply) String

func (m *SigningKeyReply) String() string

type SigningKeyRequest

type SigningKeyRequest struct {
}

func (*SigningKeyRequest) Descriptor

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

func (*SigningKeyRequest) ProtoMessage

func (*SigningKeyRequest) ProtoMessage()

func (*SigningKeyRequest) Reset

func (m *SigningKeyRequest) Reset()

func (*SigningKeyRequest) String

func (m *SigningKeyRequest) String() string

Jump to

Keyboard shortcuts

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