command

package
v0.0.0-...-e75800c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateIcon

type CreateIcon struct {
	Id   uuid.UUID
	Name string `json:"name" validate:"required,max=128"`
	Icon string `json:"icon" validate:"required,base64"`
	Type string `json:"type" validate:"required,oneof=light dark"`
}

type CreateIconHandler

type CreateIconHandler struct {
	Repository domain.IconsRepository
	Storage    storage.FileSystemStorage
}

func (*CreateIconHandler) Handle

func (h *CreateIconHandler) Handle(cmd *CreateIcon) error

type CreateIconRequest

type CreateIconRequest struct {
	Id          uuid.UUID
	CallerId    string   `json:"caller_id" validate:"required,max=128"`
	ServiceName string   `json:"service_name" validate:"required,max=128"`
	Issuers     []string `json:"issuers" validate:"required,max=128"`
	Description string   `json:"description" validate:"omitempty,max=512"`
	LightIcon   string   `json:"light_icon" validate:"required,base64"`
	DarkIcon    string   `json:"dark_icon" validate:"omitempty,base64"`
}

type CreateIconRequestHandler

type CreateIconRequestHandler struct {
	Storage    storage.FileSystemStorage
	Repository domain.IconsRequestsRepository
}

func (*CreateIconRequestHandler) Handle

type CreateIconsCollection

type CreateIconsCollection struct {
	Id          uuid.UUID
	Name        string         `json:"name" validate:"required,max=128"`
	Description string         `json:"description" validate:"omitempty,max=512"`
	Icons       datatypes.JSON `json:"icons"`
}

type CreateIconsCollectionHandler

type CreateIconsCollectionHandler struct {
	Repository domain2.IconsCollectionRepository
}

func (*CreateIconsCollectionHandler) Handle

type CreateWebService

type CreateWebService struct {
	Id               uuid.UUID
	Name             string       `json:"name" validate:"required,max=64"`
	Description      string       `json:"description" validate:"omitempty,max=512"`
	Issuers          []string     `json:"issuers" validate:"required,max=128"`
	IconsCollections []string     `json:"icons_collections" validate:"required"`
	MatchRules       []*MatchRule `json:"match_rules"`
	Tags             []string     `json:"tags"`
}

type CreateWebServiceHandler

type CreateWebServiceHandler struct {
	Repository domain.WebServicesRepository
}

func (*CreateWebServiceHandler) Handle

type DeleteAllIcons

type DeleteAllIcons struct{}

type DeleteAllIconsCollections

type DeleteAllIconsCollections struct{}

type DeleteAllIconsCollectionsHandler

type DeleteAllIconsCollectionsHandler struct {
	Database *gorm.DB
	Qb       *goqu.Database
}

func (*DeleteAllIconsCollectionsHandler) Handle

type DeleteAllIconsHandler

type DeleteAllIconsHandler struct {
	Database *gorm.DB
	Qb       *goqu.Database
}

func (*DeleteAllIconsHandler) Handle

func (h *DeleteAllIconsHandler) Handle(cmd *DeleteAllIcons)

type DeleteAllIconsRequestsHandler

type DeleteAllIconsRequestsHandler struct {
	Database *gorm.DB
	Qb       *goqu.Database
}

func (*DeleteAllIconsRequestsHandler) Handle

func (h *DeleteAllIconsRequestsHandler) Handle()

type DeleteAllWebServices

type DeleteAllWebServices struct{}

type DeleteAllWebServicesHandler

type DeleteAllWebServicesHandler struct {
	Database *gorm.DB
	Qb       *goqu.Database
}

func (*DeleteAllWebServicesHandler) Handle

type DeleteIcon

type DeleteIcon struct {
	Id string `uri:"icon_id" validate:"required,uuid4"`
}

type DeleteIconHandler

type DeleteIconHandler struct {
	Repository              domain.IconsRepository
	IconsRelationRepository domain.IconsRelationsRepository
}

func (*DeleteIconHandler) Handle

func (h *DeleteIconHandler) Handle(cmd *DeleteIcon) error

type DeleteIconRequest

type DeleteIconRequest struct {
	Id string `uri:"icon_request_id" validate:"required,uuid4"`
}

type DeleteIconRequestHandler

type DeleteIconRequestHandler struct {
	Repository domain.IconsRequestsRepository
}

