Documentation
¶
Index ¶
- Constants
- func ImageRepositoryImageDigestSyncReconciler() reconcilers.SubReconciler
- func ImageRepositoryImagePullSecretsSyncReconciler() reconcilers.SubReconciler
- func ImageRepositoryIntervalReconciler() reconcilers.SubReconciler
- func ImageRepositoryPullImageSyncReconciler(httpRootDir, httpHost string, now func() metav1.Time) reconcilers.SubReconciler
- func ImageRepositoryReconciler(c reconcilers.Config, httpRootDir, httpHost string, now func() metav1.Time, ...) *reconcilers.ParentReconciler
- func ImageRepositoryTransportSyncReconciler(certs []Cert) reconcilers.SubReconciler
- func MavenArtifactDownloadSyncReconciler(httpRootDir, httpHost string, now func() metav1.Time) reconcilers.SubReconciler
- func MavenArtifactIntervalReconciler() reconcilers.SubReconciler
- func MavenArtifactReconciler(c reconcilers.Config, httpRootDir, httpHost string, now func() metav1.Time, ...) *reconcilers.ParentReconciler
- func MavenArtifactSecretsSyncReconciler(certs []Cert) reconcilers.SubReconciler
- func MavenArtifactVersionSyncReconciler() reconcilers.SubReconciler
- func RetrieveHttpRoundTripper(ctx context.Context) http.RoundTripper
- func RetrieveImagePullSecrets(ctx context.Context) []corev1.Secret
- func RetrieveImageRef(ctx context.Context) string
- func StashHttpRoundTripper(ctx context.Context, transport http.RoundTripper)
- func StashImagePullSecrets(ctx context.Context, pullSecrets []corev1.Secret)
- func StashImageRef(ctx context.Context, image string)
- type ArtifactDetails
- type Cert
- type MavenArtifactAuthOptionsFromSecret
- type MavenResolver
- type NoopLogger
Constants ¶
View Source
const ( MavenArtifactVersionStashKey reconcilers.StashKey = sourcev1alpha1.Group + "/artifact-version" MavenArtifactAuthSecretStashKey reconcilers.StashKey = sourcev1alpha1.Group + "/auth-secret" MavenArtifactHttpClientKey reconcilers.StashKey = sourcev1alpha1.Group + "/http-client" )
View Source
const HttpRoundTripperStashKey reconcilers.StashKey = sourcev1alpha1.Group + "/http-round-tripper"
View Source
const ImagePullSecretsStashKey reconcilers.StashKey = sourcev1alpha1.Group + "/image-pull-secrets"
View Source
const ImageRefStashKey reconcilers.StashKey = sourcev1alpha1.Group + "/image-ref"
Variables ¶
This section is empty.
Functions ¶
func ImageRepositoryImageDigestSyncReconciler ¶
func ImageRepositoryImageDigestSyncReconciler() reconcilers.SubReconciler
func ImageRepositoryImagePullSecretsSyncReconciler ¶
func ImageRepositoryImagePullSecretsSyncReconciler() reconcilers.SubReconciler
func ImageRepositoryIntervalReconciler ¶
func ImageRepositoryIntervalReconciler() reconcilers.SubReconciler
func ImageRepositoryPullImageSyncReconciler ¶
func ImageRepositoryPullImageSyncReconciler(httpRootDir, httpHost string, now func() metav1.Time) reconcilers.SubReconciler
func ImageRepositoryReconciler ¶
func ImageRepositoryReconciler(c reconcilers.Config, httpRootDir, httpHost string, now func() metav1.Time, certs []Cert) *reconcilers.ParentReconciler
ImageRepositoryReconciler reconciles a ImageRepository object
func ImageRepositoryTransportSyncReconciler ¶
func ImageRepositoryTransportSyncReconciler(certs []Cert) reconcilers.SubReconciler
func MavenArtifactDownloadSyncReconciler ¶
func MavenArtifactDownloadSyncReconciler(httpRootDir, httpHost string, now func() metav1.Time) reconcilers.SubReconciler
func MavenArtifactIntervalReconciler ¶
func MavenArtifactIntervalReconciler() reconcilers.SubReconciler
func MavenArtifactReconciler ¶
func MavenArtifactReconciler(c reconcilers.Config, httpRootDir, httpHost string, now func() metav1.Time, certs []Cert) *reconcilers.ParentReconciler
func MavenArtifactSecretsSyncReconciler ¶
func MavenArtifactSecretsSyncReconciler(certs []Cert) reconcilers.SubReconciler
func MavenArtifactVersionSyncReconciler ¶
func MavenArtifactVersionSyncReconciler() reconcilers.SubReconciler
MavenArtifactVersionSyncReconciler will download the Maven Metadata XML file from the artifact store and resolve the appropriate version, as per the configuration in the parent MavenArtifact object
func RetrieveHttpRoundTripper ¶
func RetrieveHttpRoundTripper(ctx context.Context) http.RoundTripper
func RetrieveImageRef ¶
func StashHttpRoundTripper ¶
func StashHttpRoundTripper(ctx context.Context, transport http.RoundTripper)
func StashImagePullSecrets ¶
func StashImageRef ¶
Types ¶
type ArtifactDetails ¶
type ArtifactDetails struct { // ResolvedFileName: artifact filename in a remote repository ResolvedFileName string // Artifact resolved version, it could be different from spec.artifact.version. Ex: spec version LATEST can artifactversion 1.2.3 ArtifactVersion string // Artifact Download URL (remote) ArtifactDownloadURL string }
ArtifactDetails contains artifact's information within the remote repository
type Cert ¶
type Cert struct { Path string Certificate *x509.Certificate Raw []byte }
Cert encapsulates loading PEM encoded bytes for a certificate. Each Cert should use one of the available options: a file system path, an x509 certificate, or raw PEM encoded bytes
type MavenResolver ¶
type MavenResolver struct { // Artifact data from Spec.Artifact.Type Artifact sourcev1alpha1.MavenArtifactType // Remote repository URL path where artifact is located RepositoryURL string // Request path RequestPath string // Resolved Vesrion of the artifact ResolvedVersion string // Resolved Filename of the artifact ResolvedFilename string // Download URL for the artifact from a remote repository. DownloadURL ends in ResolvedFileName DownloadURL string // Maven Metadata xml MetaXML string }
Click to show internal directories.
Click to hide internal directories.