types

package
v0.1.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CompactISO8601 = "20060102T150405Z"
View Source
const ISO8601 = "2006-01-02T15:04:05Z"

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessKeyMetadata

type AccessKeyMetadata struct {
	Member []*AccessKeyMetadataMember `xml:"member"`
}

type AccessKeyMetadataMember

type AccessKeyMetadataMember struct {
	UserName    string
	AccessKeyId string
	Status      AccessKeyStatus
}

type AccessKeyResult

type AccessKeyResult struct {
	XMLName         xml.Name `xml:"AccessKey"`
	UserName        string
	AccessKeyId     string
	Status          AccessKeyStatus
	SecretAccessKey string
}

type AccessKeyStatus

type AccessKeyStatus string
const (
	AccessKeyActive   AccessKeyStatus = "Active"
	AccessKeyInactive AccessKeyStatus = "Inactive"
	AccessKeyExpired  AccessKeyStatus = "Expired"
)

type AddUserToGroupResponse

type AddUserToGroupResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ AddUserToGroupResponse"`
	ResponseMetadata *ResponseMetadata
}

type AttachUserPolicyResponse

type AttachUserPolicyResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ AttachUserPolicyResponse"`
	ResponseMetadata *ResponseMetadata
}

type AttachedPolicies

type AttachedPolicies struct {
	Member []*AttachedPoliciesMember `xml:"member"`
}

type AttachedPoliciesMember

type AttachedPoliciesMember struct {
	PolicyName string
	PolicyArn  string
}

type BaseListBucketResult

type BaseListBucketResult struct {
	XMLName        xml.Name `xml:"ListBucketResult"`
	Name           string
	Prefix         string
	MaxKeys        int
	Contents       []Object
	CommonPrefixes []CommonPrefix
	IsTruncated    bool
	UntilKey       string `xml:"-"`
}

type BaseObject

type BaseObject struct {
	Key          string
	ETag         string
	LastModified Timestamp
	Size         int64
}

type Bucket

type Bucket struct {
	Name         string
	CreationDate Timestamp
}

type CommonPrefix

type CommonPrefix struct {
	Prefix string
}

type CreateAccessKeyResponse

type CreateAccessKeyResponse struct {
	XMLName               xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ CreateAccessKeyResponse"`
	CreateAccessKeyResult *CreateAccessKeyResult
}

type CreateAccessKeyResult

type CreateAccessKeyResult struct {
	AccessKey        *AccessKeyResult
	ResponseMetadata *ResponseMetadata
}

type CreateGroupResponse

type CreateGroupResponse struct {
	XMLName           xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ CreateGroupResponse"`
	CreateGroupResult *CreateGroupResult
}

type CreateGroupResult

type CreateGroupResult struct {
	Group            *GroupResult
	ResponseMetadata *ResponseMetadata
}

type CreatePolicyResponse

type CreatePolicyResponse struct {
	XMLName            xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ CreatePolicyResponse"`
	CreatePolicyResult *CreatePolicyResult
	ResponseMetadata   *ResponseMetadata
}

type CreatePolicyResult

type CreatePolicyResult struct {
	Policy *PolicyResult
}

type CreateUserResponse

type CreateUserResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ CreateUserResponse"`
	CreateUserResult *CreateUserResult
}

type CreateUserResult

type CreateUserResult struct {
	User             *UserResult
	ResponseMetadata *ResponseMetadata
}

type DeleteAccessKeyResponse

type DeleteAccessKeyResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ DeleteAccessKeyResponse"`
	ResponseMetadata *ResponseMetadata
}

type DeleteGroupResponse

type DeleteGroupResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ DeleteGroupResponse"`
	ResponseMetadata *ResponseMetadata
}

type DeleteObjectsRequest

type DeleteObjectsRequest struct {
	XMLName xml.Name `xml:"Delete"`
	Object  []ObjectIdentifier
	Quiet   bool
}

func (DeleteObjectsRequest) LogValue

func (req DeleteObjectsRequest) LogValue() slog.Value

type DeletePolicyResponse

type DeletePolicyResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ DeletePolicyResponse"`
	ResponseMetadata *ResponseMetadata
}

type DeleteResult

type DeleteResult struct {
	Deleted []DeletedObject
	Error   []errs.S3Error
}

type DeleteUserResponse

type DeleteUserResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ DeleteUserResponse"`
	ResponseMetadata *ResponseMetadata
}

type DeletedObject

type DeletedObject struct {
	DeleteMarker          bool
	DeleteMarkerVersionId string
	Key                   string
	VersionId             string
}

type DetachGroupPolicyResponse

type DetachGroupPolicyResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ DetachGroupPolicyResponse"`
	ResponseMetadata *ResponseMetadata
}

type DetachUserPolicyResponse

type DetachUserPolicyResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ DetachUserPolicyResponse"`
	ResponseMetadata *ResponseMetadata
}

type GetGroupResponse

type GetGroupResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ GetGroupResponse"`
	GetGroupResult   *GetGroupResult
	ResponseMetadata *ResponseMetadata
}

type GetGroupResult

type GetGroupResult struct {
	Group       *GroupResult
	Users       *UserMembers
	IsTruncated bool
}

type GetObjectResult

type GetObjectResult struct {
	Content      io.ReadSeekCloser
	ObjectSize   int
	DateModified time.Time
}

type GetPolicyResponse

type GetPolicyResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ GetPolicyResponse"`
	GetPolicyResult  *GetPolicyResult
	ResponseMetadata *ResponseMetadata
}

type GetPolicyResult

type GetPolicyResult struct {
	Policy *PolicyResult
}

type GetUserResponse

type GetUserResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ GetUserResponse"`
	GetUserResult    *GetUserResult
	ResponseMetadata *ResponseMetadata
}

type GetUserResult

type GetUserResult struct {
	User *UserResult
}

type GroupResult

type GroupResult struct {
	Path      string
	GroupName string
	GroupId   string
	Arn       string
}

type ListAccessKeysResponse

type ListAccessKeysResponse struct {
	XMLName              xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ ListAccessKeysResponse"`
	ListAccessKeysResult *ListAccessKeysResult
	ResponseMetadata     *ResponseMetadata
}

type ListAccessKeysResult

type ListAccessKeysResult struct {
	UserName          string
	AccessKeyMetadata *AccessKeyMetadata
	IsTruncated       bool
}

type ListAllMyBucketsResult

type ListAllMyBucketsResult struct {
	XMLName xml.Name `xml:"ListAllMyBucketsResult"`
	Owner   Owner
	Buckets struct {
		Bucket []Bucket
	}
}

type ListAttachedGroupPoliciesResponse

type ListAttachedGroupPoliciesResponse struct {
	XMLName                         xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ ListAttachedGroupPoliciesResponse"`
	ListAttachedGroupPoliciesResult *ListAttachedGroupPoliciesResult
	ResponseMetadata                *ResponseMetadata
}

type ListAttachedGroupPoliciesResult

type ListAttachedGroupPoliciesResult struct {
	AttachedPolicies *AttachedPolicies
	IsTruncated      bool
}

type ListAttachedUserPoliciesResponse

type ListAttachedUserPoliciesResponse struct {
	XMLName                        xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ ListAttachedUserPoliciesResponse"`
	ListAttachedUserPoliciesResult *ListAttachedUserPoliciesResult
	ResponseMetadata               *ResponseMetadata
}

type ListAttachedUserPoliciesResult

type ListAttachedUserPoliciesResult struct {
	AttachedPolicies *AttachedPolicies
	IsTruncated      bool
}

type ListBucketResult

type ListBucketResult struct {
	BaseListBucketResult
	Marker     string
	NextMarker string
}

type ListBucketResultV2

type ListBucketResultV2 struct {
	BaseListBucketResult
	KeyCount              int
	ContinuationToken     string
	NextContinuationToken string
	StartAfter            string
}

type Object

type Object struct {
	BaseObject
	ChecksumAlgorithm []string
	ChecksumType      string
	Owner             *Owner
	RestoreStatus     RestoreStatus
	StorageClass      string
}

type ObjectIdentifier

type ObjectIdentifier struct {
	BaseObject
	VersionId string
}

type Owner

type Owner struct {
	ID          string
	DisplayName string // deprecated, but we'll support it
}

type PolicyResult

type PolicyResult struct {
	XMLName          xml.Name `xml:"Policy"`
	PolicyName       string
	DefaultVersionId string
	PolicyId         string
	Path             string
	Arn              string
	AttachmentCount  int
	CreateDate       time.Time
	UpdateDate       time.Time
}

type RemoveUserFromGroupResponse

type RemoveUserFromGroupResponse struct {
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ RemoveUserFromGroupResponse"`
	ResponseMetadata *ResponseMetadata
}

type ResponseMetadata

type ResponseMetadata struct {
	RequestId string
}

type RestoreStatus

type RestoreStatus struct {
	IsRestoreInProgress bool
	RestoreExpiryDate   Timestamp
}

type Timestamp

type Timestamp time.Time

func (Timestamp) MarshalXML

func (t Timestamp) MarshalXML(enc *xml.Encoder, start xml.StartElement) error

func (*Timestamp) UnmarshalXML

func (t *Timestamp) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error

type UserMembers

type UserMembers struct {
	Member []*UserResult `xml:"member"`
}

type UserResult

type UserResult struct {
	Path     string
	UserName string
	UserId   string
	Arn      string
}

Jump to

Keyboard shortcuts

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