Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrProcessNotFound = errors.New("process not found")
)
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { Init() error Info(context.Context) (*gpmv1.GpmInfo, error) Update(context.Context, IOStream) error List(context.Context) ([]*gpmv1.Service, int64, error) Get(context.Context, string) (*gpmv1.Service, error) Create(context.Context, *gpmv1.ServiceSpec) (*gpmv1.Service, error) Edit(context.Context, string, *gpmv1.EditServiceSpec) (*gpmv1.Service, error) Start(context.Context, string) (*gpmv1.Service, error) Stop(context.Context, string) (*gpmv1.Service, error) Reboot(context.Context, string) (*gpmv1.Service, error) Delete(context.Context, string) (*gpmv1.Service, error) TailLog(context.Context, string, int64, bool, IOWriter) error Install(context.Context, IOStream) error ListVersions(context.Context, string) ([]*gpmv1.ServiceVersion, error) Upgrade(context.Context, IOStream) error Rollback(context.Context, string, string) error }
type Process ¶
func NewProcess ¶
Click to show internal directories.
Click to hide internal directories.