Documentation ¶
Index ¶
- Constants
- Variables
- type ArtifactDownload
- type CheckComponents
- type DesiredState
- type Filters
- type GitRepositoryGetter
- type Helm
- type HelmClient
- type HelmValidation
- type KustomizationClient
- type KustomizationValidation
- type ManifestClient
- type ManifestReader
- type ManifestValidation
- type ObjectConverter
- type Status
- type StatusWriter
- type Transformers
Constants ¶
View Source
const (
DuplicatedComponent = "DuplicatedComponent"
)
View Source
const (
SuccessManifestLoadMessage = "Manifests were successfully loaded"
)
Variables ¶
View Source
var ErrorDuplicatedComponent = errors.New("component already present on module")
View Source
var Providers = wire.NewSet( NewArtifactDownload, NewCheckComponents, NewDesiredState, NewHelmValidation, NewKustomizationValidation, NewStatus, NewManifestValidation, wire.Struct(new(Filters), "*"), wire.Struct(new(Transformers), "*"), )
Functions ¶
This section is empty.
Types ¶
type ArtifactDownload ¶
type ArtifactDownload struct { reconciler.Funcs // contains filtered or unexported fields }
func NewArtifactDownload ¶
func NewArtifactDownload(git GitRepositoryGetter, status StatusWriter) *ArtifactDownload
type CheckComponents ¶
type CheckComponents struct { reconciler.Funcs // contains filtered or unexported fields }
func NewCheckComponents ¶
func NewCheckComponents(manifest ManifestReader, object ObjectConverter, status StatusWriter) *CheckComponents
type DesiredState ¶
type DesiredState struct { reconciler.Funcs // contains filtered or unexported fields }
func NewDesiredState ¶
func NewDesiredState(filters *Filters, transformers *Transformers, manifest ManifestReader) *DesiredState
type Filters ¶
type Filters struct {
*filter.GitRepository
}
type GitRepositoryGetter ¶
type GitRepositoryGetter interface {
GetGitRepository(ctx context.Context, key client.ObjectKey) (*sourcev1beta1.GitRepository, error)
}
type HelmClient ¶
type HelmValidation ¶
type HelmValidation struct { reconciler.Funcs // contains filtered or unexported fields }
func NewHelmValidation ¶
func NewHelmValidation(helm HelmClient, status StatusWriter) *HelmValidation
type KustomizationClient ¶
type KustomizationValidation ¶
type KustomizationValidation struct { reconciler.Funcs // contains filtered or unexported fields }
func NewKustomizationValidation ¶
func NewKustomizationValidation(kustomization KustomizationClient, status StatusWriter) *KustomizationValidation
type ManifestClient ¶
type ManifestReader ¶
type ManifestReader interface { FromBytes(ctx context.Context, manifests []byte) (mf.Manifest, error) FromString(ctx context.Context, manifests string) (mf.Manifest, error) FromUnstructured(ctx context.Context, manifests []unstructured.Unstructured) (mf.Manifest, error) LoadDefaults(ctx context.Context) (mf.Manifest, error) }
type ManifestValidation ¶
type ManifestValidation struct { reconciler.Funcs // contains filtered or unexported fields }
func NewManifestValidation ¶
func NewManifestValidation(status StatusWriter, manifestClient ManifestClient) *ManifestValidation
type ObjectConverter ¶
type ObjectConverter interface {
FromUnstructured(in *unstructured.Unstructured, out interface{}) error
}
type Status ¶
type Status struct { reconciler.Funcs // contains filtered or unexported fields }
func NewStatus ¶
func NewStatus(status StatusWriter) *Status
type StatusWriter ¶
type Transformers ¶
type Transformers struct { *transformer.GitRepository *transformer.Metadata }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.