tickets

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPlugStateOptions

type AddPlugStateOptions struct {
	Key     string           `json:"key,omitempty"`
	Value   string           `json:"value,omitempty"`
	Options store.SetOptions `json:"options,omitempty"`
}

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(corehub store.CoreHub, plugState store.PlugStateKV) *Controller

func (*Controller) AddPlugState

func (c *Controller) AddPlugState(aclaim *claim.PlugState, opts AddPlugStateOptions) error

func (*Controller) DeletePlugState

func (c *Controller) DeletePlugState(aclaim *claim.PlugState, key string) error

func (*Controller) GetPlugState

func (c *Controller) GetPlugState(aclaim *claim.PlugState, key string) (*entities.PlugKV, error)

func (*Controller) ListPlugState

func (c *Controller) ListPlugState(aclaim *claim.PlugState, opts *store.PkvQuery) ([]*entities.PlugKV, error)

func (*Controller) TicketFile

func (c *Controller) TicketFile(ticket *claim.Folder, file string) ([]byte, error)

Ticket cabinet

func (*Controller) TicketList

func (c *Controller) TicketList(ticket *claim.Folder) ([]*store.BlobInfo, error)

func (*Controller) TicketPreview

func (c *Controller) TicketPreview(file string, ticket *claim.Folder) ([]byte, error)

func (*Controller) TicketUpload

func (c *Controller) TicketUpload(ticket *claim.Folder, file string, data []byte) error

func (*Controller) UgroupAddUser

func (c *Controller) UgroupAddUser(uclaim *claim.UserMgmtTkt, data *entities.User) error

func (*Controller) UgroupDeleteUser

func (c *Controller) UgroupDeleteUser(uclaim *claim.UserMgmtTkt, userId string) error

func (*Controller) UgroupGetUserByID

func (c *Controller) UgroupGetUserByID(uclaim *claim.UserMgmtTkt, username string) (*entities.User, error)

func (*Controller) UgroupListUsersByGroup

func (c *Controller) UgroupListUsersByGroup(uclaim *claim.UserMgmtTkt) ([]*entities.User, error)

func (*Controller) UgroupUpdateUser

func (c *Controller) UgroupUpdateUser(uclaim *claim.UserMgmtTkt, userid string, data map[string]any) error

func (*Controller) UpdatePlugState

func (c *Controller) UpdatePlugState(aclaim *claim.PlugState, opts UpdatePlugStateOptions) error

type UpdatePlugStateOptions

type UpdatePlugStateOptions struct {
	Key     string              `json:"key,omitempty"`
	Value   string              `json:"value,omitempty"`
	Options store.UpdateOptions `json:"options,omitempty"`
}

Jump to

Keyboard shortcuts

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