tlcd

package
v0.0.0-...-27d2037 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegCmd

func RegCmd(root *cobra.Command)

RegCmd register service command

Types

type Service

type Service struct {
	sync.RWMutex
	WorkDir    string
	Executable string
	// contains filtered or unexported fields
}

Service container control service

func (*Service) Run

func (sv *Service) Run(ctx context.Context, cfg *proto.RunConfig) (*proto.RunResponse, error)

Run handle run command

func (*Service) Start

func (sv *Service) Start(s service.Service) error

Start start service

func (*Service) Stop

func (sv *Service) Stop(s service.Service) error

Stop stop service

Jump to

Keyboard shortcuts

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