get_bucket_event_rules

package
v7.24.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

获取存储空间事件通知规则

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketEventRule

type BucketEventRule struct {
	Name         string       // 规则名称,bucket 内唯一,长度小于 50,不能为空,只能为字母、数字、下划线
	Prefix       string       // 匹配文件前缀
	Suffix       string       // 匹配文件后缀
	EventTypes   EventTypes   // 事件类型,可以指定多个,包括 put,mkfile,delete,copy,move,append,disable,enable,deleteMarkerCreate,predelete(删除之前触发),restore:completed
	CallbackUrls CallbackUrls // 回调地址,可以指定多个
	AccessKey    string       // 设置的话会对通知请求用对应的 accessKey,secretKey 进行签名
	Host         string       // 通知请求的 Host
}

存储空间事件通知规则

func (*BucketEventRule) MarshalJSON

func (j *BucketEventRule) MarshalJSON() ([]byte, error)

func (*BucketEventRule) UnmarshalJSON

func (j *BucketEventRule) UnmarshalJSON(data []byte) error

type BucketEventRules

type BucketEventRules []BucketEventRule

所有存储空间事件通知规则

type CallbackUrls

type CallbackUrls = []string

回调地址

type EventTypes

type EventTypes = []string

事件类型

type Request

type Request struct {
	Bucket      string                          // 存储空间名称
	Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}

调用 API 所用的请求

type Response

type Response struct {
	BucketEventRules BucketEventRules // 所有存储空间事件通知规则
}

获取 API 所用的响应

func (*Response) MarshalJSON

func (j *Response) MarshalJSON() ([]byte, error)

func (*Response) UnmarshalJSON

func (j *Response) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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