Files
zeekayandHanzo Dev 1fbfb3aea3 Go 1.27.1, and the code it can say more simply
Modules declare go 1.27.1 and the build images follow. go fix applied the
modernizers, and new(expr) now says what the internal pointer helpers did,
so they are gone; omitzero is not applied, since it changes what the JSON says.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-16 19:47:09 -07:00

47 lines
1.3 KiB
Go

package installation
import (
"github.com/hanzoai/o11y-foundry/api/v1alpha1"
)
type MetaStore struct {
// Kind of the meta store to use.
Kind MetaStoreKind `json:"kind,omitzero" yaml:"kind,omitempty" description:"Kind of the meta store to use" examples:"[\"postgres\",\"sqlite\"]"`
// Specification for the meta store.
Spec v1alpha1.MoldingSpec `json:"spec" yaml:"spec" description:"Specification for the meta store"`
// Status of the meta store.
Status MetaStoreStatus `json:"status" yaml:"status,omitempty" description:"Status of the meta store"`
_ struct{} `additionalProperties:"false"`
}
type MetaStoreStatus struct {
v1alpha1.MoldingStatus `json:",inline" yaml:",inline"`
Addresses MetaStoreStatusAddresses `json:"addresses" yaml:"addresses,omitempty" description:"Addresses of the meta store"`
_ struct{} `additionalProperties:"false"`
}
type MetaStoreStatusAddresses struct {
// DSN addresses.
DSN []string `json:"dsn" yaml:"dsn" description:"DSN addresses"`
_ struct{} `additionalProperties:"false"`
}
func DefaultMetaStore() MetaStore {
return MetaStore{
Kind: MetaStoreKindPostgres,
Spec: v1alpha1.MoldingSpec{
Enabled: new(true),
Cluster: v1alpha1.TypeCluster{
Replicas: new(1),
},
Version: "16",
Image: "postgres:16",
},
}
}