Documentation
¶
Index ¶
- type Service
- func (s *Service) GetIdentities() map[credentials.Label]cred.Identity
- func (s *Service) GetIdentity(label credentials.Label) cred.Identity
- func (s *Service) GetReader(label credentials.Label) cred.IdentityReader
- func (s *Service) GetUsers() map[credentials.Label]string
- func (s *Service) Labels() []credentials.Label
- func (s *Service) RegisterLabel(label credentials.Label)
- func (s *Service) SetIdentities(payload map[credentials.Label]cred.IdentityPayload)
- func (s *Service) SetIdentity(label credentials.Label, payload cred.IdentityPayload)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements credentials.Service using OS keyring
func NewService ¶
func NewService() *Service
NewService creates a new keyring-based credential service
func (*Service) GetIdentities ¶
func (s *Service) GetIdentities() map[credentials.Label]cred.Identity
func (*Service) GetIdentity ¶
func (s *Service) GetIdentity(label credentials.Label) cred.Identity
func (*Service) GetReader ¶
func (s *Service) GetReader(label credentials.Label) cred.IdentityReader
func (*Service) Labels ¶
func (s *Service) Labels() []credentials.Label
func (*Service) RegisterLabel ¶
func (s *Service) RegisterLabel(label credentials.Label)
func (*Service) SetIdentities ¶
func (s *Service) SetIdentities(payload map[credentials.Label]cred.IdentityPayload)
func (*Service) SetIdentity ¶
func (s *Service) SetIdentity(label credentials.Label, payload cred.IdentityPayload)
Click to show internal directories.
Click to hide internal directories.