cmd

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(m Metadata)

Execute executes the root command.

func PrintTableNoPad

func PrintTableNoPad(data pterm.TableData, hasHeader bool)

PrintTableNoPad is a wrapper around pkg/table.PrintTableNoPad for backwards compatibility

Types

type AgentAuthCmd added in v0.14.0

type AgentAuthCmd struct {
	// contains filtered or unexported fields
}

AgentAuthCmd handles agent auth operations independent of cobra.

func (AgentAuthCmd) Create added in v0.14.0

func (AgentAuthCmd) Delete added in v0.14.0

func (AgentAuthCmd) Get added in v0.14.0

func (AgentAuthCmd) InvocationCreate added in v0.14.0

func (c AgentAuthCmd) InvocationCreate(ctx context.Context, in AgentAuthInvocationCreateInput) error

func (AgentAuthCmd) InvocationExchange added in v0.14.0

func (c AgentAuthCmd) InvocationExchange(ctx context.Context, in AgentAuthInvocationExchangeInput) error

func (AgentAuthCmd) InvocationGet added in v0.14.0

func (AgentAuthCmd) InvocationSubmit added in v0.14.0

func (c AgentAuthCmd) InvocationSubmit(ctx context.Context, in AgentAuthInvocationSubmitInput) error

func (AgentAuthCmd) List added in v0.14.0

type AgentAuthCreateInput added in v0.14.0

type AgentAuthCreateInput struct {
	Domain         string
	ProfileName    string
	CredentialName string
	LoginURL       string
	AllowedDomains []string
	ProxyID        string
	Output         string
}

type AgentAuthDeleteInput added in v0.14.0

type AgentAuthDeleteInput struct {
	ID          string
	SkipConfirm bool
}

type AgentAuthGetInput added in v0.14.0

type AgentAuthGetInput struct {
	ID     string
	Output string
}

type AgentAuthInvocationCreateInput added in v0.14.0

type AgentAuthInvocationCreateInput struct {
	AuthAgentID      string
	SaveCredentialAs string
	Output           string
}

type AgentAuthInvocationExchangeInput added in v0.14.0

type AgentAuthInvocationExchangeInput struct {
	InvocationID string
	Code         string
	Output       string
}

type AgentAuthInvocationGetInput added in v0.14.0

type AgentAuthInvocationGetInput struct {
	InvocationID string
	Output       string
}

type AgentAuthInvocationSubmitInput added in v0.14.0

type AgentAuthInvocationSubmitInput struct {
	InvocationID    string
	FieldValues     map[string]string
	SSOButton       string
	SelectedMfaType string
	Output          string
}

type AgentAuthInvocationsService added in v0.14.0

AgentAuthInvocationsService defines the subset of the Kernel SDK agent auth invocations client that we use.

type AgentAuthListInput added in v0.14.0

type AgentAuthListInput struct {
	Domain      string
	ProfileName string
	Limit       int
	Offset      int
	Output      string
}

type AgentAuthRunCmd added in v0.14.0

type AgentAuthRunCmd struct {
	// contains filtered or unexported fields
}

AgentAuthRunCmd handles the automated auth run flow.

func (AgentAuthRunCmd) Run added in v0.14.0

Run executes the full automated auth flow: create profile, credential, auth agent, and run invocation to completion.

type AgentAuthRunEvent added in v0.14.0

type AgentAuthRunEvent struct {
	Type        string `json:"type"` // status, error, success, waiting
	Step        string `json:"step,omitempty"`
	Status      string `json:"status,omitempty"`
	Message     string `json:"message,omitempty"`
	LiveViewURL string `json:"live_view_url,omitempty"`
}

AgentAuthRunEvent represents a status update during the auth run (for JSON output).

type AgentAuthRunInput added in v0.14.0

type AgentAuthRunInput struct {
	Domain           string
	ProfileName      string
	Values           map[string]string
	CredentialName   string
	SaveCredentialAs string
	TotpSecret       string
	ProxyID          string
	LoginURL         string
	AllowedDomains   []string
	Timeout          time.Duration
	OpenLiveView     bool
	Output           string
}

AgentAuthRunInput contains all parameters for the automated auth run flow.

type AgentAuthRunResult added in v0.14.0

type AgentAuthRunResult struct {
	ProfileName string `json:"profile_name"`
	ProfileID   string `json:"profile_id"`
	Domain      string `json:"domain"`
	AuthAgentID string `json:"auth_agent_id"`
}

