Documentation ¶
Index ¶
- Variables
- func CreateImageName(serviceID, deployversion string) string
- func GetTenantEnvRegistryAuthSecrets(kcli kubernetes.Interface, ctx context.Context, tenantEnvID string) map[string]types.AuthConfig
- type Build
- type Commit
- type CreaterBuild
- type ErrorBuild
- type HostAlias
- type MediumType
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ImageBuildHostNetworkMode = "host"
ImageBuildHostNetworkMode image build host network mode
Functions ¶
func CreateImageName ¶
CreateImageName create image name
func GetTenantEnvRegistryAuthSecrets ¶
func GetTenantEnvRegistryAuthSecrets(kcli kubernetes.Interface, ctx context.Context, tenantEnvID string) map[string]types.AuthConfig
Types ¶
type ErrorBuild ¶
type ErrorBuild struct {
Code int
}
ErrorBuild build error
func (*ErrorBuild) Error ¶
func (e *ErrorBuild) Error() string
type HostAlias ¶
type HostAlias struct { // IP address of the host file entry. IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"` // Hostnames for the above IP address. Hostnames []string `json:"hostnames,omitempty" protobuf:"bytes,2,rep,name=hostnames"` }
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.
type MediumType ¶
type MediumType string
MediumType Build output medium type
var ImageMediumType MediumType = "image"
ImageMediumType image type
var SlugMediumType MediumType = "slug"
SlugMediumType slug type
type Request ¶
type Request struct { KanikoImage string WtNamespace string WTDataPVCName string CachePVCName string CacheMode string CachePath string TenantEnvID string SourceDir string CacheDir string TGZDir string RepositoryURL string CodeSouceInfo sources.CodeSourceInfo Branch string ServiceAlias string ServiceID string DeployVersion string Runtime string ServerType string Commit Commit Lang code.Lang BuildEnvs map[string]string Logger event.Logger ImageClient sources.ImageClient KubeClient kubernetes.Interface ExtraHosts []string HostAlias []HostAlias Ctx context.Context }
Request build input
type Response ¶
type Response struct { MediumPath string MediumType MediumType }
Response build result
Click to show internal directories.
Click to hide internal directories.