Versions in this module Expand all Collapse all v0 v0.5.4 Dec 18, 2023 Changes in this version + const ENDPOINT_ROLE + func WithContext(ctx context.Context, a *Agent) context.Context + type AccessTokenOptionFunc = func(o *accessTokenOptions) + func AsRegistryEndpoint(b bool) AccessTokenOptionFunc + func ExpiresIn(d time.Duration) AccessTokenOptionFunc + type Agent struct + Endpoint string + Labels map[string]string + Name string + OtpKeyURL string + Time datatypes.Datetime + Token string + func FromContext(ctx context.Context) *Agent + func ParseAgentToken(token string, salt ...string) (*Agent, error) + func (a *Agent) AuthRoundTripper() client.HttpTransport + func (a *Agent) GenerateOtp() (string, time.Time, error) + func (a *Agent) Qrcode() (image.Image, error) + func (a *Agent) ValidateOtp(passcode string, t time.Time) error + func (v Agent) RuntimeDoc(names ...string) ([]string, bool) + type Registry interface + NewAccessToken func(ctx context.Context, name string, optFns ...AccessTokenOptionFunc) (string, error) + Validate func(ctx context.Context, agent *Agent) error + func NewRegister() Registry