Documentation
¶
Index ¶
- Constants
- func ValidLeaseID(id string) bool
- func ValidProvider(p string) bool
- type Call
- type Jerk
- func (j *Jerk) Drop(ctx context.Context, provider, leaseID string) Outcome
- func (j *Jerk) Lease(ctx context.Context, provider string, duration int) Outcome
- func (j *Jerk) LeaseCall(ctx context.Context, provider string, c Call) Outcome
- func (j *Jerk) Run(ctx context.Context, provider string, c Call) Outcome
- type Lease
- type Outcome
- type Result
Constants ¶
View Source
const ( MinVersion = "0.6.0" DefaultDuration = 3600 MaxDuration = 86400 Timeout = 60 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func ValidLeaseID ¶
func ValidProvider ¶
Types ¶
type Result ¶
type Result struct {
Exit int `json:"exit"`
Provider string `json:"provider,omitempty"`
User string `json:"user,omitempty"`
Scopes []string `json:"scopes,omitempty"`
ExpiresAt string `json:"expires_at,omitempty"`
Env []string `json:"env,omitempty"`
Message string `json:"message"`
Items []map[string]any `json:"items,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.