server

package
v3.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2018 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRuntimeSyncServer

type AppRuntimeSyncServer struct {
	StatusManager *status.Manager

	Ctx       context.Context
	Cancel    context.CancelFunc
	ClientSet *kubernetes.Clientset
	// contains filtered or unexported fields
}

AppRuntimeSyncServer AppRuntimeSyncServer

func NewAppRuntimeSyncServer

func NewAppRuntimeSyncServer(conf option.Config) *AppRuntimeSyncServer

NewAppRuntimeSyncServer create app runtime sync server

func (*AppRuntimeSyncServer) CheckAppStatus

func (a *AppRuntimeSyncServer) CheckAppStatus(ctx context.Context, ps *pb.StatusRequest) (*pb.ErrorMessage, error)

CheckAppStatus check app status

func (*AppRuntimeSyncServer) GetAppStatus

func (a *AppRuntimeSyncServer) GetAppStatus(ctx context.Context, sr *pb.StatusRequest) (*pb.StatusMessage, error)

GetAppStatus get specified app status

func (*AppRuntimeSyncServer) IgnoreDeleteEvent

func (a *AppRuntimeSyncServer) IgnoreDeleteEvent(ctx context.Context, pi *pb.Ignore) (*pb.ErrorMessage, error)

IgnoreDeleteEvent ignore resource delete event

func (*AppRuntimeSyncServer) RmIgnoreDeleteEvent

func (a *AppRuntimeSyncServer) RmIgnoreDeleteEvent(ctx context.Context, pi *pb.Ignore) (*pb.ErrorMessage, error)

RmIgnoreDeleteEvent rm ignore resource delete event

func (*AppRuntimeSyncServer) SetAppStatus

func (a *AppRuntimeSyncServer) SetAppStatus(ctx context.Context, ps *pb.StatusMessage) (*pb.ErrorMessage, error)

SetAppStatus set app status

func (*AppRuntimeSyncServer) Start

func (a *AppRuntimeSyncServer) Start() error

Start start

func (*AppRuntimeSyncServer) Stop

func (a *AppRuntimeSyncServer) Stop()

Stop stop

Jump to

Keyboard shortcuts

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