pipeline

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.0.1"

Functions

func FindConfigurationById added in v1.1.0

func FindConfigurationById[C Configuration](configurations []C, id string) *C

func PackFormJSONValues added in v1.2.0

func PackFormJSONValues(ctx context.Context, d *schema.ResourceData, schemaKey string, formJSONValues []FormJSONValues) []error

func PipelineProjectIntegrationResource added in v1.2.0

func PipelineProjectIntegrationResource() *schema.Resource

func Provider

func Provider() *schema.Provider

Types

type Configuration added in v1.1.0

type Configuration interface {
	Id() string
}

type FormJSONValues

type FormJSONValues struct {
	Label     string `json:"label"`
	Value     string `json:"value"`
	Sensitive bool   `json:"-"`
}

func UnpackFormJSONValues added in v1.2.0

func UnpackFormJSONValues(d *util.ResourceData, key string) []FormJSONValues

func (FormJSONValues) Id added in v1.1.0

func (f FormJSONValues) Id() string

type Node

type Node struct {
	//Project                   string          `json:"project"`
	FriendlyName      string            `json:"friendlyName"`
	ProjectId         int               `json:"projectId"`
	NodePoolId        int               `json:"nodePoolId"`
	IsOnDemand        bool              `json:"isOnDemand"`
	IsAutoInitialized bool              `json:"isAutoInitialized"`
	IPAddress         string            `json:"IPAddress,omitempty"`
	IsSwapEnabled     bool              `json:"isSwapEnabled,omitempty"`
	SystemPropertyBag SystemPropertyBag `json:"systemPropertyBag,omitempty"`
	ID                int               `json:"id,omitempty"`
}

type NodePool

type NodePool struct {
	//Project                   string          `json:"project"`
	Name                   string   `json:"name"`
	ProjectId              int      `json:"projectId"`
	NumberOfNodes          int      `json:"numberOfNodes,omitempty"`
	IsOnDemand             bool     `json:"isOnDemand"`
	Architecture           string   `json:"architecture"`
	OperatingSystem        string   `json:"operatingSystem"`
	NodeIdleIntervalInMins int      `json:"nodeIdleIntervalInMins"`
	Environments           []string `json:"environments,omitempty"`
	ID                     int      `json:"id,omitempty"`
}

Project GET {{ host }}/access/api/v1/projects/{{prjKey}}/ GET {{ host }}/artifactory/api/repositories/?prjKey={{prjKey}}

type PipelineSource

type PipelineSource struct {
	//Project                   string          `json:"project"`
	Name                 string   `json:"name"`
	ProjectId            int      `json:"projectId"`
	ProjectIntegrationId int      `json:"projectIntegrationId"`
	RepositoryFullName   string   `json:"repositoryFullName,omitempty"`
	Branch               string   `json:"branch,omitempty"`
	FileFilter           string   `json:"fileFilter"`
	IsMultiBranch        bool     `json:"isMultiBranch,omitempty"`
	BranchExcludePattern string   `json:"branchExcludePattern,omitempty"`
	BranchIncludePattern string   `json:"branchIncludePattern,omitempty"`
	Environments         []string `json:"environments,omitempty"`
	TemplateId           int      `json:"templateId,omitempty"`
	ID                   int      `json:"id,omitempty"`
}

PipelineSource GET {{ host }}/access/api/v1/projects/{{prjKey}}/ GET {{ host }}/artifactory/api/repositories/?prjKey={{prjKey}}

type Project

type Project struct {
	Name string `json:"name"`
	Id   int    `json:"id"`
}

type ProjectIntegration

type ProjectIntegration struct {
	Name                  string           `json:"name"`
	ProjectId             int              `json:"projectId,omitempty"`
	Project               ProjectJSON      `json:"project,omitempty"`
	MasterIntegrationId   int              `json:"masterIntegrationId"`
	MasterIntegrationName string           `json:"masterIntegrationName"`
	FormJSONValues        []FormJSONValues `json:"formJSONValues"`
	Environments          []string         `json:"environments,omitempty"`
	IsInternal            bool             `json:"isInternal,omitempty"`
	ID                    int              `json:"id,omitempty"`
}

type ProjectJSON

type ProjectJSON struct {
	Key  string `json:"key,omitempty"`
	Name string `json:"name,omitempty"`
}

type SystemPropertyBag

type SystemPropertyBag struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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