build

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Type  string `json:"type"`
	Image struct {
		URI string `json:"uri"`
	} `json:"image"`
	Ports []int `json:"ports"`
}

type AzureContainerRegistryConfiguration

type AzureContainerRegistryConfiguration struct {
	RegistryId   string `json:"registryId"`
	RegistryName string `json:"registryName"`
	TenantId     string `json:"tenantId"`
	Secrets      struct {
		Auth struct {
			Server            string `json:"server"`
			Username          string `json:"username"`
			EncryptedPassword string `json:"encryptedPassword"`
		} `json:"auth"`
	} `json:"secrets"`
}

type Build

type Build struct {
	Id                 string                                         `json:"id"`
	Organization       common.OrganizationReference                   `json:"organization"`
	Project            common.ProjectReference                        `json:"project"`
	ProjectEnvironment common.ProjectEnvironmentWithWildCardReference `json:"projectEnvironment"`
	App                common.AppReference                            `json:"app"`
	Tags               []string                                       `json:"tags;omitempty"`
	CommitSha          string                                         `json:"commitSha"`
	Artifact           Artifact                                       `json:"artifact"`
}

type BuildService

type BuildService struct {
	// contains filtered or unexported fields
}

func NewService

func NewService() *BuildService

func (*BuildService) CreateBuild

func (bs *BuildService) CreateBuild(organizationId, appId, environmentId, commitSha, dockerUri string, ports []int) (*Build, error)

func (*BuildService) FindRegistryConnection

func (bs *BuildService) FindRegistryConnection(organizationId, projectId string) (*ContainerRegistry, error)

func (*BuildService) RunBuild

func (bs *BuildService) RunBuild(printer *cprint.CPrinter, environmentId string, verbose bool) (*Build, error)

type Connection

type Connection[T AzureContainerRegistryConfiguration] struct {
	Id                      string                            `json:"id"`
	Type                    string                            `json:"type"`
	Entity                  ConnectionEntity                  `json:"entity"`
	OrganizationIntegration ConnectionOrganizationIntegration `json:"organizationIntegration"`
	Config                  T                                 `json:"config"`
	Status                  string                            `json:"status"`
	Organization            common.OrganizationReference      `json:"organization"`
	Project                 common.ProjectReference           `json:"project"`
}

type ConnectionEntity

type ConnectionEntity struct {
	Id   string `json:"id"`
	Type string `json:"type"`
	Name string `json:"name"`
}

type ConnectionOrganizationIntegration

type ConnectionOrganizationIntegration struct {
	Id   string `json:"id"`
	Type string `json:"type"`
}

type ContainerRegistry

type ContainerRegistry struct {
	Id   string `json:"id"`
	Name string `json:"name"`
	Url  string `json:"url"`
	Auth struct {
		Server   string `json:"server"`
		Username string `json:"username"`
		Password string `json:"password"`
	} `json:"auth"`
}

type NewBuild

type NewBuild struct {
	Tags      []string `json:"tags"`
	CommitSha string   `json:"commitSha"`
	Artifact  Artifact `json:"artifact"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL