Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialType ¶
type CredentialType int
CredentialType designates credentials for different connection edges.
const ( // CredentialUnknown defines unknown connection edge. CredentialUnknown CredentialType = iota // CredentialClient defines m3db client to dbnode connection credentials. CredentialClient // CredentialPeer defines dbnode to dbnode connections credentials. CredentialPeer // CredentialEtcd defines dbnode to etcd connections credentials. CredentialEtcd )
type InboundCredentials ¶
type InboundCredentials struct {
Username string
Digest string
Type CredentialType
}
InboundCredentials encapsulates credentials for inbound RPCs to dbnode.
func (*InboundCredentials) Validate ¶
func (c *InboundCredentials) Validate() error
Validate validates the InboundCredentials.
type Mode ¶
type Mode int
Mode designates a type of authentication.
const ( // ModeUnknown is unknown authentication type case. ModeUnknown Mode = iota // ModeNoAuth is no authentication type case. ModeNoAuth // ModeShadow mode runs authentication in shadow mode. Credentials will be passed // by respective peers/clients but will not be used to reject RPCs in case of auth failure. ModeShadow // ModeEnforced mode runs dbnode in enforced authentication mode. RPCs to dbnode will be rejected // if auth fails. ModeEnforced )
type OutboundCredentials ¶
type OutboundCredentials struct {
Username string
Password string
Zone string
Type CredentialType
}
OutboundCredentials encapsulates credentials for outbound RPCs from dbnode.
func (*OutboundCredentials) Validate ¶
func (c *OutboundCredentials) Validate() error
Validate validates the OutboundCredentials.
Click to show internal directories.
Click to hide internal directories.