Documentation ¶
Index ¶
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type Credentials
- func (*Credentials) Descriptor() ([]byte, []int)
- func (m *Credentials) GetCaChain() []string
- func (m *Credentials) GetCaPool() []string
- func (m *Credentials) GetCertificate() string
- func (m *Credentials) GetId() string
- func (*Credentials) ProtoMessage()
- func (m *Credentials) Reset()
- func (m *Credentials) String() string
- func (m *Credentials) XXX_DiscardUnknown()
- func (m *Credentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Credentials) XXX_Merge(src proto.Message)
- func (m *Credentials) XXX_Size() int
- func (m *Credentials) XXX_Unmarshal(b []byte) error
- type Identity
- func (*Identity) Descriptor() ([]byte, []int)
- func (m *Identity) GetCsr() string
- func (*Identity) ProtoMessage()
- func (m *Identity) Reset()
- func (m *Identity) String() string
- func (m *Identity) XXX_DiscardUnknown()
- func (m *Identity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Identity) XXX_Merge(src proto.Message)
- func (m *Identity) XXX_Size() int
- func (m *Identity) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface {
RequestCredentials(ctx context.Context, in *Identity, opts ...grpc.CallOption) (*Credentials, error)
}
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc *grpc.ClientConn) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface {
RequestCredentials(context.Context, *Identity) (*Credentials, error)
}
AuthServiceServer is the server API for AuthService service.
type Credentials ¶
type Credentials struct { // An identifier for the set of credentials Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // A PEM-encoded signed certificate for the CSR Certificate string `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` // A PEM-encoded certificate chain, starting with the issuing CA and // ending with the root CA (inclusive) CaChain []string `protobuf:"bytes,3,rep,name=ca_chain,json=caChain,proto3" json:"ca_chain,omitempty"` // A PEM-encoded CAs to be added to the client's CA pool CaPool []string `protobuf:"bytes,4,rep,name=ca_pool,json=caPool,proto3" json:"ca_pool,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Credentials defines a response for a request to obtain authentication credentials. These credentials may be used to further communicate with endpoint(s) that are protected by a form of authentication.
Any strings that are annotated as "PEM-encoded" implies that encoding format is used, with any newlines indicated with `\n` characters. Most languages provide encoders that correctly marshal this out. For more information, see the RFC here: https://tools.ietf.org/html/rfc7468
func (*Credentials) Descriptor ¶
func (*Credentials) Descriptor() ([]byte, []int)
func (*Credentials) GetCaChain ¶
func (m *Credentials) GetCaChain() []string
func (*Credentials) GetCaPool ¶
func (m *Credentials) GetCaPool() []string
func (*Credentials) GetCertificate ¶
func (m *Credentials) GetCertificate() string
func (*Credentials) GetId ¶
func (m *Credentials) GetId() string
func (*Credentials) ProtoMessage ¶
func (*Credentials) ProtoMessage()
func (*Credentials) Reset ¶
func (m *Credentials) Reset()
func (*Credentials) String ¶
func (m *Credentials) String() string
func (*Credentials) XXX_DiscardUnknown ¶
func (m *Credentials) XXX_DiscardUnknown()
func (*Credentials) XXX_Marshal ¶
func (m *Credentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Credentials) XXX_Merge ¶
func (m *Credentials) XXX_Merge(src proto.Message)
func (*Credentials) XXX_Size ¶
func (m *Credentials) XXX_Size() int
func (*Credentials) XXX_Unmarshal ¶
func (m *Credentials) XXX_Unmarshal(b []byte) error
type Identity ¶
type Identity struct { // A PEM-encoded certificate signing request (CSR) Csr string `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Identity defines a request to obtain authentication credentials. These credentials would be used to further communicate with endpoint(s) that are protected by a form of authentication.
Any strings that are annotated as "PEM-encoded" implies that encoding format is used, with any newlines indicated with `\n` characters. Most languages provide encoders that correctly marshal this out. For more information, see the RFC here: https://tools.ietf.org/html/rfc7468
func (*Identity) Descriptor ¶
func (*Identity) ProtoMessage ¶
func (*Identity) ProtoMessage()
func (*Identity) XXX_DiscardUnknown ¶
func (m *Identity) XXX_DiscardUnknown()