controllers

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerAuth added in v0.5.0

type ControllerAuth struct {
	*ControllerCommon
}

ControllerAuth ...

func NewControllerAuth added in v0.5.0

func NewControllerAuth(common *ControllerCommon) ControllerAuth

NewControllerAuth ...

func (ControllerAuth) AccessList added in v0.5.0

AccessList ...

func (ControllerAuth) Signin added in v0.5.0

func (a ControllerAuth) Signin(ctx context.Context, _ *emptypb.Empty) (resp *api.SigninResponse, err error)

Signin ...

func (ControllerAuth) Signout added in v0.5.0

func (a ControllerAuth) Signout(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

Signout ...

type ControllerCommon added in v0.5.0

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

ControllerCommon ...

func NewControllerCommon added in v0.5.0

func NewControllerCommon(adaptors *adaptors.Adaptors,
	accessList access_list.AccessListService,
	endpoint *endpoint.Endpoint) *ControllerCommon

NewControllerCommon ...

func (ControllerCommon) Pagination added in v0.5.1

func (c ControllerCommon) Pagination(limit, offset uint32, order, sortBy string) (pagination common.PageParams)

type ControllerImage added in v0.5.0

type ControllerImage struct {
	*ControllerCommon
}

ControllerImage ...

func NewControllerImage added in v0.5.0

func NewControllerImage(common *ControllerCommon) ControllerImage

NewControllerImage ...

func (ControllerImage) AddImage added in v0.5.0

func (c ControllerImage) AddImage(ctx context.Context, req *api.NewImageRequest) (*api.Image, error)

AddImage ...

func (ControllerImage) DeleteImageById added in v0.5.0

func (c ControllerImage) DeleteImageById(ctx context.Context, req *api.DeleteImageRequest) (*emptypb.Empty, error)

DeleteImageById ...

func (ControllerImage) GetImageById added in v0.5.0

func (c ControllerImage) GetImageById(ctx context.Context, req *api.GetImageRequest) (*api.Image, error)

GetImageById ...

func (ControllerImage) GetImageList added in v0.5.0

GetImageList ...

func (ControllerImage) MuxUploadImage added in v0.5.0

func (c ControllerImage) MuxUploadImage() func(w http.ResponseWriter, r *http.Request)

MuxUploadImage ...

func (ControllerImage) UpdateImageById added in v0.5.0

func (c ControllerImage) UpdateImageById(ctx context.Context, req *api.UpdateImageRequest) (*api.Image, error)

UpdateImageById ...

func (ControllerImage) UploadImage added in v0.5.0

func (c ControllerImage) UploadImage(ctx context.Context, req *api.UploadImageRequest) (*api.Image, error)

UploadImage ...

type ControllerPlugin added in v0.5.1

type ControllerPlugin struct {
	*ControllerCommon
}

ControllerPlugin ...

func NewControllerPlugin added in v0.5.1

func NewControllerPlugin(common *ControllerCommon) ControllerPlugin

NewControllerPlugin ...

func (ControllerPlugin) DisablePlugin added in v0.5.1

DisablePlugin ...

func (ControllerPlugin) EnablePlugin added in v0.5.1

EnablePlugin ...

func (ControllerPlugin) GetPluginList added in v0.5.1

GetPluginList ...

func (ControllerPlugin) GetPluginOptions added in v0.5.1

GetPluginOptions ...

type ControllerRole added in v0.5.0

type ControllerRole struct {
	*ControllerCommon
}

ControllerRole ...

func NewControllerRole added in v0.5.0

func NewControllerRole(common *ControllerCommon) ControllerRole

NewControllerRole ...

func (ControllerRole) AddRole added in v0.5.0

func (c ControllerRole) AddRole(ctx context.Context, req *api.NewRoleRequest) (*api.Role, error)

AddRole ...

func (ControllerRole) DeleteRoleByName added in v0.5.0

func (c ControllerRole) DeleteRoleByName(ctx context.Context, req *api.DeleteRoleRequest) (*emptypb.Empty, error)

DeleteRoleByName ...

func (ControllerRole) GetRoleAccessList added in v0.5.0

GetRoleAccessList ...

func (ControllerRole) GetRoleByName added in v0.5.0

func (c ControllerRole) GetRoleByName(ctx context.Context, req *api.GetRoleRequest) (*api.Role, error)

GetRoleByName ...

func (ControllerRole) GetRoleList added in v0.5.0

GetRoleList ...

func (ControllerRole) SearchRoleByName added in v0.5.0

SearchRoleByName ...

func (ControllerRole) UpdateRoleAccessList added in v0.5.0

UpdateRoleAccessList ...

func (ControllerRole) UpdateRoleByName added in v0.5.0

func (c ControllerRole) UpdateRoleByName(ctx context.Context, req *api.UpdateRoleRequest) (*api.Role, error)

UpdateRoleByName ...

type ControllerScript added in v0.5.0

type ControllerScript struct {
	*ControllerCommon
}

ControllerScript ...

func NewControllerScript added in v0.5.0

func NewControllerScript(common *ControllerCommon) ControllerScript

NewControllerScript ...

func (ControllerScript) AddScript added in v0.5.0

func (c ControllerScript) AddScript(ctx context.Context, req *api.NewScriptRequest) (*api.Script, error)

AddScript ...

func (ControllerScript) CopyScriptById added in v0.5.0

func (c ControllerScript) CopyScriptById(ctx context.Context, req *api.CopyScriptRequest) (*api.Script, error)

CopyScriptById ...

func (ControllerScript) DeleteScriptById added in v0.5.0

func (c ControllerScript) DeleteScriptById(ctx context.Context, req *api.DeleteScriptRequest) (*emptypb.Empty, error)

DeleteScriptById ...

func (ControllerScript) ExecScriptById added in v0.5.0

ExecScriptById ...

func (ControllerScript) ExecSrcScriptById added in v0.5.0

ExecSrcScriptById ...

func (ControllerScript) GetScriptById added in v0.5.0

func (c ControllerScript) GetScriptById(ctx context.Context, req *api.GetScriptRequest) (*api.Script, error)

GetScriptById ...

func (ControllerScript) GetScriptList added in v0.5.0

GetScriptList ...

func (ControllerScript) SearchScriptById added in v0.5.0

SearchScriptById ...

func (ControllerScript) UpdateScriptById added in v0.5.0

func (c ControllerScript) UpdateScriptById(ctx context.Context, req *api.UpdateScriptRequest) (*api.Script, error)

UpdateScriptById ...

type ControllerStream added in v0.5.0

type ControllerStream struct {
	*ControllerCommon
}

ControllerStream ...

func NewControllerStream added in v0.5.0

func NewControllerStream(common *ControllerCommon) ControllerStream

NewControllerStream ...

func (ControllerStream) Subscribe added in v0.5.0

Subscribe ...

type ControllerUser added in v0.5.0

type ControllerUser struct {
	*ControllerCommon
}

ControllerUser ...

func NewControllerUser added in v0.5.0

func NewControllerUser(common *ControllerCommon) ControllerUser

NewControllerUser ...

func (ControllerUser) AddUser added in v0.5.0

func (c ControllerUser) AddUser(ctx context.Context, req *api.NewtUserRequest) (userFull *api.UserFull, err error)

AddUser ...

func (ControllerUser) DeleteUserById added in v0.5.0

func (c ControllerUser) DeleteUserById(ctx context.Context, req *api.DeleteUserRequest) (*emptypb.Empty, error)

DeleteUserById ...

func (ControllerUser) GetUserById added in v0.5.0

func (c ControllerUser) GetUserById(ctx context.Context, req *api.GetUserByIdRequest) (*api.UserFull, error)

GetUserById ...

func (ControllerUser) GetUserList added in v0.5.0

GetUserList ...

func (ControllerUser) UpdateUserById added in v0.5.0

func (c ControllerUser) UpdateUserById(ctx context.Context, req *api.UpdateUserRequest) (*api.UserFull, error)

UpdateUserById ...

type Controllers added in v0.5.0

type Controllers struct {
	Auth   ControllerAuth
	Stream ControllerStream
	User   ControllerUser
	Role   ControllerRole
	Script ControllerScript
	Image  ControllerImage
	Plugin ControllerPlugin
}

Controllers ...

func NewControllers added in v0.5.0

func NewControllers(adaptors *adaptors.Adaptors,
	accessList access_list.AccessListService,
	command *endpoint.Endpoint) *Controllers

NewControllers ...

Jump to

Keyboard shortcuts

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