gvc

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gvc

type Gvc struct {
	Id           string     `json:"id,omitempty"`
	Name         base.Name  `json:"name,omitempty"`
	Kind         base.Kind  `json:"kind,omitempty"`
	Version      float32    `json:"version"`
	Description  string     `json:"description,omitempty"`
	Tags         GvcTags    `json:"tags,omitempty"`
	Created      string     `json:"created,omitempty"`
	LastModified string     `json:"lastModified,omitempty"`
	Links        base.Links `json:"links,omitempty"`
	Alias        string     `json:"alias,omitempty"`
	Spec         *GvcSpec   `json:"spec,omitempty"`
	Status       *GvcStatus `json:"status,omitempty"`
}

type GvcConfig

type GvcConfig struct {
	Clusters          GvcConfigClusters          `json:"clusters,omitempty"`
	PreferredClusters GvcConfigPreferredClusters `json:"preferredClusters,omitempty"`
	Proxy             *GvcConfigProxy            `json:"proxy,omitempty"`
	LoadBalancer      *GvcConfigLoadBalancer     `json:"loadBalancer,omitempty"`
	ThinProvision     float32                    `json:"thinProvision"`
	LargeDiskSize     workload.Memory            `json:"largeDiskSize,omitempty"`
	CapacityAI        *GvcConfigCapacityAi       `json:"capacityAI,omitempty"`
}

type GvcConfigCapacityAi

type GvcConfigCapacityAi struct {
	MemToCpuRatio float32 `json:"memToCpuRatio"`
}

type GvcConfigClusterEntry

type GvcConfigClusterEntry struct {
	ClusterId string `json:"clusterId,omitempty"`
	Since     string `json:"since,omitempty"`
}

type GvcConfigClusters

type GvcConfigClusters map[string]GvcConfigClusterEntry

type GvcConfigLoadBalancer

type GvcConfigLoadBalancer struct {
	MinScale       float32                              `json:"minScale"`
	MaxScale       float32                              `json:"maxScale"`
	MinCpu         string                               `json:"minCpu,omitempty"`
	MinMemory      string                               `json:"minMemory,omitempty"`
	ReadinessProbe *GvcConfigLoadBalancerReadinessProbe `json:"readinessProbe,omitempty"`
	LivenessProbe  *GvcConfigLoadBalancerLivenessProbe  `json:"livenessProbe,omitempty"`
}

type GvcConfigLoadBalancerLivenessProbe

type GvcConfigLoadBalancerLivenessProbe struct {
	TimeoutSeconds   float32 `json:"timeoutSeconds"`
	FailureThreshold float32 `json:"failureThreshold"`
	SuccessThreshold float32 `json:"successThreshold"`
}

type GvcConfigLoadBalancerReadinessProbe

type GvcConfigLoadBalancerReadinessProbe struct {
	TimeoutSeconds   float32 `json:"timeoutSeconds"`
	FailureThreshold float32 `json:"failureThreshold"`
	SuccessThreshold float32 `json:"successThreshold"`
}

type GvcConfigPreferredClusterEntry

type GvcConfigPreferredClusterEntry struct {
	ClusterId string `json:"clusterId,omitempty"`
}

type GvcConfigPreferredClusters

type GvcConfigPreferredClusters map[string]GvcConfigPreferredClusterEntry

type GvcConfigProxy

type GvcConfigProxy struct {
	MinCpu float32 `json:"minCpu"`
}

type GvcLoadBalancerConfig

type GvcLoadBalancerConfig struct {
	MinScale       float32                              `json:"minScale"`
	MaxScale       float32                              `json:"maxScale"`
	MinCpu         string                               `json:"minCpu,omitempty"`
	MinMemory      string                               `json:"minMemory,omitempty"`
	ReadinessProbe *GvcLoadBalancerConfigReadinessProbe `json:"readinessProbe,omitempty"`
	LivenessProbe  *GvcLoadBalancerConfigLivenessProbe  `json:"livenessProbe,omitempty"`
}

type GvcLoadBalancerConfigLivenessProbe

type GvcLoadBalancerConfigLivenessProbe struct {
	TimeoutSeconds   float32 `json:"timeoutSeconds"`
	FailureThreshold float32 `json:"failureThreshold"`
	SuccessThreshold float32 `json:"successThreshold"`
}

type GvcLoadBalancerConfigReadinessProbe

type GvcLoadBalancerConfigReadinessProbe struct {
	TimeoutSeconds   float32 `json:"timeoutSeconds"`
	FailureThreshold float32 `json:"failureThreshold"`
	SuccessThreshold float32 `json:"successThreshold"`
}

type GvcSpec

type GvcSpec struct {
	StaticPlacement      *StaticPlacement            `json:"staticPlacement,omitempty"`
	PullSecretLinks      []string                    `json:"pullSecretLinks,omitempty"`
	Domain               string                      `json:"domain,omitempty"`
	EndpointNamingFormat GvcSpecEndpointNamingFormat `json:"endpointNamingFormat,omitempty"`
	Tracing              *GvcSpecTracing             `json:"tracing,omitempty"`
	Sidecar              *GvcSpecSidecar             `json:"sidecar,omitempty"`
	Env                  []env.EnvVar                `json:"env,omitempty"`
	LoadBalancer         *GvcSpecLoadBalancer        `json:"loadBalancer,omitempty"`
	Keda                 *GvcSpecKeda                `json:"keda,omitempty"`
}

type GvcSpecEndpointNamingFormat

type GvcSpecEndpointNamingFormat string
const (
	GvcSpecEndpointNamingFormatDefault GvcSpecEndpointNamingFormat = "default"
	GvcSpecEndpointNamingFormatLegacy  GvcSpecEndpointNamingFormat = "legacy"
	GvcSpecEndpointNamingFormatOrg     GvcSpecEndpointNamingFormat = "org"
)

