Documentation
¶
Overview ¶
Package source manages registered inbound sources and their signing secrets.
Index ¶
- Variables
- type Input
- type Service
- func (s *Service) Get(ctx context.Context, name string) (core.Source, error)
- func (s *Service) List(ctx context.Context) ([]core.Source, error)
- func (s *Service) Register(ctx context.Context, in Input) (core.Source, error)
- func (s *Service) Secret(ctx context.Context, name string) ([]byte, error)
- func (s *Service) Update(ctx context.Context, in Input) (core.Source, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownVerifier = errors.New("source: unknown verifier")
ErrUnknownVerifier means the requested verifier is not registered.
Functions ¶
This section is empty.
Types ¶
type Input ¶
Input describes a source to register or update. Secret is the plaintext signing secret; an empty Secret leaves an existing secret unchanged on update and means "no secret" on register.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the source registry.
func NewService ¶
NewService wires the registry.
Click to show internal directories.
Click to hide internal directories.