Documentation
¶
Index ¶
- Variables
- type CreateInput
- type Entry
- type Service
- func (s *Service) Create(ctx context.Context, input CreateInput) (Entry, error)
- func (s *Service) Delete(ctx context.Context, id uint) error
- func (s *Service) Get(ctx context.Context, id uint) (Entry, error)
- func (s *Service) List(ctx context.Context) ([]Entry, error)
- func (s *Service) Resolved(ctx context.Context) ([]pluginstore.ResolvedAuthConfig, error)
- func (s *Service) Update(ctx context.Context, id uint, input UpdateInput) (Entry, error)
- type UpdateInput
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidInput = errors.New("invalid plugin store auth input")
ErrInvalidInput indicates that a plugin store authentication request failed validation.
Functions ¶
This section is empty.
Types ¶
type CreateInput ¶
type CreateInput struct {
Name string
Match string
ApplyTo []string
AuthType string
Token pluginstore.Secret
Username pluginstore.Secret
Password pluginstore.Secret
HeaderName string
HeaderValue pluginstore.Secret
Enabled *bool
}
type Entry ¶
type Entry struct {
ID uint `json:"id"`
Name string `json:"name"`
Match string `json:"match"`
ApplyTo []string `json:"apply_to,omitempty"`
AuthType string `json:"auth_type"`
HeaderName string `json:"header_name,omitempty"`
Enabled bool `json:"enabled"`
Version int64 `json:"version"`
CredentialsConfigured bool `json:"credentials_configured"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo *cluster.Repository) *Service
func (*Service) Resolved ¶
func (s *Service) Resolved(ctx context.Context) ([]pluginstore.ResolvedAuthConfig, error)
type UpdateInput ¶
type UpdateInput struct {
Name *string
Match *string
ApplyTo *[]string
AuthType *string
Token *pluginstore.Secret
Username *pluginstore.Secret
Password *pluginstore.Secret
HeaderName *string
HeaderValue *pluginstore.Secret
Enabled *bool
}
Click to show internal directories.
Click to hide internal directories.