Documentation
¶
Index ¶
- func RegisterAgentServiceServer(s *grpc.Server, srv AgentServiceServer)
- type AgentServiceClient
- type AgentServiceServer
- type AuthnRequest
- func (*AuthnRequest) Descriptor() ([]byte, []int)
- func (m *AuthnRequest) GetToken() string
- func (*AuthnRequest) ProtoMessage()
- func (m *AuthnRequest) Reset()
- func (m *AuthnRequest) String() string
- func (m *AuthnRequest) XXX_DiscardUnknown()
- func (m *AuthnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthnRequest) XXX_Merge(src proto.Message)
- func (m *AuthnRequest) XXX_Size() int
- func (m *AuthnRequest) XXX_Unmarshal(b []byte) error
- type AuthnResponse
- func (*AuthnResponse) Descriptor() ([]byte, []int)
- func (*AuthnResponse) ProtoMessage()
- func (m *AuthnResponse) Reset()
- func (m *AuthnResponse) String() string
- func (m *AuthnResponse) XXX_DiscardUnknown()
- func (m *AuthnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthnResponse) XXX_Merge(src proto.Message)
- func (m *AuthnResponse) XXX_Size() int
- func (m *AuthnResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedAgentServiceServer
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 ¶
func (*UnimplementedAgentServiceServer) Authenticate(ctx context.Context, req *AuthnRequest) (*AuthnResponse, error)
Click to show internal directories.
Click to hide internal directories.