registry

package
v0.0.0-...-f7640ad Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Meta EnvironmentMeta `json:"metadata"`
	Spec EnvironmentSpec `json:"spec"`
}

func (*Environment) Find

func (environment *Environment) Find(targetType, target string) *Target

type EnvironmentMeta

type EnvironmentMeta struct {
	Name string `json:"name"`
}

type EnvironmentSpec

type EnvironmentSpec struct {
	Targets []Target `json:"targets"`
}

type Registry

type Registry struct {
	Services []Service `json:"services"`
}

func GetRegistry

func GetRegistry(ctx context.Context, jpaths []string, registryPath string) (*Registry, error)

func GetRegistryVM

func GetRegistryVM(ctx context.Context, vm *jsonnetenv.VM, registryPath string) (*Registry, error)

func (*Registry) Find

func (registry *Registry) Find(service string) *Service

type Service

type Service struct {
	Meta ServiceMeta `json:"metadata"`
	Spec ServiceSpec `json:"spec"`
}

func (*Service) Find

func (service *Service) Find(environment string) *Environment

type ServiceMeta

type ServiceMeta struct {
	Name string `json:"name"`
}

type ServiceSpec

type ServiceSpec struct {
	Environments []Environment `json:"environments"`
}

type Target

type Target struct {
	Meta TargetMeta `json:"metadata"`
	// The spec of targets is potentially in flux, handle this by
	// taking in a map
	Spec objx.Map `json:"spec,omitempty"`
}

type TargetMeta

type TargetMeta struct {
	Type    string `json:"type"`
	Context string `json:"context"`
	Name    string `json:"name"`
}

Jump to

Keyboard shortcuts

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