Versions in this module Expand all Collapse all v1 v1.11.0 Dec 24, 2018 v1.10.0 Aug 16, 2018 Changes in this version + const Version + var CheckRegistration = "verify-registration" + type Authorizer interface + Authorize func(context.Context, *NodeRegistration) error + Close func() error + Name func() string + type Config struct + AuthorizationTimeout time.Duration + ClientCommonName string + ClusterName string + ClusterTag string + EnableVerbose bool + Features []string + Listen string + TLSCertPath string + TLSClientCAPath string + TLSPrivateKeyPath string + TokenDuration time.Duration + func (c *Config) IsValid() error + func (c *Config) UseFeature(name string) bool + type NodeAuthorizer struct + func New(config *Config, authorizer Authorizer) (*NodeAuthorizer, error) + func (n *NodeAuthorizer) Run() error + type NodeRegistration struct + Spec NodeRegistrationSpec + Status NodeRegistrationStatus + func (n *NodeRegistration) Deny(reason string) + func (n *NodeRegistration) IsAllowed() bool + type NodeRegistrationSpec struct + NodeName string + RemoteAddr string + Request []byte + type NodeRegistrationStatus struct + Allowed bool + Reason string + Token string + type Token struct + ID string + Secret string + func NewToken() (*Token, error) + func (t *Token) Name() string + func (t *Token) String() string + type Verifier interface + VerifyIdentity func(context.Context) ([]byte, error)