buildinformation

package
v2.48.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OverwriteModeFailIfExists      = OverwriteMode("FailIfExists")
	OverwriteModeIgnoreIfExists    = OverwriteMode("IgnoreIfExists")
	OverwriteModeOverwriteExisting = OverwriteMode("OverwriteExisting")
)

Variables

This section is empty.

Functions

func DeleteByID added in v2.46.0

func DeleteByID(client newclient.Client, spaceId string, id string) error

DeleteById deletes the build information based on the ID provided as input.

func DeleteByIDs added in v2.46.0

func DeleteByIDs(client newclient.Client, spaceId string, ids []string) error

DeleteByIds deletes all build information based on the IDs provided as input.

func Get added in v2.46.0

func Get(client newclient.Client, spaceId string, buildInformationQuery BuildInformationQuery) (*resources.Resources[*BuildInformation], error)

Get returns a collection of build information based on the criteria defined by its input query parameters. If an error occurs, an empty collection is returned along with the associated error

func IsNil added in v2.46.0

func IsNil(i interface{}) bool

Types

type BuildInformation

type BuildInformation struct {
	Branch                string                         `json:"Branch,omitempty"`
	BuildEnvironment      string                         `json:"BuildEnvironment,omitempty"`
	BuildNumber           string                         `json:"BuildNumber,omitempty"`
	BuildURL              string                         `json:"BuildUrl,omitempty"`
	Commits               []*issuetrackers.CommitDetails `json:"Commits"`
	Created               time.Time                      `json:"Created,omitempty"`
	IncompleteDataWarning string                         `json:"IncompleteDataWarning,omitempty"`
	IssueTrackerName      string                         `json:"IssueTrackerName,omitempty"`
	PackageID             string                         `json:"PackageId,omitempty"`
	VcsCommitNumber       string                         `json:"VcsCommitNumber,omitempty"`
	VcsCommitURL          string                         `json:"VcsCommitUrl,omitempty"`
	VcsRoot               string                         `json:"VcsRoot,omitempty"`
	VcsType               string                         `json:"VcsType,omitempty"`
	Version               string                         `json:"Version,omitempty"`
	WorkItems             []*core.WorkItemLink           `json:"WorkItems"`

	resources.Resource
}

func Add added in v2.46.0

Add creates a new build information package

func GetAll added in v2.46.0

func GetAll(client newclient.Client, spaceId string) ([]*BuildInformation, error)

GetAll returns all build information. If none can be found or an error occurs, it returns an empty collection.

func GetById added in v2.46.0

func GetById(client newclient.Client, spaceId string, id string) (*BuildInformation, error)

GetById returns the build information that matches the input ID. If one cannot be found, it return nil and an error

func NewBuildInformation

func NewBuildInformation() *BuildInformation

type BuildInformationBulkQuery

type BuildInformationBulkQuery struct {
	IDs []string `uri:"ids,omitempty" url:"ids,omitempty"`
}

type BuildInformationQuery

type BuildInformationQuery struct {
	Filter           string `uri:"filter,omitempty" url:"filter,omitempty"`
	Latest           bool   `uri:"latest,omitempty" url:"latest,omitempty"`
	OverwriteMode    string `uri:"overwriteMode,omitempty" url:"overwriteMode,omitempty"`
	PackageID        string `uri:"packageId,omitempty" url:"packageId,omitempty"`
	IncludeWorkItems bool   `uri:"includeWorkItems,omitempty" url:"includeWorkItems,omitempty"`
	Skip             int    `uri:"skip,omitempty" url:"skip,omitempty"`
	Take             int    `uri:"take,omitempty" url:"take,omitempty"`
}

type BuildInformationService

type BuildInformationService struct {
	services.CanDeleteService
	// contains filtered or unexported fields
}

func NewBuildInformationService

func NewBuildInformationService(sling *sling.Sling, uriTemplate string, bulkPath string) *BuildInformationService

type Commit added in v2.46.0

type Commit struct {
	Id      string `json:"Id,omitempty"`
	Comment string `json:"Comment,omitempty"`
}

type CreateBuildInformationCommand added in v2.46.0

type CreateBuildInformationCommand struct {
	SpaceId                 string                   `json:"SpaceId,omitempty"`
	PackageId               string                   `json:"PackageId,omitempty"`
	Version                 string                   `json:"Version,omitempty"`
	OctopusBuildInformation *OctopusBuildInformation `json:"OctopusBuildInformation,omitempty"`
	OverwriteMode           OverwriteMode            `json:"OverwriteMode,omitempty"`
}

func NewCreateBuildInformationCommand added in v2.46.0

func NewCreateBuildInformationCommand(spaceId string, packageId string, version string, buildInformation OctopusBuildInformation) *CreateBuildInformationCommand

type OctopusBuildInformation added in v2.46.0

type OctopusBuildInformation struct {
	BuildEnvironment string `json:"BuildEnvironment,omitempty"`
	BuildNumber      string `json:"BuildNumber,omitempty"`
	BuildUrl         string `json:"BuildUrl,omitempty"`
	Branch           string `json:"Branch,omitempty"`
	VcsType          string `json:"VcsType,omitempty"`
	VcsRoot          string `json:"VcsRoot,omitempty"`
	VcsCommitNumber  string `json:"VcsCommitNumber,omitempty"`

	Commits []*Commit `json:"Commits"`
}

type OverwriteMode added in v2.46.0

type OverwriteMode string

Jump to

Keyboard shortcuts

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