pluginauth

package
v1.0.63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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) Create

func (s *Service) Create(ctx context.Context, input CreateInput) (Entry, error)

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, id uint) error

func (*Service) Get

func (s *Service) Get(ctx context.Context, id uint) (Entry, error)

func (*Service) List

func (s *Service) List(ctx context.Context) ([]Entry, error)

func (*Service) Resolved

func (*Service) Update

func (s *Service) Update(ctx context.Context, id uint, input UpdateInput) (Entry, 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL