Documentation
¶
Index ¶
- func Execute(m Metadata)
- func PrintTableNoPad(data pterm.TableData, hasHeader bool)
- type BoolFlag
- type BrowserComputerService
- type BrowserFSService
- type BrowserLogService
- type BrowserPlaywrightService
- type BrowserProcessService
- type BrowserReplaysService
- type BrowsersCmd
- func (b BrowsersCmd) ComputerClickMouse(ctx context.Context, in BrowsersComputerClickMouseInput) error
- func (b BrowsersCmd) ComputerDragMouse(ctx context.Context, in BrowsersComputerDragMouseInput) error
- func (b BrowsersCmd) ComputerMoveMouse(ctx context.Context, in BrowsersComputerMoveMouseInput) error
- func (b BrowsersCmd) ComputerPressKey(ctx context.Context, in BrowsersComputerPressKeyInput) error
- func (b BrowsersCmd) ComputerScreenshot(ctx context.Context, in BrowsersComputerScreenshotInput) error
- func (b BrowsersCmd) ComputerScroll(ctx context.Context, in BrowsersComputerScrollInput) error
- func (b BrowsersCmd) ComputerTypeText(ctx context.Context, in BrowsersComputerTypeTextInput) error
- func (b BrowsersCmd) Create(ctx context.Context, in BrowsersCreateInput) error
- func (b BrowsersCmd) Delete(ctx context.Context, in BrowsersDeleteInput) error
- func (b BrowsersCmd) ExtensionsUpload(ctx context.Context, in BrowsersExtensionsUploadInput) error
- func (b BrowsersCmd) FSDeleteDirectory(ctx context.Context, in BrowsersFSDeleteDirInput) error
- func (b BrowsersCmd) FSDeleteFile(ctx context.Context, in BrowsersFSDeleteFileInput) error
- func (b BrowsersCmd) FSDownloadDirZip(ctx context.Context, in BrowsersFSDownloadDirZipInput) error
- func (b BrowsersCmd) FSFileInfo(ctx context.Context, in BrowsersFSFileInfoInput) error
- func (b BrowsersCmd) FSListFiles(ctx context.Context, in BrowsersFSListFilesInput) error
- func (b BrowsersCmd) FSMove(ctx context.Context, in BrowsersFSMoveInput) error
- func (b BrowsersCmd) FSNewDirectory(ctx context.Context, in BrowsersFSNewDirInput) error
- func (b BrowsersCmd) FSReadFile(ctx context.Context, in BrowsersFSReadFileInput) error
- func (b BrowsersCmd) FSSetPermissions(ctx context.Context, in BrowsersFSSetPermsInput) error
- func (b BrowsersCmd) FSUpload(ctx context.Context, in BrowsersFSUploadInput) error
- func (b BrowsersCmd) FSUploadZip(ctx context.Context, in BrowsersFSUploadZipInput) error
- func (b BrowsersCmd) FSWriteFile(ctx context.Context, in BrowsersFSWriteFileInput) error
- func (b BrowsersCmd) List(ctx context.Context, in BrowsersListInput) error
- func (b BrowsersCmd) LogsStream(ctx context.Context, in BrowsersLogsStreamInput) error
- func (b BrowsersCmd) PlaywrightExecute(ctx context.Context, in BrowsersPlaywrightExecuteInput) error
- func (b BrowsersCmd) ProcessExec(ctx context.Context, in BrowsersProcessExecInput) error
- func (b BrowsersCmd) ProcessKill(ctx context.Context, in BrowsersProcessKillInput) error
- func (b BrowsersCmd) ProcessSpawn(ctx context.Context, in BrowsersProcessSpawnInput) error
- func (b BrowsersCmd) ProcessStatus(ctx context.Context, in BrowsersProcessStatusInput) error
- func (b BrowsersCmd) ProcessStdin(ctx context.Context, in BrowsersProcessStdinInput) error
- func (b BrowsersCmd) ProcessStdoutStream(ctx context.Context, in BrowsersProcessStdoutStreamInput) error
- func (b BrowsersCmd) ReplaysDownload(ctx context.Context, in BrowsersReplaysDownloadInput) error
- func (b BrowsersCmd) ReplaysList(ctx context.Context, in BrowsersReplaysListInput) error
- func (b BrowsersCmd) ReplaysStart(ctx context.Context, in BrowsersReplaysStartInput) error
- func (b BrowsersCmd) ReplaysStop(ctx context.Context, in BrowsersReplaysStopInput) error
- func (b BrowsersCmd) View(ctx context.Context, in BrowsersViewInput) error
- type BrowsersComputerClickMouseInput
- type BrowsersComputerDragMouseInput
- type BrowsersComputerMoveMouseInput
- type BrowsersComputerPressKeyInput
- type BrowsersComputerScreenshotInput
- type BrowsersComputerScrollInput
- type BrowsersComputerTypeTextInput
- type BrowsersCreateInput
- type BrowsersDeleteInput
- type BrowsersExtensionsUploadInput
- type BrowsersFSDeleteDirInput
- type BrowsersFSDeleteFileInput
- type BrowsersFSDownloadDirZipInput
- type BrowsersFSFileInfoInput
- type BrowsersFSListFilesInput
- type BrowsersFSMoveInput
- type BrowsersFSNewDirInput
- type BrowsersFSReadFileInput
- type BrowsersFSSetPermsInput
- type BrowsersFSUploadInput
- type BrowsersFSUploadZipInput
- type BrowsersFSWriteFileInput
- type BrowsersListInput
- type BrowsersLogsStreamInput
- type BrowsersPlaywrightExecuteInput
- type BrowsersProcessExecInput
- type BrowsersProcessKillInput
- type BrowsersProcessSpawnInput
- type BrowsersProcessStatusInput
- type BrowsersProcessStdinInput
- type BrowsersProcessStdoutStreamInput
- type BrowsersReplaysDownloadInput
- type BrowsersReplaysListInput
- type BrowsersReplaysStartInput
- type BrowsersReplaysStopInput
- type BrowsersService
- type BrowsersViewInput
- type ExtensionsCmd
- func (e ExtensionsCmd) Delete(ctx context.Context, in ExtensionsDeleteInput) error
- func (e ExtensionsCmd) Download(ctx context.Context, in ExtensionsDownloadInput) error
- func (e ExtensionsCmd) DownloadWebStore(ctx context.Context, in ExtensionsDownloadWebStoreInput) error
- func (e ExtensionsCmd) List(ctx context.Context, _ ExtensionsListInput) error
- func (e ExtensionsCmd) Upload(ctx context.Context, in ExtensionsUploadInput) error
- type ExtensionsDeleteInput
- type ExtensionsDownloadInput
- type ExtensionsDownloadWebStoreInput
- type ExtensionsListInput
- type ExtensionsService
- type ExtensionsUploadInput
- type JWTClaims
- type Metadata
- type ProfilesCmd
- func (p ProfilesCmd) Create(ctx context.Context, in ProfilesCreateInput) error
- func (p ProfilesCmd) Delete(ctx context.Context, in ProfilesDeleteInput) error
- func (p ProfilesCmd) Download(ctx context.Context, in ProfilesDownloadInput) error
- func (p ProfilesCmd) Get(ctx context.Context, in ProfilesGetInput) error
- func (p ProfilesCmd) List(ctx context.Context) error
- type ProfilesCreateInput
- type ProfilesDeleteInput
- type ProfilesDownloadInput
- type ProfilesGetInput
- type ProfilesService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintTableNoPad ¶ added in v0.8.3
PrintTableNoPad is a wrapper around pkg/table.PrintTableNoPad for backwards compatibility
Types ¶
type BrowserComputerService ¶ added in v0.10.0
type BrowserComputerService interface {
CaptureScreenshot(ctx context.Context, id string, body kernel.BrowserComputerCaptureScreenshotParams, opts ...option.RequestOption) (res *http.Response, err error)
ClickMouse(ctx context.Context, id string, body kernel.BrowserComputerClickMouseParams, opts ...option.RequestOption) (err error)
DragMouse(ctx context.Context, id string, body kernel.BrowserComputerDragMouseParams, opts ...option.RequestOption) (err error)
MoveMouse(ctx context.Context, id string, body kernel.BrowserComputerMoveMouseParams, opts ...option.RequestOption) (err error)
PressKey(ctx context.Context, id string, body kernel.BrowserComputerPressKeyParams, opts ...option.RequestOption) (err error)
Scroll(ctx context.Context, id string, body kernel.BrowserComputerScrollParams, opts ...option.RequestOption) (err error)
TypeText(ctx context.Context, id string, body kernel.BrowserComputerTypeTextParams, opts ...option.RequestOption) (err error)
}
BrowserComputerService defines the subset we use for OS-level mouse & screen.
type BrowserFSService ¶ added in v0.5.0
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 BrowserLogService ¶ added in v0.5.0
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 ¶ added in v0.10.2
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 BrowserProcessService ¶ added in v0.5.0
type BrowserProcessService interface {
Exec(ctx context.Context, id string, body kernel.BrowserProcessExecParams, opts ...option.RequestOption) (res *kernel.BrowserProcessExecResponse, err error)
Kill(ctx context.Context, processID string, params kernel.BrowserProcessKillParams, opts ...option.RequestOption) (res *kernel.BrowserProcessKillResponse, err error)
Spawn(ctx context.Context, id string, body kernel.BrowserProcessSpawnParams, opts ...option.RequestOption) (res *kernel.BrowserProcessSpawnResponse, err error)
Status(ctx context.Context, processID string, query kernel.BrowserProcessStatusParams, opts ...option.RequestOption) (res *kernel.BrowserProcessStatusResponse, err error)
Stdin(ctx context.Context, processID string, params kernel.BrowserProcessStdinParams, opts ...option.RequestOption) (res *kernel.BrowserProcessStdinResponse, err error)
StdoutStreamStreaming(ctx context.Context, processID string, query kernel.BrowserProcessStdoutStreamParams, opts ...option.RequestOption) (stream *ssestream.Stream[kernel.BrowserProcessStdoutStreamResponse])
}
BrowserProcessService defines the subset we use for browser process APIs.
type BrowserReplaysService ¶ added in v0.5.0
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 ¶ added in v0.10.0
func (b BrowsersCmd) ComputerClickMouse(ctx context.Context, in BrowsersComputerClickMouseInput) error
func (BrowsersCmd) ComputerDragMouse ¶ added in v0.10.0
func (b BrowsersCmd) ComputerDragMouse(ctx context.Context, in BrowsersComputerDragMouseInput) error
func (BrowsersCmd) ComputerMoveMouse ¶ added in v0.10.0
func (b BrowsersCmd) ComputerMoveMouse(ctx context.Context, in BrowsersComputerMoveMouseInput) error
func (BrowsersCmd) ComputerPressKey ¶ added in v0.10.0
func (b BrowsersCmd) ComputerPressKey(ctx context.Context, in BrowsersComputerPressKeyInput) error
func (BrowsersCmd) ComputerScreenshot ¶ added in v0.10.0
func (b BrowsersCmd) ComputerScreenshot(ctx context.Context, in BrowsersComputerScreenshotInput) error
func (BrowsersCmd) ComputerScroll ¶ added in v0.10.0
func (b BrowsersCmd) ComputerScroll(ctx context.Context, in BrowsersComputerScrollInput) error
func (BrowsersCmd) ComputerTypeText ¶ added in v0.10.0
func (b BrowsersCmd) ComputerTypeText(ctx context.Context, in BrowsersComputerTypeTextInput) error
func (BrowsersCmd) Create ¶
func (b BrowsersCmd) Create(ctx context.Context, in BrowsersCreateInput) error
func (BrowsersCmd) Delete ¶
func (b BrowsersCmd) Delete(ctx context.Context, in BrowsersDeleteInput) error
func (BrowsersCmd) ExtensionsUpload ¶ added in v0.9.0
func (b BrowsersCmd) ExtensionsUpload(ctx context.Context, in BrowsersExtensionsUploadInput) error
func (BrowsersCmd) FSDeleteDirectory ¶ added in v0.5.0
func (b BrowsersCmd) FSDeleteDirectory(ctx context.Context, in BrowsersFSDeleteDirInput) error
func (BrowsersCmd) FSDeleteFile ¶ added in v0.5.0
func (b BrowsersCmd) FSDeleteFile(ctx context.Context, in BrowsersFSDeleteFileInput) error
func (BrowsersCmd) FSDownloadDirZip ¶ added in v0.5.0
func (b BrowsersCmd) FSDownloadDirZip(ctx context.Context, in BrowsersFSDownloadDirZipInput) error
func (BrowsersCmd) FSFileInfo ¶ added in v0.5.0
func (b BrowsersCmd) FSFileInfo(ctx context.Context, in BrowsersFSFileInfoInput) error
func (BrowsersCmd) FSListFiles ¶ added in v0.5.0
func (b BrowsersCmd) FSListFiles(ctx context.Context, in BrowsersFSListFilesInput) error
func (BrowsersCmd) FSMove ¶ added in v0.5.0
func (b BrowsersCmd) FSMove(ctx context.Context, in BrowsersFSMoveInput) error
func (BrowsersCmd) FSNewDirectory ¶ added in v0.5.0
func (b BrowsersCmd) FSNewDirectory(ctx context.Context, in BrowsersFSNewDirInput) error
func (BrowsersCmd) FSReadFile ¶ added in v0.5.0
func (b BrowsersCmd) FSReadFile(ctx context.Context, in BrowsersFSReadFileInput) error
func (BrowsersCmd) FSSetPermissions ¶ added in v0.5.0
func (b BrowsersCmd) FSSetPermissions(ctx context.Context, in BrowsersFSSetPermsInput) error
func (BrowsersCmd) FSUpload ¶ added in v0.5.0
func (b BrowsersCmd) FSUpload(ctx context.Context, in BrowsersFSUploadInput) error
func (BrowsersCmd) FSUploadZip ¶ added in v0.5.0
func (b BrowsersCmd) FSUploadZip(ctx context.Context, in BrowsersFSUploadZipInput) error
func (BrowsersCmd) FSWriteFile ¶ added in v0.5.0
func (b BrowsersCmd) FSWriteFile(ctx context.Context, in BrowsersFSWriteFileInput) error
func (BrowsersCmd) List ¶
func (b BrowsersCmd) List(ctx context.Context, in BrowsersListInput) error
func (BrowsersCmd) LogsStream ¶ added in v0.5.0
func (b BrowsersCmd) LogsStream(ctx context.Context, in BrowsersLogsStreamInput) error
func (BrowsersCmd) PlaywrightExecute ¶ added in v0.10.2
func (b BrowsersCmd) PlaywrightExecute(ctx context.Context, in BrowsersPlaywrightExecuteInput) error
func (BrowsersCmd) ProcessExec ¶ added in v0.5.0
func (b BrowsersCmd) ProcessExec(ctx context.Context, in BrowsersProcessExecInput) error
func (BrowsersCmd) ProcessKill ¶ added in v0.5.0
func (b BrowsersCmd) ProcessKill(ctx context.Context, in BrowsersProcessKillInput) error
func (BrowsersCmd) ProcessSpawn ¶ added in v0.5.0
func (b BrowsersCmd) ProcessSpawn(ctx context.Context, in BrowsersProcessSpawnInput) error
func (BrowsersCmd) ProcessStatus ¶ added in v0.5.0
func (b BrowsersCmd) ProcessStatus(ctx context.Context, in BrowsersProcessStatusInput) error
func (BrowsersCmd) ProcessStdin ¶ added in v0.5.0
func (b BrowsersCmd) ProcessStdin(ctx context.Context, in BrowsersProcessStdinInput) error
func (BrowsersCmd) ProcessStdoutStream ¶ added in v0.5.0
func (b BrowsersCmd) ProcessStdoutStream(ctx context.Context, in BrowsersProcessStdoutStreamInput) error
func (BrowsersCmd) ReplaysDownload ¶ added in v0.5.0
func (b BrowsersCmd) ReplaysDownload(ctx context.Context, in BrowsersReplaysDownloadInput) error
func (BrowsersCmd) ReplaysList ¶ added in v0.5.0
func (b BrowsersCmd) ReplaysList(ctx context.Context, in BrowsersReplaysListInput) error
func (BrowsersCmd) ReplaysStart ¶ added in v0.5.0
func (b BrowsersCmd) ReplaysStart(ctx context.Context, in BrowsersReplaysStartInput) error
func (BrowsersCmd) ReplaysStop ¶ added in v0.5.0
func (b BrowsersCmd) ReplaysStop(ctx context.Context, in BrowsersReplaysStopInput) error
func (BrowsersCmd) View ¶
func (b BrowsersCmd) View(ctx context.Context, in BrowsersViewInput) error
type BrowsersComputerClickMouseInput ¶ added in v0.10.0
type BrowsersComputerClickMouseInput struct {
Identifier string
X int64
Y int64
NumClicks int64
Button string
ClickType string
HoldKeys []string
}
Computer (mouse/screen)
type BrowsersComputerDragMouseInput ¶ added in v0.10.0
type BrowsersComputerMoveMouseInput ¶ added in v0.10.0
type BrowsersComputerPressKeyInput ¶ added in v0.10.0
type BrowsersComputerScreenshotInput ¶ added in v0.10.0
type BrowsersComputerScrollInput ¶ added in v0.10.0
type BrowsersComputerTypeTextInput ¶ added in v0.10.0
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
}
Inputs for each command
type BrowsersDeleteInput ¶
type BrowsersExtensionsUploadInput ¶ added in v0.9.0
type BrowsersFSDeleteDirInput ¶ added in v0.5.0
type BrowsersFSDeleteFileInput ¶ added in v0.5.0
type BrowsersFSDownloadDirZipInput ¶ added in v0.5.0
type BrowsersFSFileInfoInput ¶ added in v0.5.0
type BrowsersFSListFilesInput ¶ added in v0.5.0
type BrowsersFSMoveInput ¶ added in v0.5.0
type BrowsersFSNewDirInput ¶ added in v0.5.0
FS (minimal scaffolding)
type BrowsersFSReadFileInput ¶ added in v0.5.0
type BrowsersFSSetPermsInput ¶ added in v0.5.0
type BrowsersFSUploadInput ¶ added in v0.5.0
type BrowsersFSUploadInput struct {
Identifier string
Mappings []struct {
Local string
Dest string
}
DestDir string
Paths []string
}
Upload inputs
type BrowsersFSUploadZipInput ¶ added in v0.5.0
type BrowsersFSWriteFileInput ¶ added in v0.5.0
type BrowsersListInput ¶ added in v0.9.0
type BrowsersListInput struct {
Output string
}
type BrowsersLogsStreamInput ¶ added in v0.5.0
type BrowsersLogsStreamInput struct {
Identifier string
Source string
Follow BoolFlag
Path string
SupervisorProcess string
}
Logs
type BrowsersPlaywrightExecuteInput ¶ added in v0.10.2
Playwright
type BrowsersProcessExecInput ¶ added in v0.5.0
type BrowsersProcessExecInput struct {
Identifier string
Command string
Args []string
Cwd string
Timeout int
AsUser string
AsRoot BoolFlag
}
Process
type BrowsersProcessKillInput ¶ added in v0.5.0
type BrowsersProcessSpawnInput ¶ added in v0.5.0
type BrowsersProcessSpawnInput = BrowsersProcessExecInput
type BrowsersProcessStatusInput ¶ added in v0.5.0
type BrowsersProcessStdinInput ¶ added in v0.5.0
type BrowsersProcessStdoutStreamInput ¶ added in v0.5.0
type BrowsersReplaysDownloadInput ¶ added in v0.5.0
type BrowsersReplaysListInput ¶ added in v0.5.0
type BrowsersReplaysListInput struct {
Identifier string
}
Replays
type BrowsersReplaysStartInput ¶ added in v0.5.0
type BrowsersReplaysStopInput ¶ added in v0.5.0
type BrowsersService ¶
type BrowsersService interface {
List(ctx context.Context, opts ...option.RequestOption) (res *[]kernel.BrowserListResponse, err error)
New(ctx context.Context, body kernel.BrowserNewParams, opts ...option.RequestOption) (res *kernel.BrowserNewResponse, err error)
Delete(ctx context.Context, body kernel.BrowserDeleteParams, opts ...option.RequestOption) (err error)
DeleteByID(ctx context.Context, id string, opts ...option.RequestOption) (err error)
LoadExtensions(ctx context.Context, id string, body kernel.BrowserLoadExtensionsParams, opts ...option.RequestOption) (err error)
}
BrowsersService defines the subset of the Kernel SDK browser client that we use. See https://github.com/onkernel/kernel-go-sdk/blob/main/browser.go
type BrowsersViewInput ¶
type BrowsersViewInput struct {
Identifier string
}
type ExtensionsCmd ¶ added in v0.9.0
type ExtensionsCmd struct {
// contains filtered or unexported fields
}
ExtensionsCmd handles extension operations independent of cobra.
func (ExtensionsCmd) Delete ¶ added in v0.9.0
func (e ExtensionsCmd) Delete(ctx context.Context, in ExtensionsDeleteInput) error
func (ExtensionsCmd) Download ¶ added in v0.9.0
func (e ExtensionsCmd) Download(ctx context.Context, in ExtensionsDownloadInput) error
func (ExtensionsCmd) DownloadWebStore ¶ added in v0.9.0
func (e ExtensionsCmd) DownloadWebStore(ctx context.Context, in ExtensionsDownloadWebStoreInput) error
func (ExtensionsCmd) List ¶ added in v0.9.0
func (e ExtensionsCmd) List(ctx context.Context, _ ExtensionsListInput) error
func (ExtensionsCmd) Upload ¶ added in v0.9.0
func (e ExtensionsCmd) Upload(ctx context.Context, in ExtensionsUploadInput) error
type ExtensionsDeleteInput ¶ added in v0.9.0
type ExtensionsDownloadInput ¶ added in v0.9.0
type ExtensionsDownloadWebStoreInput ¶ added in v0.9.0
type ExtensionsListInput ¶ added in v0.9.0
type ExtensionsListInput struct{}
type ExtensionsService ¶ added in v0.9.0
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 ¶ added in v0.9.0
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 ProfilesCmd ¶ added in v0.7.0
type ProfilesCmd struct {
// contains filtered or unexported fields
}
ProfilesCmd handles profile operations independent of cobra.
func (ProfilesCmd) Create ¶ added in v0.7.0
func (p ProfilesCmd) Create(ctx context.Context, in ProfilesCreateInput) error
func (ProfilesCmd) Delete ¶ added in v0.7.0
func (p ProfilesCmd) Delete(ctx context.Context, in ProfilesDeleteInput) error
func (ProfilesCmd) Download ¶ added in v0.7.0
func (p ProfilesCmd) Download(ctx context.Context, in ProfilesDownloadInput) error
func (ProfilesCmd) Get ¶ added in v0.7.0
func (p ProfilesCmd) Get(ctx context.Context, in ProfilesGetInput) error
type ProfilesCreateInput ¶ added in v0.7.0
type ProfilesCreateInput struct {
Name string
}
type ProfilesDeleteInput ¶ added in v0.7.0
type ProfilesDownloadInput ¶ added in v0.7.0
type ProfilesGetInput ¶ added in v0.7.0
type ProfilesGetInput struct {
Identifier string
}
type ProfilesService ¶ added in v0.7.0
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.