auth

package
v0.0.0-...-6e34d32 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Identity) GetCsr

func (m *Identity) GetCsr() string

func (*Identity) ProtoMessage

func (*Identity) ProtoMessage()

func (*Identity) Reset

func (m *Identity) Reset()

func (*Identity) String

func (m *Identity) String() string

func (*Identity) XXX_DiscardUnknown

func (m *Identity) XXX_DiscardUnknown()

func (*Identity) XXX_Marshal

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

func (*Identity) XXX_Merge

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

func (*Identity) XXX_Size

func (m *Identity) XXX_Size() int

func (*Identity) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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