proto

package
v0.0.0-...-5cf96db Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 104

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAuthenticationManagerServer

func RegisterAuthenticationManagerServer(s *grpc.Server, srv AuthenticationManagerServer)

func RegisterTLSConfigurationSourceServer

func RegisterTLSConfigurationSourceServer(s *grpc.Server, srv TLSConfigurationSourceServer)

Types

type AuthenticationManagerClient

type AuthenticationManagerClient interface {
	//
	// Perform authentication of the token. Return a token that contains expiry date and granted authorities
	Authenticate(ctx context.Context, in *AuthenticationToken, opts ...grpc.CallOption) (*PreAuthenticatedAuthenticationToken, error)
}

AuthenticationManagerClient is the client API for AuthenticationManager service.

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

func NewAuthenticationManagerClient

func NewAuthenticationManagerClient(cc *grpc.ClientConn) AuthenticationManagerClient

type AuthenticationManagerServer

type AuthenticationManagerServer interface {
	//
	// Perform authentication of the token. Return a token that contains expiry date and granted authorities
	Authenticate(context.Context, *AuthenticationToken) (*PreAuthenticatedAuthenticationToken, error)
}

AuthenticationManagerServer is the server API for AuthenticationManager service.

type AuthenticationToken

type AuthenticationToken struct {
	RawToken             []byte   `protobuf:"bytes,1,opt,name=rawToken,proto3" json:"rawToken,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Representing the access token for an authentication request

func (*AuthenticationToken) Descriptor

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

func (*AuthenticationToken) GetRawToken

func (m *AuthenticationToken) GetRawToken() []byte

func (*AuthenticationToken) ProtoMessage

func (*AuthenticationToken) ProtoMessage()

func (*AuthenticationToken) Reset

func (m *AuthenticationToken) Reset()

func (*AuthenticationToken) String

func (m *AuthenticationToken) String() string

func (*AuthenticationToken) XXX_DiscardUnknown

func (m *AuthenticationToken) XXX_DiscardUnknown()

func (*AuthenticationToken) XXX_Marshal

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

func (*AuthenticationToken) XXX_Merge

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

func (*AuthenticationToken) XXX_Size

func (m *AuthenticationToken) XXX_Size() int

func (*AuthenticationToken) XXX_Unmarshal

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

type GrantedAuthority

type GrantedAuthority struct {
	// `geth` RPC API namespace. E.g.: rpc, eth, admin, debug, ...
	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// `geth` RPC API function. E.g.: nodeInfo, blockNumber, ...
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// raw string of the the granted authority value. This gives plugin implementation freedom to interpret the value
	Raw                  string   `protobuf:"bytes,3,opt,name=raw,proto3" json:"raw,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Representing a permission being extracted from access token by the plugin implementation. This permission is then stored in security context of a request and used internally to decide if the access is granted/denied

func (*GrantedAuthority) Descriptor

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

func (*GrantedAuthority) GetMethod

func (m *GrantedAuthority) GetMethod() string

func (*GrantedAuthority) GetRaw

func (m *GrantedAuthority) GetRaw() string

func (*GrantedAuthority) GetService

func (m *GrantedAuthority) GetService() string

func (*GrantedAuthority) ProtoMessage

func (*GrantedAuthority) ProtoMessage()

func (*GrantedAuthority) Reset

func (m *GrantedAuthority) Reset()

func (*GrantedAuthority) String

func (m *GrantedAuthority) String() string

func (*GrantedAuthority) XXX_DiscardUnknown

func (m *GrantedAuthority) XXX_DiscardUnknown()

func (*GrantedAuthority) XXX_Marshal

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

func (*GrantedAuthority) XXX_Merge

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

func (*GrantedAuthority) XXX_Size

func (m *GrantedAuthority) XXX_Size() int

func (*GrantedAuthority) XXX_Unmarshal

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

type PreAuthenticatedAuthenticationToken

type PreAuthenticatedAuthenticationToken struct {
	RawToken             []byte               `protobuf:"bytes,1,opt,name=rawToken,proto3" json:"rawToken,omitempty"`
	ExpiredAt            *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expiredAt,proto3" json:"expiredAt,omitempty"`
	Authorities          []*GrantedAuthority  `protobuf:"bytes,3,rep,name=authorities,proto3" json:"authorities,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Representing an authenticated principal after `AuthenticationToken` has been processed

func (*PreAuthenticatedAuthenticationToken) Descriptor

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

func (*PreAuthenticatedAuthenticationToken) GetAuthorities

func (*PreAuthenticatedAuthenticationToken) GetExpiredAt

func (*PreAuthenticatedAuthenticationToken) GetRawToken

func (m *PreAuthenticatedAuthenticationToken) GetRawToken() []byte

func (*PreAuthenticatedAuthenticationToken) ProtoMessage

func (*PreAuthenticatedAuthenticationToken) ProtoMessage()

func (*PreAuthenticatedAuthenticationToken) Reset

func (*PreAuthenticatedAuthenticationToken) String

func (*PreAuthenticatedAuthenticationToken) XXX_DiscardUnknown

func (m *PreAuthenticatedAuthenticationToken) XXX_DiscardUnknown()

func (*PreAuthenticatedAuthenticationToken) XXX_Marshal

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

func (*PreAuthenticatedAuthenticationToken) XXX_Merge

func (*PreAuthenticatedAuthenticationToken) XXX_Size

func (*PreAuthenticatedAuthenticationToken) XXX_Unmarshal

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

type TLSConfiguration

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

* A wrapper message to logically group other messages

func (*TLSConfiguration) Descriptor

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

func (*TLSConfiguration) ProtoMessage

func (*TLSConfiguration) ProtoMessage()

func (*TLSConfiguration) Reset

func (m *TLSConfiguration) Reset()

func (*TLSConfiguration) String

func (m *TLSConfiguration) String() string

func (*TLSConfiguration) XXX_DiscardUnknown

func (m *TLSConfiguration) XXX_DiscardUnknown()

func (*TLSConfiguration) XXX_Marshal

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

func (*TLSConfiguration) XXX_Merge

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

func (*TLSConfiguration) XXX_Size

func (m *TLSConfiguration) XXX_Size() int

func (*TLSConfiguration) XXX_Unmarshal

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

type TLSConfigurationSourceClient

type TLSConfigurationSourceClient interface {
	Get(ctx context.Context, in *TLSConfiguration_Request, opts ...grpc.CallOption) (*TLSConfiguration_Response, error)
}

TLSConfigurationSourceClient is the client API for TLSConfigurationSource service.

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

func NewTLSConfigurationSourceClient

func NewTLSConfigurationSourceClient(cc *grpc.ClientConn) TLSConfigurationSourceClient

type TLSConfigurationSourceServer

type TLSConfigurationSourceServer interface {
	Get(context.Context, *TLSConfiguration_Request) (*TLSConfiguration_Response, error)
}

TLSConfigurationSourceServer is the server API for TLSConfigurationSource service.

type TLSConfiguration_Data

type TLSConfiguration_Data struct {
	// Private key in PEM format
	KeyPem []byte `protobuf:"bytes,1,opt,name=keyPem,proto3" json:"keyPem,omitempty"`
	// Certificate in PEM format
	CertPem []byte `protobuf:"bytes,2,opt,name=certPem,proto3" json:"certPem,omitempty"`
	// List of cipher suites constants being supported by the server
	CipherSuites         []uint32 `protobuf:"varint,3,rep,packed,name=cipherSuites,proto3" json:"cipherSuites,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

TLS configuration data for `geth`

func (*TLSConfiguration_Data) Descriptor

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

func (*TLSConfiguration_Data) GetCertPem

func (m *TLSConfiguration_Data) GetCertPem() []byte

func (*TLSConfiguration_Data) GetCipherSuites

func (m *TLSConfiguration_Data) GetCipherSuites() []uint32

func (*TLSConfiguration_Data) GetKeyPem

func (m *TLSConfiguration_Data) GetKeyPem() []byte

func (*TLSConfiguration_Data) ProtoMessage

func (*TLSConfiguration_Data) ProtoMessage()

func (*TLSConfiguration_Data) Reset

func (m *TLSConfiguration_Data) Reset()

func (*TLSConfiguration_Data) String

func (m *TLSConfiguration_Data) String() string

func (*TLSConfiguration_Data) XXX_DiscardUnknown

func (m *TLSConfiguration_Data) XXX_DiscardUnknown()

func (*TLSConfiguration_Data) XXX_Marshal

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

func (*TLSConfiguration_Data) XXX_Merge

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

func (*TLSConfiguration_Data) XXX_Size

func (m *TLSConfiguration_Data) XXX_Size() int

func (*TLSConfiguration_Data) XXX_Unmarshal

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

type TLSConfiguration_Request

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

It's an empty Request received by RPC service

func (*TLSConfiguration_Request) Descriptor

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

func (*TLSConfiguration_Request) ProtoMessage

func (*TLSConfiguration_Request) ProtoMessage()

func (*TLSConfiguration_Request) Reset

func (m *TLSConfiguration_Request) Reset()

func (*TLSConfiguration_Request) String

func (m *TLSConfiguration_Request) String() string

func (*TLSConfiguration_Request) XXX_DiscardUnknown

func (m *TLSConfiguration_Request) XXX_DiscardUnknown()

func (*TLSConfiguration_Request) XXX_Marshal

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

func (*TLSConfiguration_Request) XXX_Merge

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

func (*TLSConfiguration_Request) XXX_Size

func (m *TLSConfiguration_Request) XXX_Size() int

func (*TLSConfiguration_Request) XXX_Unmarshal

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

type TLSConfiguration_Response

type TLSConfiguration_Response struct {
	Data                 *TLSConfiguration_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

Response from RPC service

func (*TLSConfiguration_Response) Descriptor

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

func (*TLSConfiguration_Response) GetData

func (*TLSConfiguration_Response) ProtoMessage

func (*TLSConfiguration_Response) ProtoMessage()

func (*TLSConfiguration_Response) Reset

func (m *TLSConfiguration_Response) Reset()

func (*TLSConfiguration_Response) String

func (m *TLSConfiguration_Response) String() string

func (*TLSConfiguration_Response) XXX_DiscardUnknown

func (m *TLSConfiguration_Response) XXX_DiscardUnknown()

func (*TLSConfiguration_Response) XXX_Marshal

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

func (*TLSConfiguration_Response) XXX_Merge

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

func (*TLSConfiguration_Response) XXX_Size

func (m *TLSConfiguration_Response) XXX_Size() int

func (*TLSConfiguration_Response) XXX_Unmarshal

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

type UnimplementedAuthenticationManagerServer

type UnimplementedAuthenticationManagerServer struct {
}

UnimplementedAuthenticationManagerServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthenticationManagerServer) Authenticate

type UnimplementedTLSConfigurationSourceServer

type UnimplementedTLSConfigurationSourceServer struct {
}

UnimplementedTLSConfigurationSourceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTLSConfigurationSourceServer) Get

Jump to

Keyboard shortcuts

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