AgentAuthRunResult is the result of a successful auth run.

type AgentAuthService added in v0.14.0

type AgentAuthService interface {
	New(ctx context.Context, body kernel.AgentAuthNewParams, opts ...option.RequestOption) (res *kernel.AuthAgent, err error)
	Get(ctx context.Context, id string, opts ...option.RequestOption) (res *kernel.AuthAgent, err error)
	List(ctx context.Context, query kernel.AgentAuthListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[kernel.AuthAgent], err error)
	Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
}

AgentAuthService defines the subset of the Kernel SDK agent auth client that we use.

type BoolFlag

type BoolFlag struct {
	Set   bool
	Value bool
}

BoolFlag captures whether a boolean flag was set explicitly and its value.

type BrowserComputerService

BrowserComputerService defines the subset we use for OS-level mouse & screen.

type BrowserFSService

type BrowserFSService interface {
	NewDirectory(ctx context.Context, id string, body kernel.BrowserFNewDirectoryParams, opts ...option.RequestOption) (err error)
	DeleteDirectory(ctx context.Context, id string, body kernel.BrowserFDeleteDirectoryParams, opts ...option.RequestOption) (err error)
	DeleteFile(ctx context.Context, id string, body kernel.BrowserFDeleteFileParams, opts ...option.RequestOption) (err error)
	DownloadDirZip(ctx context.Context, id string, query kernel.BrowserFDownloadDirZipParams, opts ...option.RequestOption) (res *http.Response, err error)
	FileInfo(ctx context.Context, id string, query kernel.BrowserFFileInfoParams, opts ...option.RequestOption) (res *kernel.BrowserFFileInfoResponse, err error)
	ListFiles(ctx context.Context, id string, query kernel.BrowserFListFilesParams, opts ...option.RequestOption) (res *[]kernel.BrowserFListFilesResponse, err error)
	Move(ctx context.Context, id string, body kernel.BrowserFMoveParams, opts ...option.RequestOption) (err error)
	ReadFile(ctx context.Context, id string, query kernel.BrowserFReadFileParams, opts ...option.RequestOption) (res *http.Response, err error)
	SetFilePermissions(ctx context.Context, id string, body kernel.BrowserFSetFilePermissionsParams, opts ...option.RequestOption) (err error)
	Upload(ctx context.Context, id string, body kernel.BrowserFUploadParams, opts ...option.RequestOption) (err error)
	UploadZip(ctx context.Context, id string, body kernel.BrowserFUploadZipParams, opts ...option.RequestOption) (err error)
	WriteFile(ctx context.Context, id string, contents io.Reader, body kernel.BrowserFWriteFileParams, opts ...option.RequestOption) (err error)
}

BrowserFSService defines the subset we use for browser filesystem APIs.

type BrowserFWatchService added in v0.14.0

type BrowserFWatchService interface {
	EventsStreaming(ctx context.Context, watchID string, query kernel.BrowserFWatchEventsParams, opts ...option.RequestOption) (stream *ssestream.Stream[kernel.BrowserFWatchEventsResponse])
	Start(ctx context.Context, id string, body kernel.BrowserFWatchStartParams, opts ...option.RequestOption) (res *kernel.BrowserFWatchStartResponse, err error)
	Stop(ctx context.Context, watchID string, body kernel.BrowserFWatchStopParams, opts ...option.RequestOption) (err error)
}

BrowserFWatchService defines the subset we use for browser filesystem watch APIs.

type BrowserLogService

type BrowserLogService interface {
	StreamStreaming(ctx context.Context, id string, query kernel.BrowserLogStreamParams, opts ...option.RequestOption) (stream *ssestream.Stream[shared.LogEvent])
}

BrowserLogService defines the subset we use for browser log APIs.

type BrowserPlaywrightService

type BrowserPlaywrightService interface {
	Execute(ctx context.Context, id string, body kernel.BrowserPlaywrightExecuteParams, opts ...option.RequestOption) (res *kernel.BrowserPlaywrightExecuteResponse, err error)
}

BrowserPlaywrightService defines the subset we use for Playwright execution.

type BrowserPoolsAcquireInput

type BrowserPoolsAcquireInput struct {
	IDOrName       string
	TimeoutSeconds int64
	Output         string
}

type BrowserPoolsCmd

type BrowserPoolsCmd struct {
	// contains filtered or unexported fields
}

func (BrowserPoolsCmd) Acquire

func (BrowserPoolsCmd) Create

