Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultReleaseMetadataConfigMapName is the name of the configmap each service will be able to find its release data in DefaultReleaseMetadataConfigMapName = "service-release" // DataKey is the name of the key to store resolved releases data from release management system within the configmap DataKey = "releases" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeployinatorRMS ¶
type DeployinatorRMS struct { Logger *zap.Logger Deployinator *client.Deployinator }
DeployinatorRMS default implementation of ReleaseManagementStore interface
func (*DeployinatorRMS) Resolve ¶
func (rms *DeployinatorRMS) Resolve(params ResolveParams) (*ResolvedRelease, error)
func (*DeployinatorRMS) ResolveLatest ¶
func (rms *DeployinatorRMS) ResolveLatest(params ResolveBatchParams) ([]ResolvedRelease, time.Time, error)
type ReleaseManagementStore ¶
type ReleaseManagementStore interface { // Resolve returns release data grouped by a release context Resolve(params ResolveParams) (*ResolvedRelease, error) // Resolve all services that have been updated in given time ranges in batches (paginated) ResolveLatest(params ResolveBatchParams) ([]ResolvedRelease, time.Time, error) }
ReleaseManagementStore generic interface to request the release data from RMS
func NewReleaseManagement ¶
func NewReleaseManagement(depHTTPClient *client.Deployinator, logger *zap.Logger) ReleaseManagementStore
NewReleaseManagement creates new release management store object
type ResolveBatchParams ¶
type ResolveParams ¶
type ResolveParams struct { Account voyager.Account Environment voyager.EnvType Label voyager.Label Region voyager.Region ServiceName voyager.ServiceName }
ResolveParams structure to hold the parameters required for release management system to resolve release data
type ResolvedRelease ¶
type ResolvedRelease struct { ResolvedData ResolvedReleaseData ServiceName voyager.ServiceName Label voyager.Label }
type ResolvedReleaseData ¶
ResolvedRelease represents the response of a release management system
Click to show internal directories.
Click to hide internal directories.