type GvcSpecKeda

type GvcSpecKeda struct {
	Enabled      bool     `json:"enabled,omitempty"`
	IdentityLink string   `json:"identityLink,omitempty"`
	Secrets      []string `json:"secrets,omitempty"`
}

type GvcSpecLoadBalancer

type GvcSpecLoadBalancer struct {
	Dedicated      bool                          `json:"dedicated,omitempty"`
	MultiZone      *GvcSpecLoadBalancerMultiZone `json:"multiZone,omitempty"`
	TrustedProxies float32                       `json:"trustedProxies"`
	Redirect       *GvcSpecLoadBalancerRedirect  `json:"redirect,omitempty"`
	IpSet          string                        `json:"ipSet,omitempty"`
}

type GvcSpecLoadBalancerMultiZone

type GvcSpecLoadBalancerMultiZone struct {
	Enabled bool `json:"enabled,omitempty"`
}

type GvcSpecLoadBalancerRedirect

type GvcSpecLoadBalancerRedirect struct {
	Class *GvcSpecLoadBalancerRedirectClass `json:"class,omitempty"`
}

type GvcSpecLoadBalancerRedirectClass

type GvcSpecLoadBalancerRedirectClass struct {
	Status5xx string `json:"status5xx,omitempty"`
	Status401 string `json:"status401,omitempty"`
}

type GvcSpecSidecar

type GvcSpecSidecar struct {
	Envoy envoy.EnvoyFilters `json:"envoy,omitempty"`
}

type GvcSpecTracing

type GvcSpecTracing struct {
	Sampling   float32                   `json:"sampling"`
	Lightstep  *GvcSpecTracingLightstep  `json:"lightstep,omitempty"`
	CustomTags *GvcSpecTracingCustomTags `json:"customTags,omitempty"`
	Provider   *GvcSpecTracingProvider   `json:"provider,omitempty"`
}

type GvcSpecTracingCustomTags

type GvcSpecTracingCustomTags map[string]tracing.TracingCustomTag

type GvcSpecTracingLightstep

type GvcSpecTracingLightstep struct {
	Endpoint    string `json:"endpoint"`
	Credentials string `json:"credentials,omitempty"`
}

type GvcSpecTracingProvider

type GvcSpecTracingProvider struct {
	Otel         *GvcSpecTracingProviderOtel         `json:"otel,omitempty"`
	Lightstep    *GvcSpecTracingProviderLightstep    `json:"lightstep,omitempty"`
	Controlplane *GvcSpecTracingProviderControlplane `json:"controlplane,omitempty"`
}

type GvcSpecTracingProviderControlplane

type GvcSpecTracingProviderControlplane struct {
}

type GvcSpecTracingProviderLightstep

type GvcSpecTracingProviderLightstep struct {
	Endpoint    string `json:"endpoint"`
	Credentials string `json:"credentials,omitempty"`
}

type GvcSpecTracingProviderOtel

type GvcSpecTracingProviderOtel struct {
	Endpoint string `json:"endpoint"`
}

type GvcStatus

type GvcStatus map[string]any

type GvcTags

type GvcTags map[string]any

type StaticPlacement

type StaticPlacement struct {
	LocationLinks []string                      `json:"locationLinks,omitempty"`
	LocationQuery *StaticPlacementLocationQuery `json:"locationQuery,omitempty"`
}

type StaticPlacementLocationQuery

type StaticPlacementLocationQuery struct {
	Kind    base.Kind                            `json:"kind,omitempty"`
	Context *StaticPlacementLocationQueryContext `json:"context,omitempty"`
	Fetch   StaticPlacementLocationQueryFetch    `json:"fetch,omitempty"`
	Spec    *StaticPlacementLocationQuerySpec    `json:"spec,omitempty"`
}

type StaticPlacementLocationQueryContext

type StaticPlacementLocationQueryContext map[string]any

type StaticPlacementLocationQueryFetch

type StaticPlacementLocationQueryFetch string
const (
	StaticPlacementLocationQueryFetchLinks StaticPlacementLocationQueryFetch = "links"
	StaticPlacementLocationQueryFetchItems StaticPlacementLocationQueryFetch = "items"
)

type StaticPlacementLocationQuerySpec

type StaticPlacementLocationQuerySpec struct {
	Match StaticPlacementLocationQuerySpecMatch `json:"match,omitempty"`
	Terms []query.Term                          `json:"terms,omitempty"`
	Sort  *StaticPlacementLocationQuerySpecSort `json:"sort,omitempty"`
}

type StaticPlacementLocationQuerySpecMatch

type StaticPlacementLocationQuerySpecMatch string
const (
	StaticPlacementLocationQuerySpecMatchAll  StaticPlacementLocationQuerySpecMatch = "all"
	StaticPlacementLocationQuerySpecMatchAny  StaticPlacementLocationQuerySpecMatch = "any"
	StaticPlacementLocationQuerySpecMatchNone StaticPlacementLocationQuerySpecMatch = "none"
)

type StaticPlacementLocationQuerySpecSort

type StaticPlacementLocationQuerySpecSort struct {
	By    string                                    `json:"by"`
	Order StaticPlacementLocationQuerySpecSortOrder `json:"order,omitempty"`
}

type StaticPlacementLocationQuerySpecSortOrder

type StaticPlacementLocationQuerySpecSortOrder string
const (
	StaticPlacementLocationQuerySpecSortOrderAsc  StaticPlacementLocationQuerySpecSortOrder = "asc"
	StaticPlacementLocationQuerySpecSortOrderDesc StaticPlacementLocationQuerySpecSortOrder = "desc"
)

Jump to

Keyboard shortcuts

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