func (BrowserPoolsCmd) Delete

func (BrowserPoolsCmd) Flush

func (BrowserPoolsCmd) Get

func (BrowserPoolsCmd) List

func (BrowserPoolsCmd) Release

func (BrowserPoolsCmd) Update

type BrowserPoolsCreateInput

type BrowserPoolsCreateInput struct {
	Name               string
	Size               int64
	FillRate           int64
	TimeoutSeconds     int64
	Stealth            BoolFlag
	Headless           BoolFlag
	Kiosk              BoolFlag
	ProfileID          string
	ProfileName        string
	ProfileSaveChanges BoolFlag
	ProxyID            string
	Extensions         []string
	Viewport           string
	Output             string
}

type BrowserPoolsDeleteInput

type BrowserPoolsDeleteInput struct {
	IDOrName string
	Force    bool
}

type BrowserPoolsFlushInput

type BrowserPoolsFlushInput struct {
	IDOrName string
}

type BrowserPoolsGetInput

type BrowserPoolsGetInput struct {
	IDOrName string
	Output   string
}

type BrowserPoolsListInput

type BrowserPoolsListInput struct {
	Output string
}

type BrowserPoolsReleaseInput

type BrowserPoolsReleaseInput struct {
	IDOrName  string
	SessionID string
	Reuse     BoolFlag
}

type BrowserPoolsService

type BrowserPoolsService interface {
	List(ctx context.Context, opts ...option.RequestOption) (res *[]kernel.BrowserPool, err error)
	New(ctx context.Context, body kernel.BrowserPoolNewParams, opts ...option.RequestOption) (res *kernel.BrowserPool, err error)
	Get(ctx context.Context, id string, opts ...option.RequestOption) (res *kernel.BrowserPool, err error)
	Update(ctx context.Context, id string, body kernel.BrowserPoolUpdateParams, opts ...option.RequestOption) (res *kernel.BrowserPool, err error)
	Delete(ctx context.Context, id string, body kernel.BrowserPoolDeleteParams, opts ...option.RequestOption) (err error)
	Acquire(ctx context.Context, id string, body kernel.BrowserPoolAcquireParams, opts ...option.RequestOption) (res *kernel.BrowserPoolAcquireResponse, err error)
	Release(ctx context.Context, id string, body kernel.BrowserPoolReleaseParams, opts ...option.RequestOption) (err error)
	Flush(ctx context.Context, id string, opts ...option.RequestOption) (err error)
}

BrowserPoolsService defines the subset of the Kernel SDK browser pools client that we use.

type BrowserPoolsUpdateInput

type BrowserPoolsUpdateInput struct {
	IDOrName           string
	Name               string
	Size               int64
	FillRate           int64
	TimeoutSeconds     int64
	Stealth            BoolFlag
	Headless           BoolFlag
	Kiosk              BoolFlag
	ProfileID          string
	ProfileName        string
	ProfileSaveChanges BoolFlag
	ProxyID            string
	Extensions         []string
	Viewport           string
	DiscardAllIdle     BoolFlag
	Output             string
}

type BrowserProcessService

BrowserProcessService defines the subset we use for browser process APIs.

type BrowserReplaysService

type BrowserReplaysService interface {
	List(ctx context.Context, id string, opts ...option.RequestOption) (res *[]kernel.BrowserReplayListResponse, err error)
	Download(ctx context.Context, replayID string, query kernel.BrowserReplayDownloadParams, opts ...option.RequestOption) (res *http.Response, err error)
	Start(ctx context.Context, id string, body kernel.BrowserReplayStartParams, opts ...option.RequestOption) (res *kernel.BrowserReplayStartResponse, err error)
	Stop(ctx context.Context, replayID string, body kernel.BrowserReplayStopParams, opts ...option.RequestOption) (err error)
}

BrowserReplaysService defines the subset we use for browser replays.

type BrowsersCmd

type BrowsersCmd struct {
	// contains filtered or unexported fields
}

BrowsersCmd is a cobra-independent command handler for browsers operations.

func (BrowsersCmd) ComputerClickMouse

func (b BrowsersCmd) ComputerClickMouse(ctx context.Context, in BrowsersComputerClickMouseInput) error

func (BrowsersCmd) ComputerDragMouse

func (b BrowsersCmd) ComputerDragMouse(ctx context.Context, in BrowsersComputerDragMouseInput) error

func (BrowsersCmd) ComputerMoveMouse

