onetime

package
v0.0.0-...-a78da2d Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package onetime contains the one time executable commands that can be used by any agent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVersionCommand

func NewVersionCommand(integration *cpb.Integration) *cobra.Command

NewVersionCommand returns a new version command.

func NewWinServiceCommand

func NewWinServiceCommand(ctx context.Context, integration *cpb.Integration, daemon *cobra.Command) *cobra.Command

NewWinServiceCommand returns a new winservice command.

Types

type Version

type Version struct {
	Integration *cpb.Integration
}

Version has args for version subcommands.

func (*Version) Execute

func (v *Version) Execute(cmd *cobra.Command, args []string) error

Execute implements the cobra command interface for version.

type Winservice

type Winservice struct {
	Integration *cpb.Integration
	Service     winsvc.Service
	Daemon      *cobra.Command
	// contains filtered or unexported fields
}

Winservice has args for winservice subcommands.

func (*Winservice) Execute

func (w *Winservice) Execute(cmd *cobra.Command, args []string) error

Execute implements the subcommand interface for winservice.

func (*Winservice) Start

func (w *Winservice) Start(s winsvc.Service) error

Start implements the subcommand interface for winservice.

func (*Winservice) Stop

func (w *Winservice) Stop(s winsvc.Service) error

Stop implements the subcommand interface for winservice.

Jump to

Keyboard shortcuts

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