client

package
v0.105.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 5 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyNamespace

func ApplyNamespace(resourceName string, namespace *string) string

func BindAllEnv

func BindAllEnv(v *viper.Viper)

Types

type ClientConfig

type ClientConfig struct {
	TenantId    string
	Token       string
	NoGrpcRetry bool
	NoRetry     bool

	ServerURL            string
	GRPCBroadcastAddress string

	Logger shared.LoggerConfigFile

	// TLSConfig will be nil if the strategy is "none"
	TLSConfig *tls.Config

	Namespace string

	CloudRegisterID *string
	RunnableActions []string

	PresetWorkerLabels map[string]string

	DisableGzipCompression bool
}

type ClientConfigFile

type ClientConfigFile struct {
	TenantId string `mapstructure:"tenantId" json:"tenantId,omitempty"`

	Token string `mapstructure:"token" json:"token,omitempty"`

	HostPort string `mapstructure:"hostPort" json:"hostPort,omitempty"`

	// ServerURL is the URL of the Hatchet API server, not to be confused with HostPort, which is the host and port
	// corresponding to the gRPC engine service.
	ServerURL string `mapstructure:"serverURL" json:"serverURL,omitempty"`

	Logger shared.LoggerConfigFile `mapstructure:"log" json:"log,omitempty"`

	TLS ClientTLSConfigFile `mapstructure:"tls" json:"tls,omitempty"`

	Namespace string `mapstructure:"namespace" json:"namespace,omitempty"`

	NoGrpcRetry bool `mapstructure:"noGrpcRetry" json:"noGrpcRetry,omitempty"`

	NoRetry bool `mapstructure:"noRetry" json:"noRetry,omitempty"`

	CloudRegisterID *string `mapstructure:"cloudRegisterID" json:"cloudRegisterID,omitempty"`

	RawRunnableActions []string `mapstructure:"runnableActions" json:"runnableActions,omitempty"`

	AutoscalingTarget string `mapstructure:"autoscalingTarget" json:"autoscalingTarget,omitempty"`

	DisableGzipCompression bool `mapstructure:"disableGzipCompression" json:"disableGzipCompression,omitempty"`
}

type ClientTLSConfigFile

type ClientTLSConfigFile struct {
	Base shared.TLSConfigFile `mapstructure:"base" json:"base,omitempty"`

	TLSServerName string `mapstructure:"tlsServerName" json:"tlsServerName,omitempty"`
}

Jump to

Keyboard shortcuts

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