func (b BrowsersCmd) ComputerMoveMouse(ctx context.Context, in BrowsersComputerMoveMouseInput) error

func (BrowsersCmd) ComputerPressKey

func (b BrowsersCmd) ComputerPressKey(ctx context.Context, in BrowsersComputerPressKeyInput) error

func (BrowsersCmd) ComputerScreenshot

func (b BrowsersCmd) ComputerScreenshot(ctx context.Context, in BrowsersComputerScreenshotInput) error

func (BrowsersCmd) ComputerScroll

func (b BrowsersCmd) ComputerScroll(ctx context.Context, in BrowsersComputerScrollInput) error

func (BrowsersCmd) ComputerSetCursor

func (b BrowsersCmd) ComputerSetCursor(ctx context.Context, in BrowsersComputerSetCursorInput) error

func (BrowsersCmd) ComputerTypeText

func (b BrowsersCmd) ComputerTypeText(ctx context.Context, in BrowsersComputerTypeTextInput) error

func (BrowsersCmd) Create

func (BrowsersCmd) Delete

func (BrowsersCmd) ExtensionsUpload

func (b BrowsersCmd) ExtensionsUpload(ctx context.Context, in BrowsersExtensionsUploadInput) error

func (BrowsersCmd) FSDeleteDirectory

func (b BrowsersCmd) FSDeleteDirectory(ctx context.Context, in BrowsersFSDeleteDirInput) error

func (BrowsersCmd) FSDeleteFile

func (b BrowsersCmd) FSDeleteFile(ctx context.Context, in BrowsersFSDeleteFileInput) error

func (BrowsersCmd) FSDownloadDirZip

func (b BrowsersCmd) FSDownloadDirZip(ctx context.Context, in BrowsersFSDownloadDirZipInput) error

func (BrowsersCmd) FSFileInfo

func (BrowsersCmd) FSListFiles

func (b BrowsersCmd) FSListFiles(ctx context.Context, in BrowsersFSListFilesInput) error

func (BrowsersCmd) FSMove

func (BrowsersCmd) FSNewDirectory

func (b BrowsersCmd) FSNewDirectory(ctx context.Context, in BrowsersFSNewDirInput) error

func (BrowsersCmd) FSReadFile

func (BrowsersCmd) FSSetPermissions

func (b BrowsersCmd) FSSetPermissions(ctx context.Context, in BrowsersFSSetPermsInput) error

func (BrowsersCmd) FSUpload

func (BrowsersCmd) FSUploadZip

func (b BrowsersCmd) FSUploadZip(ctx context.Context, in BrowsersFSUploadZipInput) error

func (BrowsersCmd) FSWatchEvents added in v0.14.0

func (b BrowsersCmd) FSWatchEvents(ctx context.Context, in BrowsersFSWatchEventsInput) error

func (BrowsersCmd) FSWatchStart added in v0.14.0

func (b BrowsersCmd) FSWatchStart(ctx context.Context, in BrowsersFSWatchStartInput) error

FS Watch

func (BrowsersCmd) FSWatchStop added in v0.14.0

func (b BrowsersCmd) FSWatchStop(ctx context.Context, in BrowsersFSWatchStopInput) error

func (BrowsersCmd) FSWriteFile

func (b BrowsersCmd) FSWriteFile(ctx context.Context, in BrowsersFSWriteFileInput) error

func (BrowsersCmd) Get

func (BrowsersCmd) List

func (BrowsersCmd) LogsStream

func (BrowsersCmd) PlaywrightExecute

func (b BrowsersCmd) PlaywrightExecute(ctx context.Context, in BrowsersPlaywrightExecuteInput) error

func (BrowsersCmd) ProcessExec

func (b BrowsersCmd) ProcessExec(ctx context.Context, in BrowsersProcessExecInput) error

func (BrowsersCmd) ProcessKill

func (b BrowsersCmd) ProcessKill(ctx context.Context, in BrowsersProcessKillInput) error

func (BrowsersCmd) ProcessResize added in v0.14.0

func (b BrowsersCmd) ProcessResize(ctx context.Context, in BrowsersProcessResizeInput) error

func (BrowsersCmd) ProcessSpawn

func (b BrowsersCmd) ProcessSpawn(ctx context.Context, in BrowsersProcessSpawnInput) error

func (BrowsersCmd) ProcessStatus

func (b BrowsersCmd) ProcessStatus(ctx context.Context, in BrowsersProcessStatusInput) error

