Documentation ¶
Index ¶
- type AddPlugStateOptions
- type Controller
- func (c *Controller) AddPlugState(aclaim *claim.PlugState, opts AddPlugStateOptions) error
- func (c *Controller) DeletePlugState(aclaim *claim.PlugState, key string) error
- func (c *Controller) GetPlugState(aclaim *claim.PlugState, key string) (*entities.PlugKV, error)
- func (c *Controller) ListPlugState(aclaim *claim.PlugState, opts *store.PkvQuery) ([]*entities.PlugKV, error)
- func (c *Controller) TicketFile(ticket *claim.Folder, file string) ([]byte, error)
- func (c *Controller) TicketList(ticket *claim.Folder) ([]*store.BlobInfo, error)
- func (c *Controller) TicketPreview(file string, ticket *claim.Folder) ([]byte, error)
- func (c *Controller) TicketUpload(ticket *claim.Folder, file string, data []byte) error
- func (c *Controller) UgroupAddUser(uclaim *claim.UserMgmtTkt, data *entities.User) error
- func (c *Controller) UgroupDeleteUser(uclaim *claim.UserMgmtTkt, userId string) error
- func (c *Controller) UgroupGetUserByID(uclaim *claim.UserMgmtTkt, username string) (*entities.User, error)
- func (c *Controller) UgroupListUsersByGroup(uclaim *claim.UserMgmtTkt) ([]*entities.User, error)
- func (c *Controller) UgroupUpdateUser(uclaim *claim.UserMgmtTkt, userid string, data map[string]any) error
- func (c *Controller) UpdatePlugState(aclaim *claim.PlugState, opts UpdatePlugStateOptions) error
- type UpdatePlugStateOptions
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 (*Controller) ListPlugState ¶
func (*Controller) TicketFile ¶
Ticket cabinet
func (*Controller) TicketList ¶
func (*Controller) TicketPreview ¶
func (*Controller) TicketUpload ¶
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"` }
Click to show internal directories.
Click to hide internal directories.