services

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: AGPL-3.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuditLog = func(username string, action eventpb.ActionType, msg string) {
	events.AuditLog(username, action, msg, nil, nil)
}
View Source
var ErrorPermissionDenied = errors.New("do not have permission to perform this operation")
View Source
var FileAuditLog = func(username string, msg string, fileID int) {
	events.FileAuditLog(username, msg, fileID)
}
View Source
var MustGetLang = middlewares.MustGetLang
View Source
var MustGetUser = auth.MustGetUser

Functions

func RegisterEndpoint

func RegisterEndpoint(fn endpointFunc)

func RegisterServer

func RegisterServer(fn registryFunc)

func RegisteredEndpoints

func RegisteredEndpoints() []endpointFunc

func RegisteredServers

func RegisteredServers() []registryFunc

Types

type AuthSvc

type AuthSvc struct {
	auth.UnimplementedAuthServer
	// contains filtered or unexported fields
}

func NewAuthSvc

func NewAuthSvc(authsvc contracts.AuthInterface, cfg contracts.OidcConfig, adminPwd string) *AuthSvc

func (*AuthSvc) AuthFuncOverride

func (a *AuthSvc) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error)

func (*AuthSvc) Exchange

func (*AuthSvc) Info

func (*AuthSvc) Login

func (*AuthSvc) Settings

type CardSvc

type CardSvc struct {
	card.UnimplementedCardSvcServer
}

func (*CardSvc) All

func (c *CardSvc) All(ctx context.Context, request *card.CardAllRequest) (*card.CardAllResponse, error)

func (*CardSvc) AllContainers

func (*CardSvc) Create

func (*CardSvc) Delete

func (*CardSvc) List

func (*CardSvc) Show

type ClusterSvc

type ClusterSvc struct {
	cluster.UnimplementedClusterSvcServer
}

func (*ClusterSvc) Create

func (*ClusterSvc) Delete

func (*ClusterSvc) List

func (*ClusterSvc) Show

type ContainerSvc

type ContainerSvc struct {
	container.UnsafeContainerSvcServer
}

func (*ContainerSvc) ContainerLog

func (*ContainerSvc) Exec

func (*ContainerSvc) StreamContainerLog

func (*ContainerSvc) StreamCopyToPod

type EventSvc

type EventSvc struct {
	event.UnsafeEventServer
}

func (*EventSvc) Authorize

func (e *EventSvc) Authorize(ctx context.Context, fullMethodName string) (context.Context, error)

func (*EventSvc) List

type FileSvc

type FileSvc struct {
	file.UnimplementedFileSvcServer
}

func (*FileSvc) Authorize

func (m *FileSvc) Authorize(ctx context.Context, fullMethodName string) (context.Context, error)

func (*FileSvc) Delete

func (*FileSvc) DiskInfo

func (m *FileSvc) DiskInfo(ctx context.Context, request *file.DiskInfoRequest) (*file.DiskInfoResponse, error)

func (*FileSvc) List

type MetricsSvc

type MetricsSvc struct {
	metrics.UnsafeMetricsServer
}

func (*MetricsSvc) StreamTopPod

func (*MetricsSvc) TopPod

type PictureSvc

type PictureSvc struct {
	picture.UnimplementedPictureServer
}

func (*PictureSvc) AuthFuncOverride

func (p *PictureSvc) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error)

func (*PictureSvc) Background

type VersionSvc

type VersionSvc struct {
	version.UnsafeVersionServer
}

func (*VersionSvc) AuthFuncOverride

func (*VersionSvc) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error)

func (*VersionSvc) Version

Jump to

Keyboard shortcuts

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