Documentation ¶
Index ¶
- type CA
- func (c *CA) GetRevokedCertificate(ctx context.Context, serial *big.Int) ([]*database.RevokedCertificate, error)
- func (c *CA) GetSignedCertificate(ctx context.Context, serial *big.Int) ([]*database.SignedCertificate, error)
- func (c *CA) NewSerialNumber(ctx context.Context) (*big.Int, error)
- func (c *CA) SetRevokedCertificate(ctx context.Context, certificate *database.RevokedCertificate) error
- func (c *CA) SetSignedCertificate(ctx context.Context, certificate *database.SignedCertificate) error
- func (c *CA) WatchRevokeCertificate() chan *database.RevokedCertificate
- type ClusterDatabase
- type Compactor
- type RelayLocator
- func (l *RelayLocator) Delete(ctx context.Context, name, addr string) error
- func (l *RelayLocator) Get(name string) (*database.Relay, bool)
- func (l *RelayLocator) GetListenedAddrs() []string
- func (l *RelayLocator) Gone() chan *database.Relay
- func (l *RelayLocator) ListAllConnectedAgents() []*database.Relay
- func (l *RelayLocator) Set(ctx context.Context, r *database.Relay) error
- func (l *RelayLocator) Update(ctx context.Context, relay *database.Relay) error
- type TemporaryToken
- func (t *TemporaryToken) AllCodes(ctx context.Context) ([]*database.Code, error)
- func (t *TemporaryToken) AllTokens(ctx context.Context) ([]*database.Token, error)
- func (t *TemporaryToken) DeleteCode(ctx context.Context, code string) error
- func (t *TemporaryToken) DeleteToken(ctx context.Context, token string) error
- func (t *TemporaryToken) FindToken(ctx context.Context, token string) (*database.Token, error)
- func (t *TemporaryToken) IssueToken(ctx context.Context, code, codeVerifier string) (*database.Token, error)
- func (t *TemporaryToken) NewCode(ctx context.Context, userId, challenge, challengeMethod string) (*database.Code, error)
- type UserDatabase
- func (d *UserDatabase) Close()
- func (d *UserDatabase) Delete(ctx context.Context, id string) error
- func (d *UserDatabase) DeleteState(ctx context.Context, state string) error
- func (d *UserDatabase) Get(id string) (*database.User, error)
- func (d *UserDatabase) GetAccessToken(value string) (*database.AccessToken, error)
- func (d *UserDatabase) GetAccessTokens(id string) ([]*database.AccessToken, error)
- func (d *UserDatabase) GetAll() ([]*database.User, error)
- func (d *UserDatabase) GetAllServiceAccount() ([]*database.User, error)
- func (d *UserDatabase) GetState(ctx context.Context, stateString string) (string, error)
- func (d *UserDatabase) Set(ctx context.Context, user *database.User) error
- func (d *UserDatabase) SetAccessToken(ctx context.Context, token *database.AccessToken) error
- func (d *UserDatabase) SetState(ctx context.Context, unique string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
func (*CA) GetRevokedCertificate ¶
func (*CA) GetSignedCertificate ¶
func (*CA) SetRevokedCertificate ¶
func (*CA) SetSignedCertificate ¶
func (*CA) WatchRevokeCertificate ¶
func (c *CA) WatchRevokeCertificate() chan *database.RevokedCertificate
type ClusterDatabase ¶
type ClusterDatabase struct {
// contains filtered or unexported fields
}
func NewClusterDatabase ¶
func (*ClusterDatabase) Alive ¶
func (d *ClusterDatabase) Alive() bool
func (*ClusterDatabase) Id ¶
func (d *ClusterDatabase) Id() string
func (*ClusterDatabase) MemberList ¶
type RelayLocator ¶
type RelayLocator struct {
// contains filtered or unexported fields
}
func NewRelayLocator ¶
func (*RelayLocator) Delete ¶
func (l *RelayLocator) Delete(ctx context.Context, name, addr string) error
func (*RelayLocator) GetListenedAddrs ¶
func (l *RelayLocator) GetListenedAddrs() []string
func (*RelayLocator) Gone ¶
func (l *RelayLocator) Gone() chan *database.Relay
func (*RelayLocator) ListAllConnectedAgents ¶
func (l *RelayLocator) ListAllConnectedAgents() []*database.Relay
type TemporaryToken ¶
type TemporaryToken struct {
// contains filtered or unexported fields
}
func NewTemporaryToken ¶
func NewTemporaryToken(client *clientv3.Client) *TemporaryToken
func (*TemporaryToken) DeleteCode ¶
func (t *TemporaryToken) DeleteCode(ctx context.Context, code string) error
func (*TemporaryToken) DeleteToken ¶
func (t *TemporaryToken) DeleteToken(ctx context.Context, token string) error
func (*TemporaryToken) IssueToken ¶
type UserDatabase ¶
type UserDatabase struct {
// contains filtered or unexported fields
}
func NewUserDatabase ¶
func (*UserDatabase) Close ¶
func (d *UserDatabase) Close()
func (*UserDatabase) DeleteState ¶
func (d *UserDatabase) DeleteState(ctx context.Context, state string) error
func (*UserDatabase) GetAccessToken ¶
func (d *UserDatabase) GetAccessToken(value string) (*database.AccessToken, error)
func (*UserDatabase) GetAccessTokens ¶
func (d *UserDatabase) GetAccessTokens(id string) ([]*database.AccessToken, error)
func (*UserDatabase) GetAllServiceAccount ¶
func (d *UserDatabase) GetAllServiceAccount() ([]*database.User, error)
func (*UserDatabase) SetAccessToken ¶
func (d *UserDatabase) SetAccessToken(ctx context.Context, token *database.AccessToken) error
Click to show internal directories.
Click to hide internal directories.