func (BrowsersCmd) ProcessStdin

func (b BrowsersCmd) ProcessStdin(ctx context.Context, in BrowsersProcessStdinInput) error

func (BrowsersCmd) ProcessStdoutStream

func (b BrowsersCmd) ProcessStdoutStream(ctx context.Context, in BrowsersProcessStdoutStreamInput) error

func (BrowsersCmd) ReplaysDownload

func (b BrowsersCmd) ReplaysDownload(ctx context.Context, in BrowsersReplaysDownloadInput) error

func (BrowsersCmd) ReplaysList

func (b BrowsersCmd) ReplaysList(ctx context.Context, in BrowsersReplaysListInput) error

func (BrowsersCmd) ReplaysStart

func (b BrowsersCmd) ReplaysStart(ctx context.Context, in BrowsersReplaysStartInput) error

func (BrowsersCmd) ReplaysStop

func (b BrowsersCmd) ReplaysStop(ctx context.Context, in BrowsersReplaysStopInput) error

func (BrowsersCmd) Update added in v0.13.5

func (BrowsersCmd) View

type BrowsersComputerClickMouseInput

type BrowsersComputerClickMouseInput struct {
	Identifier string
	X          int64
	Y          int64
	NumClicks  int64
	Button     string
	ClickType  string
	HoldKeys   []string
}

Computer (mouse/screen)

type BrowsersComputerDragMouseInput

type BrowsersComputerDragMouseInput struct {
	Identifier      string
	Path            [][]int64
	Delay           int64
	StepDelayMs     int64
	StepsPerSegment int64
	Button          string
	HoldKeys        []string
}

type BrowsersComputerMoveMouseInput

type BrowsersComputerMoveMouseInput struct {
	Identifier string
	X          int64
	Y          int64
	HoldKeys   []string
}

type BrowsersComputerPressKeyInput

type BrowsersComputerPressKeyInput struct {
	Identifier string
	Keys       []string
	Duration   int64
	HoldKeys   []string
}

type BrowsersComputerScreenshotInput

type BrowsersComputerScreenshotInput struct {
	Identifier string
	X          int64
	Y          int64
	Width      int64
	Height     int64
	To         string
	HasRegion  bool
}

type BrowsersComputerScrollInput

type BrowsersComputerScrollInput struct {
	Identifier string
	X          int64
	Y          int64
	DeltaX     int64
	DeltaXSet  bool
	DeltaY     int64
	DeltaYSet  bool
	HoldKeys   []string
}

type BrowsersComputerSetCursorInput

type BrowsersComputerSetCursorInput struct {
	Identifier string
	Hidden     bool
}

type BrowsersComputerTypeTextInput

type BrowsersComputerTypeTextInput struct {
	Identifier string
	Text       string
	Delay      int64
}

type BrowsersCreateInput

type BrowsersCreateInput struct {
	PersistenceID      string
	TimeoutSeconds     int
	Stealth            BoolFlag
	Headless           BoolFlag
	Kiosk              BoolFlag
	ProfileID          string
	ProfileName        string
	ProfileSaveChanges BoolFlag
	ProxyID            string
	Extensions         []string
	Viewport           string
	Output             string
}

Inputs for each command

type BrowsersDeleteInput

type BrowsersDeleteInput struct {
	Identifier string
}

type BrowsersExtensionsUploadInput

type BrowsersExtensionsUploadInput struct {
	Identifier     string
	ExtensionPaths []string
}

type BrowsersFSDeleteDirInput

type BrowsersFSDeleteDirInput struct {
	Identifier string
	Path       string
}

type BrowsersFSDeleteFileInput

type BrowsersFSDeleteFileInput struct {
	Identifier string
	Path       string
}

type BrowsersFSDownloadDirZipInput

type BrowsersFSDownloadDirZipInput struct {
	Identifier string
	Path       string
	Output     string
}

type BrowsersFSFileInfoInput

type BrowsersFSFileInfoInput struct {
	Identifier string
	Path       string
	Output     string
}

type BrowsersFSListFilesInput

type BrowsersFSListFilesInput struct {
	Identifier string
	Path       string
	Output     string
}

type BrowsersFSMoveInput

type BrowsersFSMoveInput struct {
	Identifier string
	SrcPath    string
	DestPath   string
}

type BrowsersFSNewDirInput

type BrowsersFSNewDirInput struct {
	Identifier string
	Path       string
	Mode       string
}

FS (minimal scaffolding)

