github.com/jfrog/jfrog-client-go@v1.40.2/distribution/services/utils/releasebundlebody.go (about)

     1  package utils
     2  
     3  import (
     4  	"github.com/jfrog/jfrog-client-go/artifactory/services/utils"
     5  )
     6  
     7  // REST body for create and update a release bundle
     8  type ReleaseBundleBody struct {
     9  	DryRun            bool          `json:"dry_run"`
    10  	SignImmediately   *bool         `json:"sign_immediately,omitempty"`
    11  	StoringRepository string        `json:"storing_repository,omitempty"`
    12  	Description       string        `json:"description,omitempty"`
    13  	ReleaseNotes      *ReleaseNotes `json:"release_notes,omitempty"`
    14  	BundleSpec        BundleSpec    `json:"spec"`
    15  }
    16  
    17  type ReleaseNotes struct {
    18  	Syntax  ReleaseNotesSyntax `json:"syntax,omitempty"`
    19  	Content string             `json:"content,omitempty"`
    20  }
    21  
    22  type BundleSpec struct {
    23  	Queries []BundleQuery `json:"queries"`
    24  }
    25  
    26  type BundleQuery struct {
    27  	QueryName    string              `json:"query_name,omitempty"`
    28  	Aql          string              `json:"aql,omitempty"`
    29  	PathMappings []utils.PathMapping `json:"mappings,omitempty"`
    30  	AddedProps   []AddedProps        `json:"added_props,omitempty"`
    31  }
    32  
    33  type AddedProps struct {
    34  	Key    string   `json:"key"`
    35  	Values []string `json:"values"`
    36  }