publish

package
v0.0.0-...-2263012 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MassdriverURL                 = "https://api.massdriver.cloud/"
	MassdriverYamlFilename        = "massdriver.yaml"
	ArtifactsSchemaFilename       = "schema-artifacts.json"
	ConnectionsSchemaFilename     = "schema-connections.json"
	ParamsSchemaFilename          = "schema-params.json"
	UISchemaFilename              = "schema-ui.json"
	DevParamsFilename             = "_params.auto.tfvars.json"
	MaxBundleSizeMB               = 10
	MaxFileSizeMB                 = 1
	PackageManagerDirectoryPrefix = "bundle"
)

Variables

This section is empty.

Functions

func Run

func Run(b *bundle.Bundle, c *restclient.MassdriverClient, fs afero.Fs, buildFromDir string) error

Types

type CopyConfig

type CopyConfig struct {
	Allows  []string
	Ignores []string
}

type Packager

type Packager struct {
	Filter *CopyConfig
	Fs     afero.Fs
}

type Publisher

type Publisher struct {
	Bundle     *bundle.Bundle
	RestClient *restclient.MassdriverClient
	Fs         afero.Fs
	BuildDir   string
}

func (*Publisher) ArchiveBundle

func (p *Publisher) ArchiveBundle(buf io.Writer) error

func (Publisher) PushArchiveToPackageManager

func (p Publisher) PushArchiveToPackageManager(url string, object io.Reader) error

func (*Publisher) SubmitBundle

func (p *Publisher) SubmitBundle() (string, error)

type S3PresignEndpointResponse

type S3PresignEndpointResponse struct {
	Error                 xml.Name `xml:"Error"`
	Code                  string   `xml:"Code"`
	Message               string   `xml:"Message"`
	AWSAccessKeyID        string   `xml:"AWSAccessKeyId"`
	StringToSign          string   `xml:"StringToSign"`
	SignatureProvided     string   `xml:"SignatureProvided"`
	StringToSignBytes     []byte   `xml:"StringToSignBytes"`
	CanonicalRequest      string   `xml:"CanonicalRequest"`
	CanonicalRequestBytes []byte   `xml:"CanonicalRequestBytes"`
	RequestID             string   `xml:"RequestId"`
	HostID                string   `xml:"HostId"`
}

Jump to

Keyboard shortcuts

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