utils

package
v0.14.5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Markdown  ReleaseNotesSyntax = "markdown"
	Asciidoc                     = "asciidoc"
	PlainText                    = "plain_text"
)

Variables

This section is empty.

Functions

func AddGpgPassphraseHeader

func AddGpgPassphraseHeader(gpgPassphrase string, headers *map[string]string)

Types

type BundleQuery

type BundleQuery struct {
	QueryName string `json:"query_name,omitempty"`
	Aql       string `json:"aql"`
}

type BundleSpec

type BundleSpec struct {
	Queries []BundleQuery `json:"queries"`
}

type DistributionCommonParams

type DistributionCommonParams struct {
	SiteName     string
	CityName     string
	CountryCodes []string
}

func (*DistributionCommonParams) GetCityName

func (params *DistributionCommonParams) GetCityName() string

func (*DistributionCommonParams) GetCountryCodes

func (params *DistributionCommonParams) GetCountryCodes() []string

func (*DistributionCommonParams) GetSiteName

func (params *DistributionCommonParams) GetSiteName() string

func (*DistributionCommonParams) SetCityName

func (params *DistributionCommonParams) SetCityName(cityName string)

func (*DistributionCommonParams) SetCountryCodes

func (params *DistributionCommonParams) SetCountryCodes(countryCodes []string)

func (*DistributionCommonParams) SetSiteName

func (params *DistributionCommonParams) SetSiteName(siteName string)

type DistributionGetter

type DistributionGetter interface {
	GetSiteName() string
	SetSiteName(siteName string)
	GetCityName() string
	SetCityName(cityName string)
	GetCountryCodes() []string
	SetCountryCodes(countryCodes []string)
}

type ReleaseBundleBody

type ReleaseBundleBody struct {
	DryRun            bool          `json:"dry_run"`
	SignImmediately   bool          `json:"sign_immediately,omitempty"`
	StoringRepository string        `json:"storing_repository,omitempty"`
	Description       string        `json:"description,omitempty"`
	ReleaseNotes      *ReleaseNotes `json:"release_notes,omitempty"`
	BundleSpec        BundleSpec    `json:"spec"`
}

REST body for create and update a release bundle

func CreateBundleBody

func CreateBundleBody(createBundleParams ReleaseBundleParams, dryRun bool) (*ReleaseBundleBody, error)

type ReleaseBundleParams

type ReleaseBundleParams struct {
	SpecFiles          []*utils.ArtifactoryCommonParams
	Name               string
	Version            string
	SignImmediately    bool
	StoringRepository  string
	Description        string
	ReleaseNotes       string
	ReleaseNotesSyntax ReleaseNotesSyntax
	GpgPassphrase      string
}

func NewReleaseBundleParams

func NewReleaseBundleParams(name, version string) ReleaseBundleParams

type ReleaseNotes

type ReleaseNotes struct {
	Syntax  ReleaseNotesSyntax `json:"syntax,omitempty"`
	Content string             `json:"content,omitempty"`
}

type ReleaseNotesSyntax

type ReleaseNotesSyntax string

Jump to

Keyboard shortcuts

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