imageRegistry

package
v1.0.167 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRegion = base.RegionCnNorth1
	ServiceName   = "cr"
)

Variables

View Source
var (
	ServiceInfo = &base.ServiceInfo{
		Timeout: 5 * time.Second,
		Host:    "open.volcengineapi.com",
		Header: http.Header{
			"Accept": []string{"application/json"},
		},
		Credentials: base.Credentials{
			Region:  base.RegionCnNorth1,
			Service: ServiceName,
		},
	}
	ApiInfoList = map[string]*base.ApiInfo{
		"DeleteNamespaceBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeleteNamespaceBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"CreateNamespaceBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateNamespaceBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"ValidateNamespaceBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ValidateNamespaceBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"GetNamespaceBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetNamespaceBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"ListNamespacesBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListNamespacesBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"ListRepositoriesBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListRepositoriesBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"GetRepositoryBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetRepositoryBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"CreateRepositoryBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateRepositoryBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"UpdateRepositoryBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateRepositoryBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"DeleteRepositoryBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeleteRepositoryBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"ValidateRepositoryBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ValidateRepositoryBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"ListTagsBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListTagsBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"GetTagBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetTagBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"GetTagAdditionBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetTagAdditionBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"DeleteTagBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeleteTagBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
		"GetAuthorizationTokenBasic": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetAuthorizationTokenBasic"},
				"Version": []string{"2021-03-03"},
			},
		},
	}
)
View Source
var DefaultInstance = NewInstance()

Functions

This section is empty.

Types

type ImageRegistry

type ImageRegistry struct {
	*base.Client
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance() *ImageRegistry

func (*ImageRegistry) CloseRetry

func (p *ImageRegistry) CloseRetry()

func (*ImageRegistry) CreateNamespaceBasic

func (p *ImageRegistry) CreateNamespaceBasic(req *CreateNamespaceBasicRequest) (*CreateNamespaceBasicResponse, error)

func (*ImageRegistry) CreateRepositoryBasic

func (p *ImageRegistry) CreateRepositoryBasic(req *CreateRepositoryBasicRequest) (*CreateRepositoryBasicResponse, error)

func (*ImageRegistry) DeleteNamespaceBasic

func (p *ImageRegistry) DeleteNamespaceBasic(req *DeleteNamespaceBasicRequest) (*DeleteNamespaceBasicResponse, error)

func (*ImageRegistry) DeleteRepositoryBasic

func (p *ImageRegistry) DeleteRepositoryBasic(req *DeleteRepositoryBasicRequest) (*DeleteRepositoryBasicResponse, error)

func (*ImageRegistry) DeleteTagBasic

func (p *ImageRegistry) DeleteTagBasic(req *DeleteTagBasicRequest) (*DeleteTagBasicResponse, error)

func (*ImageRegistry) GetAuthorizationTokenBasic

func (p *ImageRegistry) GetAuthorizationTokenBasic(req *GetAuthorizationTokenBasicRequest) (*GetAuthorizationTokenBasicResponse, error)

func (*ImageRegistry) GetNamespaceBasic

func (p *ImageRegistry) GetNamespaceBasic(req *GetNamespaceBasicRequest) (*GetNamespaceBasicResponse, error)

func (*ImageRegistry) GetRepositoryBasic

func (p *ImageRegistry) GetRepositoryBasic(req *GetRepositoryBasicRequest) (*GetRepositoryBasicResponse, error)

func (*ImageRegistry) GetTagAdditionBasic

func (p *ImageRegistry) GetTagAdditionBasic(req *GetTagAdditionBasicRequest) (*GetTagAdditionBasicResponse, error)

func (*ImageRegistry) GetTagBasic

func (p *ImageRegistry) GetTagBasic(req *GetTagBasicRequest) (*GetTagBasicResponse, error)

func (*ImageRegistry) ListNamespacesBasic

func (p *ImageRegistry) ListNamespacesBasic(req *ListNamespacesBasicRequest) (*ListNamespacesBasicResponse, error)

func (*ImageRegistry) ListRepositoriesBasic

func (p *ImageRegistry) ListRepositoriesBasic(req *ListRepositoriesBasicRequest) (*ListRepositoriesBasicResponse, error)

func (*ImageRegistry) ListTagsBasic

func (p *ImageRegistry) ListTagsBasic(req *ListTagsBasicRequest) (*ListTagsBasicResponse, error)

func (*ImageRegistry) Retry

func (p *ImageRegistry) Retry() bool

func (*ImageRegistry) UpdateRepositoryBasic

func (p *ImageRegistry) UpdateRepositoryBasic(req *UpdateRepositoryBasicRequest) (*UpdateRepositoryBasicResponse, error)

func (*ImageRegistry) ValidateNamespaceBasic

func (p *ImageRegistry) ValidateNamespaceBasic(req *ValidateNamespaceBasicRequest) (*ValidateNamespaceBasicResponse, error)

func (*ImageRegistry) ValidateRepositoryBasic

func (p *ImageRegistry) ValidateRepositoryBasic(req *ValidateRepositoryBasicRequest) (*ValidateRepositoryBasicResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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