infrastructure

package
v0.0.0-...-e508294 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActuatorInfo

type ActuatorInfo struct {
	Git   GitInfo   `json:"git"`
	Build BuildInfo `json:"build"`
}

type ActuatorInfoCaller

type ActuatorInfoCaller struct {
	domain.AppInfoCaller
	// contains filtered or unexported fields
}

func NewActuatorInfoCaller

func NewActuatorInfoCaller(config YamlAppConfig) *ActuatorInfoCaller

func (*ActuatorInfoCaller) Get

func (c *ActuatorInfoCaller) Get(ctx context.Context, env string, appName string) (*domain.AppInfo, error)

type AppParameter

type AppParameter struct {
	Name           string `yaml:"name"`
	Url            string `yaml:"url"`
	CompareWithEnv string `yaml:"compare-with-env"`
}

type BuildInfo

type BuildInfo struct {
	Group    string `json:"group"`
	Artifact string `json:"artifact"`
	Name     string `json:"name"`
	Version  string `json:"version"`
	Time     string `json:"time"`
}

type CommitGitInfo

type CommitGitInfo struct {
	Id   string `json:"id"`
	Time string `json:"time"`
}

type EnvParameter

type EnvParameter struct {
	Name          string         `yaml:"name"`
	CacheDuration int            `yaml:"cache-duration-seconds"`
	Apps          []AppParameter `yaml:"apps"`
}

type GitInfo

type GitInfo struct {
	Branch string        `json:"branch"`
	Commit CommitGitInfo `json:"commit"`
}

type Parameters

type Parameters struct {
	Envs []EnvParameter `yaml:"envs"`
}

type YamlAppConfig

type YamlAppConfig struct {
	// contains filtered or unexported fields
}

func NewConfigLoader

func NewConfigLoader() YamlAppConfig

func (*YamlAppConfig) Get

func (c *YamlAppConfig) Get(env string, appName string) (url string, duration time.Duration, compareWithEnv string, err error)

Jump to

Keyboard shortcuts

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