upload

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLink(c *gitlab.Client, projectID, tagName string, asset *ReleaseAsset) (*gitlab.ReleaseLink, error)

Types

type Context

type Context struct {
	Client      *gitlab.Client
	IO          *iostreams.IOStreams
	AssetFiles  []*ReleaseFile
	AssetsLinks []*ReleaseAsset
}
func (c *Context) CreateReleaseAssetLinks(projectID string, tagName string) error

func (*Context) UploadFiles

func (c *Context) UploadFiles(projectID, tagName string) error

UploadFiles uploads a file into a release repository.

type ReleaseAsset

type ReleaseAsset struct {
	Name     *string               `json:"name,omitempty"`
	URL      *string               `json:"url,omitempty"`
	FilePath *string               `json:"filepath,omitempty"`
	LinkType *gitlab.LinkTypeValue `json:"link_type,omitempty"`
}

type ReleaseFile

type ReleaseFile struct {
	Open  func() (io.ReadCloser, error)
	Name  string
	Label string
	Path  string
	Type  *gitlab.LinkTypeValue
}

Jump to

Keyboard shortcuts

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