Documentation ¶
Index ¶
- type CA
- func (c *CA) GetRevokedCertificate(_ context.Context, serial *big.Int) ([]*database.RevokedCertificate, error)
- func (c *CA) GetSignedCertificate(_ context.Context, serial *big.Int) ([]*database.SignedCertificate, error)
- func (c *CA) NewSerialNumber(_ context.Context) (*big.Int, error)
- func (c *CA) SetRevokedCertificate(_ context.Context, certificate *database.RevokedCertificate) error
- func (c *CA) SetSignedCertificate(_ context.Context, certificate *database.SignedCertificate) error
- func (c *CA) WatchRevokeCertificate() chan struct{}
- type ClusterDatabase
- type RelayLocator
- func (r *RelayLocator) Delete(ctx context.Context, name, addr string) error
- func (r *RelayLocator) Get(name string) (*database.Relay, bool)
- func (r *RelayLocator) GetListenedAddrs() []string
- func (r *RelayLocator) Gone() chan *database.Relay
- func (r *RelayLocator) ListAllConnectedAgents() []*database.Relay
- func (r *RelayLocator) Set(ctx context.Context, relay *database.Relay) error
- func (r *RelayLocator) Update(ctx context.Context, relay *database.Relay) error
- type TokenDatabase
- func (t *TokenDatabase) AllCodes(_ context.Context) ([]*database.Code, error)
- func (t *TokenDatabase) AllTokens(_ context.Context) ([]*database.Token, error)
- func (t *TokenDatabase) DeleteCode(_ context.Context, code string) error
- func (t *TokenDatabase) DeleteToken(_ context.Context, token string) error
- func (t *TokenDatabase) FindToken(_ context.Context, token string) (*database.Token, error)
- func (t *TokenDatabase) IssueToken(_ context.Context, code, _ string) (*database.Token, error)
- func (t *TokenDatabase) NewCode(_ context.Context, userId, _, _ string) (*database.Code, error)
- func (t *TokenDatabase) SetUser(userId string) (*database.Token, error)
- type UserDatabase
- func (u *UserDatabase) Delete(_ctx context.Context, id string) error
- func (u *UserDatabase) DeleteState(_ context.Context, state string) error
- func (u *UserDatabase) Get(id string, _ ...database.UserDatabaseOption) (*database.User, error)
- func (u *UserDatabase) GetAccessToken(value string) (*database.AccessToken, error)
- func (u *UserDatabase) GetAccessTokens(id string) ([]*database.AccessToken, error)
- func (u *UserDatabase) GetAll() ([]*database.User, error)
- func (u *UserDatabase) GetAllServiceAccount() ([]*database.User, error)
- func (u *UserDatabase) GetIdentityByLoginName(_ context.Context, loginName string) (string, error)
- func (u *UserDatabase) GetState(_ context.Context, state string) (string, error)
- func (u *UserDatabase) Set(_ctx context.Context, user *database.User) error
- func (u *UserDatabase) SetAccessToken(_ context.Context, token *database.AccessToken) error
- func (u *UserDatabase) SetState(_ 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 struct{}
type ClusterDatabase ¶
type ClusterDatabase struct {
// contains filtered or unexported fields
}
func NewClusterDatabase ¶
func NewClusterDatabase() *ClusterDatabase
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 NewRelayLocator() *RelayLocator
func (*RelayLocator) Delete ¶
func (r *RelayLocator) Delete(ctx context.Context, name, addr string) error
func (*RelayLocator) GetListenedAddrs ¶
func (r *RelayLocator) GetListenedAddrs() []string
func (*RelayLocator) Gone ¶
func (r *RelayLocator) Gone() chan *database.Relay
func (*RelayLocator) ListAllConnectedAgents ¶
func (r *RelayLocator) ListAllConnectedAgents() []*database.Relay
type TokenDatabase ¶
type TokenDatabase struct {
// contains filtered or unexported fields
}
func NewTokenDatabase ¶
func NewTokenDatabase() *TokenDatabase
func (*TokenDatabase) DeleteCode ¶
func (t *TokenDatabase) DeleteCode(_ context.Context, code string) error
func (*TokenDatabase) DeleteToken ¶
func (t *TokenDatabase) DeleteToken(_ context.Context, token string) error
func (*TokenDatabase) IssueToken ¶
type UserDatabase ¶
type UserDatabase struct {
// contains filtered or unexported fields
}
func NewUserDatabase ¶
func NewUserDatabase(systemUsers ...*database.User) *UserDatabase
func (*UserDatabase) DeleteState ¶
func (u *UserDatabase) DeleteState(_ context.Context, state string) error
func (*UserDatabase) Get ¶
func (u *UserDatabase) Get(id string, _ ...database.UserDatabaseOption) (*database.User, error)
func (*UserDatabase) GetAccessToken ¶
func (u *UserDatabase) GetAccessToken(value string) (*database.AccessToken, error)
func (*UserDatabase) GetAccessTokens ¶
func (u *UserDatabase) GetAccessTokens(id string) ([]*database.AccessToken, error)
func (*UserDatabase) GetAllServiceAccount ¶
func (u *UserDatabase) GetAllServiceAccount() ([]*database.User, error)
func (*UserDatabase) GetIdentityByLoginName ¶ added in v0.10.0
func (*UserDatabase) SetAccessToken ¶
func (u *UserDatabase) SetAccessToken(_ context.Context, token *database.AccessToken) error
Click to show internal directories.
Click to hide internal directories.