agent

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAgentServiceServer

func RegisterAgentServiceServer(s *grpc.Server, srv AgentServiceServer)

Types

type AgentServiceClient

type AgentServiceClient interface {
	// Give the agent an authn token with which it can retrieve a new cert
	Authenticate(ctx context.Context, in *AuthnRequest, opts ...grpc.CallOption) (*AuthnResponse, error)
}

AgentServiceClient is the client API for AgentService service.

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

func NewAgentServiceClient

func NewAgentServiceClient(cc *grpc.ClientConn) AgentServiceClient

func NewClient

func NewClient(path string) (AgentServiceClient, error)

NewClient creates anew RPC client for an Agent

type AgentServiceServer

type AgentServiceServer interface {
	// Give the agent an authn token with which it can retrieve a new cert
	Authenticate(context.Context, *AuthnRequest) (*AuthnResponse, error)
}

AgentServiceServer is the server API for AgentService service.

type AuthnRequest

type AuthnRequest struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthnRequest) Descriptor

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

func (*AuthnRequest) GetToken

func (m *AuthnRequest) GetToken() string

func (*AuthnRequest) ProtoMessage

func (*AuthnRequest) ProtoMessage()

func (*AuthnRequest) Reset

func (m *AuthnRequest) Reset()

func (*AuthnRequest) String

func (m *AuthnRequest) String() string

func (*AuthnRequest) XXX_DiscardUnknown

func (m *AuthnRequest) XXX_DiscardUnknown()

func (*AuthnRequest) XXX_Marshal

func (m *AuthnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthnRequest) XXX_Merge

func (m *AuthnRequest) XXX_Merge(src proto.Message)

func (*AuthnRequest) XXX_Size

func (m *AuthnRequest) XXX_Size() int

func (*AuthnRequest) XXX_Unmarshal

func (m *AuthnRequest) XXX_Unmarshal(b []byte) error

type AuthnResponse

type AuthnResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthnResponse) Descriptor

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

func (*AuthnResponse) ProtoMessage

func (*AuthnResponse) ProtoMessage()

func (*AuthnResponse) Reset

func (m *AuthnResponse) Reset()

func (*AuthnResponse) String

func (m *AuthnResponse) String() string

func (*AuthnResponse) XXX_DiscardUnknown

func (m *AuthnResponse) XXX_DiscardUnknown()

func (*AuthnResponse) XXX_Marshal

func (m *AuthnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthnResponse) XXX_Merge

func (m *AuthnResponse) XXX_Merge(src proto.Message)

func (*AuthnResponse) XXX_Size

func (m *AuthnResponse) XXX_Size() int

func (*AuthnResponse) XXX_Unmarshal

func (m *AuthnResponse) XXX_Unmarshal(b []byte) error

type UnimplementedAgentServiceServer

type UnimplementedAgentServiceServer struct {
}

UnimplementedAgentServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAgentServiceServer) Authenticate

Jump to

Keyboard shortcuts

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