Documentation ¶
Index ¶
- func GenerateAgentHCL(cfg *config.Config, topology *infra.Topology, node *infra.Node) (string, error)
- func StringTemplate(t *template.Template, data any) (string, error)
- type FileResource
- type HCLBuilder
- type Resource
- func DockerImage(name, image string) Resource
- func DockerNetwork(name, cidr string) Resource
- func DockerVolume(name string) Resource
- func Embed(name string) Resource
- func Eval(t *template.Template, data any) Resource
- func GenerateInfraContainers(config *config.Config, topology *infra.Topology, cache *cachestore.Store, ...) ([]Resource, error)
- func GenerateMeshGatewayContainer(config *config.Config, topology *infra.Topology, podName string, ...) Resource
- func GenerateNodeContainers(cfg *config.Config, topology *infra.Topology, cache *cachestore.Store, ...) ([]Resource, error)
- func GeneratePingPongContainers(config *config.Config, topology *infra.Topology, podName string, ...) []Resource
- func GrafanaContainer() Resource
- func HCL(t *template.Template, data any) Resource
- func PrometheusContainer() Resource
- func Text(s string) Resource
- func VaultContainer() Resource
- type UpdateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAgentHCL ¶
Types ¶
type FileResource ¶
type FileResource struct {
// contains filtered or unexported fields
}
func File ¶
func File(name string, res Resource) *FileResource
func GeneratePrometheusConfigFile ¶
func GeneratePrometheusConfigFile(cfg *config.Config, topology *infra.Topology) *FileResource
func GrafanaINI ¶
func GrafanaINI() *FileResource
func GrafanaPrometheus ¶
func GrafanaPrometheus() *FileResource
func VaultConfig ¶
func VaultConfig() *FileResource
func (*FileResource) Commit ¶
func (r *FileResource) Commit(logger hclog.Logger) error
func (*FileResource) Name ¶
func (r *FileResource) Name() string
type HCLBuilder ¶
type HCLBuilder struct {
// contains filtered or unexported fields
}
func (*HCLBuilder) String ¶
func (b *HCLBuilder) String() string
type Resource ¶
func DockerImage ¶
func DockerNetwork ¶
func DockerVolume ¶
func GenerateInfraContainers ¶
func GenerateNodeContainers ¶
func GrafanaContainer ¶
func GrafanaContainer() Resource
func PrometheusContainer ¶
func PrometheusContainer() Resource
func VaultContainer ¶
func VaultContainer() Resource
type UpdateResult ¶
type UpdateResult int
const ( UpdateResultNone UpdateResult = iota UpdateResultCreated UpdateResultModified )
func UpdateFileIfDifferent ¶
func WriteHCLResourceFile ¶
Click to show internal directories.
Click to hide internal directories.