Documentation
¶
Index ¶
- func Log(logger *log.Logger, changesStr string) error
- func NewChangeLogger(logger *log.Logger, changesStr string) *changeLogger
- type Change
- func NewBuildpackChange(oldBuildpacks, newBuildpacks []corev1alpha1.BuildpackInfo) Change
- func NewCommitChange(oldRevision, newRevision string) Change
- func NewConfigChange(oldConfig, newConfig Config) Change
- func NewStackChange(oldRunImageRefStr, newRunImageRefStr string) Change
- func NewTriggerChange(dateStr string) Change
- type ChangeProcessor
- type ChangeSummary
- type Config
- type GenericChange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChangeLogger ¶
Types ¶
type Change ¶
type Change interface {
Reason() buildapi.BuildReason
IsBuildRequired() (bool, error)
Old() interface{}
New() interface{}
Priority() buildapi.BuildPriority
}
func NewBuildpackChange ¶
func NewBuildpackChange(oldBuildpacks, newBuildpacks []corev1alpha1.BuildpackInfo) Change
func NewCommitChange ¶
func NewConfigChange ¶
func NewStackChange ¶
func NewTriggerChange ¶
type ChangeProcessor ¶
type ChangeProcessor struct {
// contains filtered or unexported fields
}
func NewChangeProcessor ¶
func NewChangeProcessor() *ChangeProcessor
func (*ChangeProcessor) Process ¶
func (c *ChangeProcessor) Process(change Change) *ChangeProcessor
func (*ChangeProcessor) Summarize ¶
func (c *ChangeProcessor) Summarize() (ChangeSummary, error)
type ChangeSummary ¶
type ChangeSummary struct {
HasChanges bool
ReasonsStr string
ChangesStr string
Priority buildapi.BuildPriority
}
func NewChangeSummary ¶
func NewChangeSummary(hasChanges bool, reasonsStr, changesStr string, priority buildapi.BuildPriority) (ChangeSummary, error)
func (ChangeSummary) IsValid ¶
func (c ChangeSummary) IsValid() bool
type Config ¶
type Config struct {
Env []corev1.EnvVar `json:"env,omitempty"`
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
Services buildapi.Services `json:"services,omitempty"`
CNBBindings corev1alpha1.CNBBindings `json:"cnbBindings,omitempty"`
Source corev1alpha1.SourceConfig `json:"source,omitempty"`
}
type GenericChange ¶
type GenericChange struct {
Reason string `json:"reason,omitempty"`
Old interface{} `json:"old,omitempty"`
New interface{} `json:"new,omitempty"`
Priority buildapi.BuildPriority `json:"-"`
}
Click to show internal directories.
Click to hide internal directories.