util

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(opts ...option.RequestOption) kernel.Client

NewClient returns a kernel API client preconfigured with middleware that detects when a newer CLI/SDK version is required and informs the user.

It mirrors kernel.NewClient but injects an HTTP middleware that intercepts 400 responses with error codes "sdk_upgrade_required" or "sdk_update_required". When encountered, a helpful upgrade message is displayed once per process.

func ZipDirectory

func ZipDirectory(srcDir, destZip string) error

ZipDirectory compresses the given source directory into the destination file path.

Types

type CleanedUpSdkError

type CleanedUpSdkError struct {
	Err     error
	Message string
}

func (*CleanedUpSdkError) Error

func (e *CleanedUpSdkError) Error() string

func (*CleanedUpSdkError) Unwrap

func (e *CleanedUpSdkError) Unwrap() error

Jump to

Keyboard shortcuts

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