utils

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 2 Imported by: 6 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGpgPassphraseHeader

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

Types

type AddedProps added in v0.19.0

type AddedProps struct {
	Key    string   `json:"key"`
	Values []string `json:"values"`
}

type BundleQuery

type BundleQuery struct {
	QueryName    string              `json:"query_name,omitempty"`
	Aql          string              `json:"aql,omitempty"`
	PathMappings []utils.PathMapping `json:"mappings,omitempty"`
	AddedProps   []AddedProps        `json:"added_props,omitempty"`
}

type BundleSpec

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

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(releaseBundleParams ReleaseBundleParams, dryRun bool) (*ReleaseBundleBody, error)

type ReleaseBundleParams

type ReleaseBundleParams struct {
	SpecFiles          []*rtUtils.CommonParams
	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
const (
	Markdown  ReleaseNotesSyntax = "markdown"
	Asciidoc  ReleaseNotesSyntax = "asciidoc"
	PlainText ReleaseNotesSyntax = "plain_text"
)

Jump to

Keyboard shortcuts

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