jira

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenRequest

type AccessTokenRequest struct {
	Audience     string `json:"audience"`
	GrantType    string `json:"grant_type"`
	ClientId     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
}

type AccessTokenResponse

type AccessTokenResponse struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
	TokenType   string `json:"token_type"`
	Scope       string `json:"scope"`
}

type Association

type Association struct {
	AssociationType AssociationType `json:"associationType"`
	Values          []string        `json:"values"`
}

type AssociationType

type AssociationType string
const (
	IssueKeysAssociation       AssociationType = "issueKeys"
	IssueIdOrKeysAssociation   AssociationType = "issueIdOrKeys"
	ServiceIdOrKeysAssociation AssociationType = "serviceIdOrKeys"
)

type BuildInfo

type BuildInfo struct {
	SchemaVersion        string       `json:"schemaVersion,omitempty"`
	PipelineId           string       `json:"pipelineId"`
	BuildNumber          int64        `json:"buildNumber"`
	UpdateSequenceNumber int64        `json:"updateSequenceNumber"`
	DisplayName          string       `json:"displayName"`
	Description          string       `json:"description,omitempty"`
	Label                string       `json:"label,omitempty"`
	Url                  string       `json:"url"`
	State                common.State `json:"state"`
	LastUpdated          time.Time    `json:"lastUpdated"`
	IssueKeys            []string     `json:"issueKeys"`
	TestInfo             *TestInfo    `json:"testInfo,omitempty"`
	References           []Reference  `json:"references,omitempty"`
}

type BuildInfoRequest

type BuildInfoRequest struct {
	Properties       map[string]string `json:"properties,omitempty"`
	Builds           []BuildInfo       `json:"builds"`
	ProviderMetadata ProviderMetadata  `json:"providerMetadata"`
}

type BuildInfoResponse

type BuildInfoResponse struct {
	AcceptedBuilds   []BuildKey      `json:"acceptedBuilds"`
	RejectedBuilds   []RejectedBuild `json:"rejectedBuilds"`
	UnknownIssueKeys []string        `json:"unknownIssueKeys"`
}

type BuildKey

type BuildKey struct {
	PipelineId  string `json:"pipelineId"`
	BuildNumber int64  `json:"buildNumber"`
}

type CloudIdResponse

type CloudIdResponse struct {
	CloudId string `json:"cloudId"`
}

type Command

type Command struct {
	Command string `json:"command"`
}

type Commit

type Commit struct {
	Id            string `json:"id"`
	RepositoryUri string `json:"repositoryUri"`
}

type DeploymentInfo

type DeploymentInfo struct {
	SchemaVersion            string        `json:"schemaVersion,omitempty"`
	DeploymentSequenceNumber int64         `json:"deploymentSequenceNumber"`
	UpdateSequenceNumber     int64         `json:"updateSequenceNumber"`
	Associations             []Association `json:"associations"`
	DisplayName              string        `json:"displayName"`
	Url                      string        `json:"url"`
	Description              string        `json:"description"`
	LastUpdated              time.Time     `json:"lastUpdated"`
	Label                    string        `json:"label,omitempty"`
	State                    common.State  `json:"state"`
	Pipeline                 Pipeline      `json:"pipeline"`
	Environment              Environment   `json:"environment"`
	Commands                 []Command     `json:"commands,omitempty"`
}

type DeploymentInfoRequest

type DeploymentInfoRequest struct {
	Properties       map[string]string `json:"properties,omitempty"`
	Deployments      []DeploymentInfo  `json:"deployments"`
	ProviderMetadata ProviderMetadata  `json:"providerMetadata"`
}

type DeploymentInfoResponse

type DeploymentInfoResponse struct {
	AcceptedDeployments []DeploymentKey      `json:"acceptedDeployments"`
	RejectedDeployments []RejectedDeployment `json:"rejectedDeployments"`
	UnknownIssueKeys    []string             `json:"unknownIssueKeys"`
	UnknownAssociations []Association        `json:"unknownAssociations"`
}

type DeploymentKey

type DeploymentKey struct {
	PipelineId               string `json:"pipelineId"`
	EnvironmentId            string `json:"environmentId"`
	DeploymentSequenceNumber int64  `json:"deploymentSequenceNumber"`
}

type Environment

type Environment struct {
	Id          string          `json:"id"`
	DisplayName string          `json:"displayName"`
	Type        EnvironmentType `json:"type"`
}

type EnvironmentType

type EnvironmentType string
const (
	Unmapped    EnvironmentType = "unmapped"
	Development EnvironmentType = "development"
	Testing     EnvironmentType = "testing"
	Staging     EnvironmentType = "staging"
	Production  EnvironmentType = "production"
)

type Error

type Error struct {
	Message      string `json:"message"`
	ErrorTraceId string `json:"errorTraceId"`
}

type Issue

type Issue struct {
	Key    string      `json:"key"`
	Fields IssueFields `json:"fields"`
}

type IssueFields

type IssueFields struct {
	Summary string `json:"summary"`
}

type Pipeline

type Pipeline struct {
	Id          string `json:"id"`
	DisplayName string `json:"displayName"`
	Url         string `json:"url"`
}

type ProviderMetadata

type ProviderMetadata struct {
	Product string `json:"product"`
}

type Ref

type Ref struct {
	Name string `json:"name"`
	Uri  string `json:"uri"`
}

type Reference

type Reference struct {
	Commit *Commit `json:"commit,omitempty"`
	Ref    *Ref    `json:"ref,omitempty"`
}

type RejectedBuild

type RejectedBuild struct {
	Key    BuildKey `json:"key"`
	Errors []Error  `json:"errors"`
}

type RejectedDeployment

type RejectedDeployment struct {
	Key    DeploymentKey `json:"key"`
	Errors []Error       `json:"errors"`
}

type SearchRequest

type SearchRequest struct {
	Jql           string   `json:"jql,omitempty"`
	StartAt       int      `json:"startAt,omitempty"`
	MaxResults    int      `json:"maxResults,omitempty"`
	Fields        []string `json:"fields,omitempty"`
	ValidateQuery string   `json:"validateQuery,omitempty"`
}

type SearchResult

type SearchResult struct {
	Expand          string   `json:"expand,omitempty"`
	StartAt         int      `json:"startAt,omitempty"`
	MaxResults      int      `json:"maxResults,omitempty"`
	Total           int      `json:"total,omitempty"`
	Issues          []Issue  `json:"issues,omitempty"`
	WarningMessages []string `json:"warningMessages,omitempty"`
}

type ServerInfo

type ServerInfo struct {
	Version        string `json:"version"`
	VersionNumbers []int  `json:"versionNumbers"`
}

type TestInfo

type TestInfo struct {
	TotalNumber   int64 `json:"totalNumber"`
	NumberPassed  int64 `json:"numberPassed"`
	NumberFailed  int64 `json:"numberFailed"`
	NumberSkipped int64 `json:"numberSkipped,omitempty"`
}

Jump to

Keyboard shortcuts

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