Documentation
¶
Index ¶
- Constants
- type Ctrl
- func (s *Ctrl) CloneGlobalImageToDev(globalImage, svcImage string) (string, error)
- func (s *Ctrl) GetBuildHash(buildInfo *build.Info, service string) string
- func (s *Ctrl) GetProjectHash(buildInfo *build.Info) (string, error)
- func (s *Ctrl) GetServiceHash(buildInfo *build.Info, service string) string
- func (s *Ctrl) IsEnabled() bool
Constants ¶
View Source
const (
// OktetoEnableSmartBuildEnvVar represents whether the feature flag to enable smart builds is enabled or not
OktetoEnableSmartBuildEnvVar = "OKTETO_SMART_BUILDS_ENABLED"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ctrl ¶
type Ctrl struct {
// contains filtered or unexported fields
}
Ctrl is the controller for smart builds
func NewSmartBuildCtrl ¶
func NewSmartBuildCtrl(repo repositoryInterface, registry registryController, fs afero.Fs, ioCtrl *io.Controller, wdGetter osWorkingDirGetter) *Ctrl
NewSmartBuildCtrl creates a new smart build controller
func (*Ctrl) CloneGlobalImageToDev ¶
CloneGlobalImageToDev clones the image from the global registry to the dev registry if needed if the built image belongs to global registry we clone it to the dev registry so that in can be used in dev containers (i.e. okteto up)
func (*Ctrl) GetBuildHash ¶
GetBuildHash returns the hash of the build based on the env vars
func (*Ctrl) GetProjectHash ¶
GetProjectHash returns the commit hash of the project
func (*Ctrl) GetServiceHash ¶
GetServiceHash returns the hash of the service
Click to show internal directories.
Click to hide internal directories.