Documentation
¶
Overview ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func NewUseCase(productCreator ProductCreator, releaseRepo ReleaseRepo) *useCase
- func NewUseCaseWithReader(productCreator ProductCreator, releaseRepo ReleaseRepo, reader RegistryReader) *useCase
- type Dependency
- type ImageJSON
- type ImageLabel
- type ImagesJSON
- type Product
- type ProductCreator
- type RegistryReader
- type ReleaseRepo
- type Version
Constants ¶
const RepositoryLabel = "repository.atlas.jpereira.co.uk"
Variables ¶
This section is empty.
Functions ¶
func NewUseCase ¶
func NewUseCase(productCreator ProductCreator, releaseRepo ReleaseRepo) *useCase
func NewUseCaseWithReader ¶
func NewUseCaseWithReader(productCreator ProductCreator, releaseRepo ReleaseRepo, reader RegistryReader) *useCase
Types ¶
type Dependency ¶
type Dependency struct {
Product `json:",inline"`
}
type ImageJSON ¶
type ImageJSON struct { Product `json:",inline"` Description string `json:"description,omitempty"` ImageRepo string `json:"imageRepo,omitempty"` ImageSHA string `json:"imageSha,omitempty"` Dependencies []Dependency `json:"dependencies,omitempty"` UpgradesFrom []Version `json:"upgradesFrom,omitempty"` }
type ImageLabel ¶
type ImageLabel struct {
Images ImagesJSON
}
type ImagesJSON ¶
type ImagesJSON = []ImageJSON
type ProductCreator ¶
type ProductCreator interface {
CreateOrUpdate(ref *metav1.OwnerReference, namespace string, imageJson ImageJSON) error
}
type RegistryReader ¶
type ReleaseRepo ¶
type ReleaseRepo interface {
Save(release atlasv1alpha1.ProductRelease) error
}