type BrowsersFSReadFileInput

type BrowsersFSReadFileInput struct {
	Identifier string
	Path       string
	Output     string
}

type BrowsersFSSetPermsInput

type BrowsersFSSetPermsInput struct {
	Identifier string
	Path       string
	Mode       string
	Owner      string
	Group      string
}

type BrowsersFSUploadInput

type BrowsersFSUploadInput struct {
	Identifier string
	Mappings   []struct {
		Local string
		Dest  string
	}
	DestDir string
	Paths   []string
}

Upload inputs

type BrowsersFSUploadZipInput

type BrowsersFSUploadZipInput struct {
	Identifier string
	ZipPath    string
	DestDir    string
}

type BrowsersFSWatchEventsInput added in v0.14.0

type BrowsersFSWatchEventsInput struct {
	Identifier string
	WatchID    string
}

type BrowsersFSWatchStartInput added in v0.14.0

type BrowsersFSWatchStartInput struct {
	Identifier string
	Path       string
	Recursive  BoolFlag
	Output     string
}

FS Watch

type BrowsersFSWatchStopInput added in v0.14.0

type BrowsersFSWatchStopInput struct {
	Identifier string
	WatchID    string
}

type BrowsersFSWriteFileInput

type BrowsersFSWriteFileInput struct {
	Identifier string
	DestPath   string
	Mode       string
	SourcePath string
}

type BrowsersGetInput

type BrowsersGetInput struct {
	Identifier string
	Output     string
}

type BrowsersListInput

type BrowsersListInput struct {
	Output         string
	IncludeDeleted bool
	Limit          int
	Offset         int
}

type BrowsersLogsStreamInput

type BrowsersLogsStreamInput struct {
	Identifier        string
	Source            string
	Follow            BoolFlag
	Path              string
	SupervisorProcess string
}

Logs

type BrowsersPlaywrightExecuteInput

type BrowsersPlaywrightExecuteInput struct {
	Identifier string
	Code       string
	Timeout    int64
}

Playwright

type BrowsersProcessExecInput

type BrowsersProcessExecInput struct {
	Identifier string
	Command    string
	Args       []string
	Cwd        string
	Timeout    int
	AsUser     string
	AsRoot     BoolFlag
	Output     string
}

Process

type BrowsersProcessKillInput

type BrowsersProcessKillInput struct {
	Identifier string
	ProcessID  string
	Signal     string
}

type BrowsersProcessResizeInput added in v0.14.0

type BrowsersProcessResizeInput struct {
	Identifier string
	ProcessID  string
	Cols       int64
	Rows       int64
}

type BrowsersProcessSpawnInput

type BrowsersProcessSpawnInput struct {
	Identifier string
	Command    string
	Args       []string
	Cwd        string
	Timeout    int
	AsUser     string
	AsRoot     BoolFlag
	Output     string
}

type BrowsersProcessStatusInput

type BrowsersProcessStatusInput struct {
	Identifier string
	ProcessID  string
}

type BrowsersProcessStdinInput

type BrowsersProcessStdinInput struct {
	Identifier string
	ProcessID  string
	DataB64    string
}

type BrowsersProcessStdoutStreamInput

type BrowsersProcessStdoutStreamInput struct {
	Identifier string
	ProcessID  string
}

type BrowsersReplaysDownloadInput

type BrowsersReplaysDownloadInput struct {
	Identifier string
	ReplayID   string
	Output     string
}

type BrowsersReplaysListInput

type BrowsersReplaysListInput struct {
	Identifier string
	Output     string
}

Replays

type BrowsersReplaysStartInput

type BrowsersReplaysStartInput struct {
	Identifier         string
	Framerate          int
	MaxDurationSeconds int
	Output             string
}

type BrowsersReplaysStopInput

type BrowsersReplaysStopInput struct {
	Identifier string
	ReplayID   string
}

type BrowsersService

BrowsersService defines the subset of the Kernel SDK browser client that we use. See https://github.com/kernel/kernel-go-sdk/blob/main/browser.go

type BrowsersUpdateInput added in v0.13.5

type BrowsersUpdateInput struct {
	Identifier         string
	ProxyID            string
	ClearProxy         bool
	ProfileID          string
	ProfileName        string
	ProfileSaveChanges BoolFlag
	Viewport           string
	Output             string
}

type BrowsersViewInput

type BrowsersViewInput struct {
	Identifier string
	Output     string
}

type CreateCmd

type CreateCmd struct{}

