dependency_version

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client *golangsdk.ServiceClient, dependId, version string) (err error)

Types

type CreateOpts

type CreateOpts struct {
	DependFile  string `json:"depend_file,omitempty"`
	DependLink  string `json:"depend_link,omitempty"`
	DependType  string `json:"depend_type" required:"true"`
	Runtime     string `json:"runtime" required:"true"`
	Name        string `json:"name" required:"true"`
	Description string `json:"description,omitempty"`
}

type DepVersionListResp

type DepVersionListResp struct {
	Id           string `json:"id"`
	Owner        string `json:"owner"`
	Link         string `json:"link"`
	Runtime      string `json:"runtime"`
	Etag         string `json:"etag"`
	Size         int    `json:"size"`
	Name         string `json:"name"`
	Description  string `json:"description"`
	FileName     string `json:"file_name"`
	Version      int    `json:"version"`
	DepId        string `json:"dep_id"`
	LastModified string `json:"last_modified"`
	DownloadLink string `json:"download_link"`
	IsShared     bool   `json:"is_shared"`
}

type DepVersionResp

type DepVersionResp struct {
	Id           string `json:"id"`
	Owner        string `json:"owner"`
	Link         string `json:"link"`
	Runtime      string `json:"runtime"`
	Etag         string `json:"etag"`
	Size         int    `json:"size"`
	Name         string `json:"name"`
	Description  string `json:"description"`
	FileName     string `json:"file_name"`
	Version      int    `json:"version"`
	DepId        string `json:"dep_id"`
	LastModified int    `json:"last_modified"`
	DownloadLink string `json:"download_link"`
	IsShared     bool   `json:"is_shared"`
}

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*DepVersionResp, error)

func Get

func Get(client *golangsdk.ServiceClient, dependId, version string) (*DepVersionResp, error)

type ListDepVersionResp

type ListDepVersionResp struct {
	Dependencies []DepVersionListResp `json:"dependencies"`
	NextMarker   int                  `json:"next_marker"`
	Count        int                  `json:"count"`
}

type ListDependenciesOpts

type ListDependenciesOpts struct {
	Marker         string `q:"marker"`
	MaxItems       string `q:"max_items"`
	IsPublic       string `json:"is_public"`
	DependencyType string `json:"dependency_type"`
	Runtime        string `json:"runtime"`
	Name           string `json:"name"`
	Limit          string `json:"limit"`
}

type ListDependencyVersionOpts

type ListDependencyVersionOpts struct {
	DependId string `json:"-"`
	Marker   string `q:"marker"`
	MaxItems string `q:"max_items"`
}

Jump to

Keyboard shortcuts

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