convert

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildOptionsFromProto

func BuildOptionsFromProto(pb *apiv1.BuildOptions) buildsvc.Options

BuildOptionsFromProto hydrates buildsvc.Options from protobuf.

func BuildOptionsToProto

func BuildOptionsToProto(opts buildsvc.Options) *apiv1.BuildOptions

BuildOptionsToProto converts build options into a protobuf payload.

func BuildResultToProto

func BuildResultToProto(res *buildsvc.Result, err error) *apiv1.BuildResult

BuildResultToProto converts a build result to protobuf.

func DefaultConfigFromProto

func DefaultConfigFromProto(req *apiv1.LogRequest) *config.Options

DefaultConfigFromProto hydrates a config.Options from a protobuf request.

func DeployApplyToProto

func DeployApplyToProto(cfg DeployApplyConfig) *apiv1.DeployApplyOptions

DeployApplyToProto converts the config into the protobuf options.

func DeployDestroyToProto

func DeployDestroyToProto(cfg DeployDestroyConfig) *apiv1.DeployDestroyOptions

DeployDestroyToProto converts destroy config into protobuf form.

func DeployEventFromProto

func DeployEventFromProto(msg *apiv1.DeployEvent) (deploy.StreamEvent, error)

DeployEventFromProto decodes a protobuf deploy event payload.

func DeployEventToProto

func DeployEventToProto(evt deploy.StreamEvent) (*apiv1.DeployEvent, error)

DeployEventToProto serializes a StreamEvent into the protobuf envelope.

func FromProtoLogLine

func FromProtoLogLine(line *apiv1.LogLine) tailer.LogRecord

FromProtoLogLine converts a protobuf log line into a Tailer record.

func LogOptionsToProto

func LogOptionsToProto(opts *config.Options) *apiv1.LogRequest

LogOptionsToProto converts CLI log options into a protobuf request.

func ToProtoLogRecord

func ToProtoLogRecord(rec tailer.LogRecord) *apiv1.LogLine

ToProtoLogRecord converts a Tailer log record into a protobuf line.

Types

type DeployApplyConfig

type DeployApplyConfig struct {
	ReleaseName     string
	Chart           string
	Namespace       string
	Version         string
	ValuesFiles     []string
	SetValues       []string
	SetStringValues []string
	SetFileValues   []string
	Timeout         time.Duration
	Wait            bool
	Atomic          bool
	UpgradeOnly     bool
	CreateNamespace bool
	DryRun          bool
	Diff            bool
	KubeConfigPath  string
	KubeContext     string
}

DeployApplyConfig mirrors the CLI flags needed to run a deploy apply.

func DeployApplyFromProto

func DeployApplyFromProto(pb *apiv1.DeployApplyOptions) DeployApplyConfig

DeployApplyFromProto converts protobuf options into the config struct.

type DeployDestroyConfig

type DeployDestroyConfig struct {
	Release        string
	Namespace      string
	Timeout        time.Duration
	Wait           bool
	KeepHistory    bool
	DryRun         bool
	Force          bool
	DisableHooks   bool
	KubeConfigPath string
	KubeContext    string
}

DeployDestroyConfig mirrors the deploy destroy flags.

func DeployDestroyFromProto

func DeployDestroyFromProto(pb *apiv1.DeployDestroyOptions) DeployDestroyConfig

DeployDestroyFromProto converts protobuf destroy options into config.

Jump to

Keyboard shortcuts

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