Documentation
¶
Index ¶
- Variables
- type Component
- type InspectRequest
- type InspectResult
- type Service
- func (s *Service) Delete(ctx context.Context, key string) error
- func (s *Service) Get(ctx context.Context, key string) (Component, error)
- func (s *Service) Inspect(ctx context.Context, request InspectRequest) (InspectResult, error)
- func (s *Service) List(ctx context.Context) ([]Component, error)
- func (s *Service) Save(ctx context.Context, component Component) (Component, error)
- func (s *Service) Versions(ctx context.Context, request InspectRequest) (VersionResult, error)
- type Store
- type VersionOption
- type VersionResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidComponent = errors.New("invalid Helm component definition") ErrHelmInspect = errors.New("unable to read Helm chart values") ErrReservedComponent = errors.New("built-in component keys are reserved") ErrInlineSecret = errors.New("inline secrets are not allowed in Helm values; use a Kubernetes Secret reference") )
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
Key string `json:"key"`
DisplayName string `json:"display_name"`
Category string `json:"category"`
Description string `json:"description"`
Repository string `json:"repository"`
Chart string `json:"chart"`
ChartVersion string `json:"chart_version"`
DefaultNamespace string `json:"default_namespace"`
ReplicaPaths []string `json:"replica_paths"`
ValuesYAML string `json:"values_yaml"`
Values map[string]any `json:"values"`
CreatedBy string `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type InspectRequest ¶
type InspectResult ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Inspect ¶
func (s *Service) Inspect(ctx context.Context, request InspectRequest) (InspectResult, error)
func (*Service) Versions ¶
func (s *Service) Versions(ctx context.Context, request InspectRequest) (VersionResult, error)
type VersionOption ¶
type VersionResult ¶
type VersionResult struct {
Repository string `json:"repository"`
Chart string `json:"chart"`
Versions []VersionOption `json:"versions"`
}
Click to show internal directories.
Click to hide internal directories.