Documentation ¶
Index ¶
- Constants
- func MetadataEntriesFromQuery(w http.ResponseWriter, r *http.Request) ([]api.Metadata, error)
- func MetadataFromQuery(w http.ResponseWriter, r *http.Request) (api.Metadata, error)
- func MissingQuery(w http.ResponseWriter, field string)
- func ProfileNameFromQuery(w http.ResponseWriter, r *http.Request) (string, error)
- func ResolveAndMergeConfigsAndInjectTest(configs Getter, resolver Resolver, resolverMetrics *metrics.Metrics) http.HandlerFunc
- func ResolveClusterProfile(agent agents.RegistryAgent, resolverMetrics *metrics.Metrics) http.HandlerFunc
- func ResolveConfig(configs Getter, resolver Resolver, resolverMetrics *metrics.Metrics) http.HandlerFunc
- func ResolveLiteralConfig(resolver Resolver, resolverMetrics *metrics.Metrics) http.HandlerFunc
- type Getter
- type Resolver
- type ResolverClient
Constants ¶
View Source
const ( OrgQuery = "org" RepoQuery = "repo" BranchQuery = "branch" VariantQuery = "variant" InjectFromOrgQuery = "injectTestFromOrg" InjectFromRepoQuery = "injectTestFromRepo" InjectFromBranchQuery = "injectTestFromBranch" InjectFromVariantQuery = "injectTestFromVariant" InjectTestQuery = "injectTest" )
View Source
const (
NameQuery = "name"
)
NameQuery is used for fetching cluster profile details by its name
Variables ¶
This section is empty.
Functions ¶
func MetadataFromQuery ¶
func MissingQuery ¶
func MissingQuery(w http.ResponseWriter, field string)
func ProfileNameFromQuery ¶
ProfileNameFromQuery gets the cluster profile name from the request query
func ResolveClusterProfile ¶
func ResolveClusterProfile(agent agents.RegistryAgent, resolverMetrics *metrics.Metrics) http.HandlerFunc
ResolveClusterProfile extracts the cluster profile name from request query and in the response provides all details about the cluster profile
func ResolveConfig ¶
func ResolveLiteralConfig ¶
func ResolveLiteralConfig(resolver Resolver, resolverMetrics *metrics.Metrics) http.HandlerFunc
Types ¶
type Getter ¶
type Getter interface { // GetMatchingConfig loads a configuration that matches the metadata, // allowing for regex matching on branch names. GetMatchingConfig(metadata api.Metadata) (api.ReleaseBuildConfiguration, error) }
type Resolver ¶
type Resolver interface {
ResolveConfig(config api.ReleaseBuildConfiguration) (api.ReleaseBuildConfiguration, error)
}
type ResolverClient ¶
type ResolverClient interface { Config(*api.Metadata) (*api.ReleaseBuildConfiguration, error) ConfigWithTest(base *api.Metadata, testSource *api.MetadataWithTest) (*api.ReleaseBuildConfiguration, error) Resolve([]byte) (*api.ReleaseBuildConfiguration, error) ClusterProfile(profileName string) (*api.ClusterProfileDetails, error) IntegratedStream(namespace, name string) (*configresolver.IntegratedStream, error) }
func NewResolverClient ¶
func NewResolverClient(address string) ResolverClient
Click to show internal directories.
Click to hide internal directories.