Documentation
¶
Index ¶
- type BootstrapSnapshot
- type Cache
- func (c *Cache) Bootstrap() BootstrapSnapshot
- func (c *Cache) CachedForwardCredential() (ForwardCredential, error)
- func (c *Cache) Close()
- func (c *Cache) Done() <-chan struct{}
- func (c *Cache) RelayTicket(ctx context.Context, desiredGeneration uint64) (pkgagentauth.RelayTicket, error)
- func (c *Cache) Run(ctx context.Context) error
- type CacheOptions
- type ControlClient
- type ForwardCredential
- type ForwardCredentialReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapSnapshot ¶
type BootstrapSnapshot struct {
MasterInstanceID string
Capabilities []string
SigningKeys []pkgagentauth.PublicKey
}
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func NewCache ¶
func NewCache(client ControlClient, opts CacheOptions) *Cache
func (*Cache) Bootstrap ¶
func (c *Cache) Bootstrap() BootstrapSnapshot
func (*Cache) CachedForwardCredential ¶ added in v0.0.14
func (c *Cache) CachedForwardCredential() (ForwardCredential, error)
func (*Cache) RelayTicket ¶
func (c *Cache) RelayTicket(ctx context.Context, desiredGeneration uint64) (pkgagentauth.RelayTicket, error)
type CacheOptions ¶
type ControlClient ¶
type ForwardCredential ¶ added in v0.0.14
type ForwardCredential struct {
Ticket pkgagentauth.ForwardTicket
ExpiresAt time.Time
}
type ForwardCredentialReader ¶ added in v0.0.14
type ForwardCredentialReader interface {
CachedForwardCredential() (ForwardCredential, error)
}
Click to show internal directories.
Click to hide internal directories.