CreateCmd is a cobra-independent command handler for create operations

func (CreateCmd) Create

func (c CreateCmd) Create(ctx context.Context, ci create.CreateInput) error

Create executes the creating a new Kernel app logic

type CredentialProvidersCmd added in v0.14.0

type CredentialProvidersCmd struct {
	// contains filtered or unexported fields
}

CredentialProvidersCmd handles credential provider operations independent of cobra.

func (CredentialProvidersCmd) Create added in v0.14.0

func (CredentialProvidersCmd) Delete added in v0.14.0

func (CredentialProvidersCmd) Get added in v0.14.0

func (CredentialProvidersCmd) List added in v0.14.0

func (CredentialProvidersCmd) Test added in v0.14.0

func (CredentialProvidersCmd) Update added in v0.14.0

type CredentialProvidersCreateInput added in v0.14.0

type CredentialProvidersCreateInput struct {
	ProviderType    string
	Token           string
	CacheTtlSeconds int64
	Output          string
}

type CredentialProvidersDeleteInput added in v0.14.0

type CredentialProvidersDeleteInput struct {
	ID          string
	SkipConfirm bool
}

type CredentialProvidersGetInput added in v0.14.0

type CredentialProvidersGetInput struct {
	ID     string
	Output string
}

type CredentialProvidersListInput added in v0.14.0

type CredentialProvidersListInput struct {
	Output string
}

type CredentialProvidersService added in v0.14.0

type CredentialProvidersService interface {
	New(ctx context.Context, body kernel.CredentialProviderNewParams, opts ...option.RequestOption) (res *kernel.CredentialProvider, err error)
	Get(ctx context.Context, id string, opts ...option.RequestOption) (res *kernel.CredentialProvider, err error)
	Update(ctx context.Context, id string, body kernel.CredentialProviderUpdateParams, opts ...option.RequestOption) (res *kernel.CredentialProvider, err error)
	List(ctx context.Context, opts ...option.RequestOption) (res *[]kernel.CredentialProvider, err error)
	Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
	Test(ctx context.Context, id string, opts ...option.RequestOption) (res *kernel.CredentialProviderTestResult, err error)
}

CredentialProvidersService defines the subset of the Kernel SDK credential provider client that we use.

type CredentialProvidersTestInput added in v0.14.0

type CredentialProvidersTestInput struct {
	ID     string
	Output string
}

type CredentialProvidersUpdateInput added in v0.14.0

type CredentialProvidersUpdateInput struct {
	ID              string
	Token           string
	CacheTtlSeconds int64
	Enabled         BoolFlag
	Priority        Int64Flag
	Output          string
}

type CredentialsCmd added in v0.14.0

type CredentialsCmd struct {
	// contains filtered or unexported fields
}

CredentialsCmd handles credential operations independent of cobra.

func (CredentialsCmd) Create added in v0.14.0

func (CredentialsCmd) Delete added in v0.14.0

func (CredentialsCmd) Get added in v0.14.0

func (CredentialsCmd) List added in v0.14.0

func (CredentialsCmd) TotpCode added in v0.14.0

func (CredentialsCmd) Update added in v0.14.0

type CredentialsCreateInput added in v0.14.0

type CredentialsCreateInput struct {
	Name        string
	Domain      string
	Values      map[string]string
	SSOProvider string
	TotpSecret  string
	Output      string
}

type CredentialsDeleteInput added in v0.14.0

type CredentialsDeleteInput struct {
	Identifier  string
	SkipConfirm bool
}

type CredentialsGetInput added in v0.14.0

type CredentialsGetInput struct {
	Identifier string
	Output     string
}

type CredentialsListInput added in v0.14.0

type CredentialsListInput struct {
	Domain string
	Limit  int
	Offset int
	Output string
}

type CredentialsService added in v0.14.0

type CredentialsService interface {
	New(ctx context.Context, body kernel.CredentialNewParams, opts ...option.RequestOption) (res *kernel.Credential, err error)
	Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.Credential, err error)
	Update(ctx context.Context, idOrName string, body kernel.CredentialUpdateParams, opts ...option.RequestOption) (res *kernel.Credential, err error)
	List(ctx context.Context, query kernel.CredentialListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[kernel.Credential], err error)
	Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)
	TotpCode(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.CredentialTotpCodeResponse, err error)
}

CredentialsService defines the subset of the Kernel SDK credential client that we use.

type CredentialsTotpCodeInput added in v0.14.0