func (*DeleteIconRequestHandler) Handle

type DeleteIconsCollection

type DeleteIconsCollection struct {
	Id string `uri:"collection_id" validate:"required,uuid4"`
}

type DeleteIconsCollectionHandler

type DeleteIconsCollectionHandler struct {
	Repository                          domain2.IconsCollectionRepository
	IconsCollectionsRelationsRepository domain2.IconsCollectionsRelationsRepository
}

func (*DeleteIconsCollectionHandler) Handle

type DeleteWebService

type DeleteWebService struct {
	Id string `uri:"service_id" validate:"required,uuid4"`
}

type DeleteWebServiceHandler

type DeleteWebServiceHandler struct {
	Repository domain.WebServicesRepository
}

func (*DeleteWebServiceHandler) Handle

type MatchRule

type MatchRule struct {
	Field      string `json:"field" validate:"oneof=label issuer account"`
	Text       string `json:"text" validate:"max=64"`
	Matcher    string `json:"matcher" validate:"oneof=contains starts_with ends_with equals regex"`
	IgnoreCase bool   `json:"ignore_case"`
}

type TransformIconRequestToWebService

type TransformIconRequestToWebService struct {
	WebServiceId  uuid.UUID
	IconRequestId string `uri:"icon_request_id" validate:"required,uuid4"`
}

type TransformIconRequestToWebServiceHandler

type TransformIconRequestToWebServiceHandler struct {
	IconsStorage               storage.FileSystemStorage
	WebServiceRepository       domain.WebServicesRepository
	IconsRepository            domain.IconsRepository
	IconsCollectionsRepository domain.IconsCollectionRepository
	IconsRequestsRepository    domain.IconsRequestsRepository
}

func (*TransformIconRequestToWebServiceHandler) Handle

type UpdateIcon

type UpdateIcon struct {
	Id   string `uri:"icon_id" validate:"required,uuid4"`
	Name string `json:"name" validate:"omitempty,max=128"`
	Icon string `json:"icon" validate:"omitempty,base64"`
	Type string `json:"type" validate:"omitempty,oneof=light dark"`
}

type UpdateIconHandler

type UpdateIconHandler struct {
	Repository domain.IconsRepository
	Storage    storage.FileSystemStorage
}

func (*UpdateIconHandler) Handle

func (h *UpdateIconHandler) Handle(cmd *UpdateIcon) error

type UpdateIconsCollection

type UpdateIconsCollection struct {
	Id          string   `uri:"collection_id" validate:"required,uuid4"`
	Name        string   `json:"name"`
	Description string   `json:"description" validate:"omitempty,max=512"`
	Icons       []string `json:"icons"`
}

type UpdateIconsCollectionHandler

type UpdateIconsCollectionHandler struct {
	Repository domain2.IconsCollectionRepository
}

func (*UpdateIconsCollectionHandler) Handle

type UpdateWebService

type UpdateWebService struct {
	Id               string       `uri:"service_id" validate:"required,uuid4"`
	Name             string       `json:"name" validate:"omitempty,max=64"`
	Description      string       `json:"description" validate:"omitempty,max=512"`
	Issuers          []string     `json:"issuers"`
	Tags             []string     `json:"tags"`
	IconsCollections []string     `json:"icons_collections"`
	MatchRules       []*MatchRule `json:"match_rules"`
}

type UpdateWebServiceFromIconRequest

type UpdateWebServiceFromIconRequest struct {
	IconRequestId string `uri:"icon_request_id" validate:"required,uuid4"`
	WebServiceId  string `json:"web_service_id" validate:"required,uuid4"`
}

type UpdateWebServiceFromIconRequestHandler

type UpdateWebServiceFromIconRequestHandler struct {
	IconsStorage               storage.FileSystemStorage
	WebServiceRepository       domain.WebServicesRepository
	IconsCollectionsRepository domain.IconsCollectionRepository
	IconsRepository            domain.IconsRepository
	IconsRequestsRepository    domain.IconsRequestsRepository
}

func (*UpdateWebServiceFromIconRequestHandler) Handle

type UpdateWebServiceHandler

type UpdateWebServiceHandler struct {
	Repository domain.WebServicesRepository
}

func (*UpdateWebServiceHandler) Handle

Jump to

Keyboard shortcuts

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