Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyUUID = errors.New("empty UUID found for enclave") ErrUUIDNotFound = errors.New("UUID not found in enclave inspect output") ErrContainerNotFound = errors.New("container not found for service") )
Static errors for better error handling
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
InspectService(ctx context.Context, enclaveName, service string) (*KurtosisServiceInspectResult, error)
DoesEnclaveExist(ctx context.Context, enclaveName string) (bool, error)
GetServiceStatus(ctx context.Context, enclaveName, serviceName string) (*ServiceStatus, error)
}
Client defines the interface for execution layer operations
func NewClient ¶
func NewClient(log logrus.FieldLogger) Client
NewClient creates a new kurtosis client
type KurtosisPortInfo ¶
type KurtosisPortInfo struct {
Number int `json:"number"`
Transport TransportProtocol `json:"transport"`
MaybeApplicationProtocol *string `json:"maybe_application_protocol,omitempty"`
}
KurtosisPortInfo represents port information from Kurtosis service inspect
type KurtosisServiceInspectResult ¶
type KurtosisServiceInspectResult struct {
Image string `json:"image"`
Ports map[string]KurtosisPortInfo `json:"ports"`
PublicPorts map[string]KurtosisPortInfo `json:"public_ports"`
Files map[string][]string `json:"files"`
Entrypoint []string `json:"entrypoint"`
Cmd []string `json:"cmd"`
EnvVars map[string]string `json:"env_vars"`
Labels map[string]string `json:"labels"`
TiniEnabled bool `json:"tini_enabled"`
TtyEnabled bool `json:"tty_enabled"`
}
KurtosisServiceInspectResult represents the result of kurtosis service inspect command
type ServiceStatus ¶
type ServiceStatus struct {
IsRunning bool `json:"is_running"`
State string `json:"state"`
ExitCode int `json:"exit_code"`
Error string `json:"error,omitempty"`
}
ServiceStatus represents the status of a container service
type TransportProtocol ¶
type TransportProtocol int
TransportProtocol represents the transport protocol type
const ( TCP TransportProtocol = 0 UDP TransportProtocol = 2 )
Click to show internal directories.
Click to hide internal directories.