Versions in this module Expand all Collapse all v0 v0.1.2 Sep 25, 2025 Changes in this version + var ContainerAutoRunPath = "/root/src/autorun.yaml" + var ContainerConfigPath = "/root/src/config.yaml" + var ContainerResourcePath = "/root/src/resources" + func AutoCheckSource(ctx context.Context, req *clientpb.BuildConfig) (*clientpb.BuildConfig, error) + func CheckSource(ctx context.Context, req *clientpb.BuildConfig) (*clientpb.BuildConfig, error) + func ConvertArtifact(artifact *clientpb.Artifact, format string, rdi string) (*clientpb.Artifact, error) + func CopyProfileFilesExceptConfig(profilePath, targetPath string) error + func GetImage(target string) string + func MutantSrdi(path string) ([]byte, error) + func ObjcopyPulse(path, platform, arch string) ([]byte, error) + func ProcessAutorunWithProfile(paramsBytes []byte, profilePath, targetPath string) error + func ProcessAutorunZip(zipData []byte, targetPath string) error + func ProcessAutorunZipToBase64(paramsByte []byte, profileName string) (string, string, error) + func SRDIArtifact(bin []byte, platform, arch string, RDIType string) ([]byte, error) + func SetLicenseID(d *DockerBuilder, licenseID string) + func WriteAutoYaml(data []byte) error + func WriteProfile(data []byte) error v0.1.1 Jul 8, 2025 Changes in this version + var BinPathVolume = fmt.Sprintf("%s:%s", filepath.ToSlash(binPath), ContainerBinPath) + var CargoGitCacheVolume = fmt.Sprintf("%s:%s", filepath.ToSlash(gitPath), ContainerCargoGitCache) + var CargoRegistryCacheVolume = fmt.Sprintf("%s:%s", filepath.ToSlash(registryPath), ContainerCargoRegistryCache) + var ContainerBinPath = "/root/bin" + var ContainerCargoGitCache = "/root/cargo/git" + var ContainerCargoRegistryCache = "/root/cargo/registry" + var ContainerSourceCodePath = "/root/src" + var DefaultImage = GetDefaultImage() + var ERROROBJCOPY = errors.New("objcopy error") + var ERRORSRDI = errors.New("srdi error") + var PATH_ENV = ContainerBinPath + ":/root/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/osxcross/bin:/usr/bin/mingw-w64" + var SourceCodeVolume = fmt.Sprintf("%s:%s", filepath.ToSlash(sourcePath), ContainerSourceCodePath) + var Volumes = []string + func AmountArtifact(artifactName string) error + func DeleteSuccessWorkflow(owner, repo, token string, workflowID int64) error + func GenerateProfile(req *clientpb.BuildConfig) ([]byte, error) + func GetActionStatus(owner, repo, token, artifactName string) (string, string, error) + func GetContainerID(d *DockerBuilder) string + func GetDefaultImage() string + func GetDockerClient() (*client.Client, error) + func GetDockerStatus(cli *client.Client, containerName string) (string, error) + func GetFilePath(name, target, buildType, format string) string + func GetWorkflowStatus(config *clientpb.GithubWorkflowConfig) error + func MoveBuildOutput(target, buildType string, enable3RD bool) (string, string, error) + func PushArtifact(owner, repo, token, buildName string, isRemove bool) (*models.Artifact, error) + func SaveArtifact(dst string, bin []byte) error + func SendBuildMsg(builder *clientpb.Artifact, status string, msg string) + func WirteProfile(config *types.ProfileConfig) error + type ActionBuilder struct + func NewActionBuilder(req *clientpb.BuildConfig) *ActionBuilder + func (a *ActionBuilder) Collect() (string, string) + func (a *ActionBuilder) Execute() error + func (a *ActionBuilder) Generate() (*clientpb.Artifact, error) + type Artifact struct + ArchiveDownloadURL string + CreatedAt time.Time + Expired bool + ExpiresAt time.Time + ID int64 + Name string + NodeID string + SizeInBytes int64 + URL string + UpdatedAt time.Time + WorkflowRun struct{ ... } + type ArtifactsResponse struct + Artifacts []Artifact + TotalCount int + type Builder interface + Collect func() (string, string) + Execute func() error + Generate func() (*clientpb.Artifact, error) + func NewBuilder(req *clientpb.BuildConfig) (Builder, error) + type BuilderState struct + ID uint32 + Status string + type DockerBuilder struct + func NewDockerBuilder(req *clientpb.BuildConfig) *DockerBuilder + func (d *DockerBuilder) Collect() (string, string) + func (d *DockerBuilder) Execute() error + func (d *DockerBuilder) Generate() (*clientpb.Artifact, error) + type Job struct + Conclusion string + ID int64 + Name string + Status string + Steps []Step + type JobsResponse struct + Jobs []Job + TotalCount int + type SaasBuilder struct + func NewSaasBuilder(req *clientpb.BuildConfig) *SaasBuilder + func (s *SaasBuilder) Collect() (string, string) + func (s *SaasBuilder) Execute() error + func (s *SaasBuilder) Generate() (*clientpb.Artifact, error) + type Step struct + Conclusion string + Name string + Status string + type Workflow struct + ArtifactsURL string + Conclusion string + CreatedAt time.Time + HTMLURL string + ID int64 + Name string + NodeID string + Path string + State string + Status string + URL string + UpdatedAt time.Time + type WorkflowDispatchPayload struct + Inputs map[string]string + Ref string