cnb_releases

package
v4.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: AGPL-3.0 Imports: 17 Imported by: 2 modules, 1 package

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

This section is empty.

Types

type Addition

type Addition struct {
	driver.RootID
	Repo          string `json:"repo" type:"string" required:"true"`
	Token         string `json:"token" type:"string" required:"true"`
	UseTagName    bool   `json:"use_tag_name" type:"bool" default:"false" help:"Use tag name instead of release name"`
	DefaultBranch string `json:"default_branch" type:"string" default:"main" help:"Default branch for new releases"`
}

type CnbReleases

type CnbReleases struct {
	model.Storage
	Addition
	// contains filtered or unexported fields
}

func (*CnbReleases) Config

func (d *CnbReleases) Config() driver.Config

func (*CnbReleases) Copy

func (d *CnbReleases) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)

func (*CnbReleases) Drop

func (d *CnbReleases) Drop(ctx context.Context) error

func (*CnbReleases) GetAddition

func (d *CnbReleases) GetAddition() driver.Additional

func (*CnbReleases) Init

func (d *CnbReleases) Init(ctx context.Context) error

func (*CnbReleases) InitReference

func (d *CnbReleases) InitReference(storage driver.Driver) error
func (d *CnbReleases) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)

func (*CnbReleases) List

func (d *CnbReleases) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)

func (*CnbReleases) MakeDir

func (d *CnbReleases) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error

func (*CnbReleases) Move

func (d *CnbReleases) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)

func (*CnbReleases) Put

func (*CnbReleases) Remove

func (d *CnbReleases) Remove(ctx context.Context, obj model.Obj) error

func (*CnbReleases) Rename

func (d *CnbReleases) Rename(ctx context.Context, srcObj model.Obj, newName string) error

func (*CnbReleases) Request

func (d *CnbReleases) Request(method string, path string, callback base.ReqCallback, resp any) error

type CommitObject

type CommitObject struct {
	Author       Signature                `json:"author"`
	CommentCount int                      `json:"comment_count"`
	Committer    Signature                `json:"committer"`
	Message      string                   `json:"message"`
	Tree         CommitObjectTree         `json:"tree"`
	Verification CommitObjectVerification `json:"verification"`
}

type CommitObjectTree

type CommitObjectTree struct {
	Sha string `json:"sha"`
}

type CommitObjectVerification

type CommitObjectVerification struct {
	Payload    string `json:"payload"`
	Reason     string `json:"reason"`
	Signature  string `json:"signature"`
	Verified   bool   `json:"verified"`
	VerifiedAt string `json:"verified_at"`
}

type CommitParent

type CommitParent = CommitObjectTree

type Object

type Object struct {
	model.Object
	ParentID string
}

type Release

type Release struct {
	Assets       []ReleaseAsset `json:"assets"`
	Author       UserInfo       `json:"author"`
	Body         string         `json:"body"`
	CreatedAt    time.Time      `json:"created_at"`
	Draft        bool           `json:"draft"`
	ID           string         `json:"id"`
	IsLatest     bool           `json:"is_latest"`
	Name         string         `json:"name"`
	Prerelease   bool           `json:"prerelease"`
	PublishedAt  time.Time      `json:"published_at"`
	TagCommitish string         `json:"tag_commitish"`
	TagName      string         `json:"tag_name"`
	UpdatedAt    time.Time      `json:"updated_at"`
}

type ReleaseAsset

type ReleaseAsset struct {
	ContentType string    `json:"content_type"`
	CreatedAt   time.Time `json:"created_at"`
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Path        string    `json:"path"`
	Size        int64     `json:"size"`
	UpdatedAt   time.Time `json:"updated_at"`
	Uploader    UserInfo  `json:"uploader"`
}

type ReleaseAssetUploadURL

type ReleaseAssetUploadURL struct {
	UploadURL    string `json:"upload_url"`
	ExpiresInSec int    `json:"expires_in_sec"`
	VerifyURL    string `json:"verify_url"`
}

type ReleaseList

type ReleaseList []Release

type Signature

type Signature struct {
	Date  time.Time `json:"date"`
	Email string    `json:"email"`
	Name  string    `json:"name"`
}

type Tag

type Tag struct {
	Commit struct {
		Author    UserInfo       `json:"author"`
		Commit    CommitObject   `json:"commit"`
		Committer UserInfo       `json:"committer"`
		Parents   []CommitParent `json:"parents"`
		Sha       string         `json:"sha"`
	} `json:"commit"`
	Name         string                `json:"name"`
	Target       string                `json:"target"`
	TargetType   string                `json:"target_type"`
	Verification TagObjectVerification `json:"verification"`
}

type TagList

type TagList []Tag

type TagObjectVerification

type TagObjectVerification = CommitObjectVerification

type UserInfo

type UserInfo struct {
	Freeze   bool   `json:"freeze"`
	Nickname string `json:"nickname"`
	Username string `json:"username"`
}

Jump to

Keyboard shortcuts

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