Documentation
¶
Index ¶
Constants ¶
View Source
const KernelClientKey contextKey = "kernel_client"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BrowsersCmd ¶
type BrowsersCmd struct {
// contains filtered or unexported fields
}
BrowsersCmd is a cobra-independent command handler for browsers operations.
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) View ¶
func (b BrowsersCmd) View(ctx context.Context, in BrowsersViewInput) error
type BrowsersCreateInput ¶
type BrowsersCreateInput struct {
PersistenceID string
TimeoutSeconds int
Stealth BoolFlag
Headless BoolFlag
}
Inputs for each command
type BrowsersDeleteInput ¶
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)
}
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 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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.