type CredentialsTotpCodeInput struct {
	Identifier string
	Output     string
}

type CredentialsUpdateInput added in v0.14.0

type CredentialsUpdateInput struct {
	Identifier  string
	Name        string
	SSOProvider string
	TotpSecret  string
	Values      map[string]string
	Output      string
}

type ExtensionsCmd

type ExtensionsCmd struct {
	// contains filtered or unexported fields
}

ExtensionsCmd handles extension operations independent of cobra.

func (ExtensionsCmd) Delete

func (ExtensionsCmd) Download

func (ExtensionsCmd) DownloadWebStore

func (ExtensionsCmd) List

func (ExtensionsCmd) Upload

type ExtensionsDeleteInput

type ExtensionsDeleteInput struct {
	Identifier  string
	SkipConfirm bool
}

type ExtensionsDownloadInput

type ExtensionsDownloadInput struct {
	Identifier string
	Output     string
}

type ExtensionsDownloadWebStoreInput

type ExtensionsDownloadWebStoreInput struct {
	URL    string
	Output string
	OS     string
}

type ExtensionsListInput

type ExtensionsListInput struct {
	Output string
}

type ExtensionsService

type ExtensionsService interface {
	List(ctx context.Context, opts ...option.RequestOption) (res *[]kernel.ExtensionListResponse, err error)
	Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)
	Download(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *http.Response, err error)
	DownloadFromChromeStore(ctx context.Context, query kernel.ExtensionDownloadFromChromeStoreParams, opts ...option.RequestOption) (res *http.Response, err error)
	Upload(ctx context.Context, body kernel.ExtensionUploadParams, opts ...option.RequestOption) (res *kernel.ExtensionUploadResponse, err error)
}

ExtensionsService defines the subset of the Kernel SDK extension client that we use.

type ExtensionsUploadInput

type ExtensionsUploadInput struct {
	Dir    string
	Name   string
	Output string
}

type Int64Flag added in v0.14.0

type Int64Flag struct {
	Set   bool
	Value int64
}

Int64Flag captures whether an int64 flag was set explicitly and its value.

type JWTClaims

type JWTClaims struct {
	Sub     string `json:"sub"`      // User ID
	Email   string `json:"email"`    // User email
	Exp     int64  `json:"exp"`      // Expiration time
	Iss     string `json:"iss"`      // Issuer
	OrgID   string `json:"org_id"`   // Organization ID
	OrgName string `json:"org_name"` // Organization name
}

JWTClaims represents the claims in a JWT token

type Metadata

type Metadata struct {
	Version   string
	Commit    string
	Date      string
	GoVersion string
}

type ProfilesCmd

type ProfilesCmd struct {
	// contains filtered or unexported fields
}

ProfilesCmd handles profile operations independent of cobra.

func (ProfilesCmd) Create

func (ProfilesCmd) Delete

func (ProfilesCmd) Download

func (ProfilesCmd) Get

func (ProfilesCmd) List

type ProfilesCreateInput

type ProfilesCreateInput struct {
	Name   string
	Output string
}

type ProfilesDeleteInput

type ProfilesDeleteInput struct {
	Identifier  string
	SkipConfirm bool
}

type ProfilesDownloadInput

type ProfilesDownloadInput struct {
	Identifier string
	Output     string
	Pretty     bool
}

type ProfilesGetInput

type ProfilesGetInput struct {
	Identifier string
	Output     string
}

type ProfilesListInput added in v0.13.3

type ProfilesListInput struct {
	Output string
}

type ProfilesService

type ProfilesService interface {
	Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.Profile, err error)
	List(ctx context.Context, opts ...option.RequestOption) (res *[]kernel.Profile, err error)
	Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)
	New(ctx context.Context, body kernel.ProfileNewParams, opts ...option.RequestOption) (res *kernel.Profile, err error)
	Download(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *http.Response, err error)
}

ProfilesService defines the subset of the Kernel SDK profile client that we use.

type UpgradeCmd added in v0.13.4

type UpgradeCmd struct {
	// contains filtered or unexported fields
}

UpgradeCmd handles the upgrade command logic, separated from cobra.

func (UpgradeCmd) Run added in v0.13.4

func (u UpgradeCmd) Run(ctx context.Context, in UpgradeInput) error

Run executes the upgrade command logic.

type UpgradeInput added in v0.13.4

type UpgradeInput struct {
	DryRun bool
}

UpgradeInput holds the input parameters for the upgrade command.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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