models

package
v0.0.0-...-13bd798 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string

Action Rule execution result action in FrostFS EACL. Either allows or denies access if the rule's filters match.

swagger:model Action

const (

	// ActionALLOW captures enum value "ALLOW"
	ActionALLOW Action = "ALLOW"

	// ActionDENY captures enum value "DENY"
	ActionDENY Action = "DENY"
)

func NewAction

func NewAction(value Action) *Action

func (Action) ContextValidate

func (m Action) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this action based on context it is used

func (Action) Pointer

func (m Action) Pointer() *Action

Pointer returns a pointer to a freshly-allocated Action.

func (Action) Validate

func (m Action) Validate(formats strfmt.Registry) error

Validate validates this action

type Address

type Address struct {

	// container Id
	// Required: true
	ContainerID *string `json:"containerId"`

	// object Id
	// Required: true
	ObjectID *string `json:"objectId"`
}

Address Address of the object in FrostFS. Example: {"containerId":"5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv","objectId":"8N3o7Dtr6T1xteCt6eRwhpmJ7JhME58Hyu1dvaswuTDd"}

swagger:model Address

func (*Address) ContextValidate

func (m *Address) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this address based on context it is used

func (*Address) MarshalBinary

func (m *Address) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Address) UnmarshalBinary

func (m *Address) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Address) Validate

func (m *Address) Validate(formats strfmt.Registry) error

Validate validates this address

type Attribute

type Attribute struct {

	// key
	// Required: true
	Key *string `json:"key"`

	// value
	// Required: true
	Value *string `json:"value"`
}

Attribute Attribute is a pair of strings that can be attached to a container or an object. Example: {"key":"User-Defined-Tag","value":"tag value"}

swagger:model Attribute

func (*Attribute) ContextValidate

func (m *Attribute) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this attribute based on context it is used

func (*Attribute) MarshalBinary

func (m *Attribute) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Attribute) UnmarshalBinary

func (m *Attribute) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Attribute) Validate

func (m *Attribute) Validate(formats strfmt.Registry) error

Validate validates this attribute

type Balance

type Balance struct {

	// address
	// Required: true
	Address *string `json:"address"`

	// precision
	// Required: true
	Precision *int64 `json:"precision"`

	// value
	// Required: true
	Value *string `json:"value"`
}

Balance balance

swagger:model Balance

func (*Balance) ContextValidate

func (m *Balance) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this balance based on context it is used

func (*Balance) MarshalBinary

func (m *Balance) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Balance) UnmarshalBinary

func (m *Balance) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Balance) Validate

func (m *Balance) Validate(formats strfmt.Registry) error

Validate validates this balance

type Bearer

type Bearer struct {

	// container
	Container *Rule `json:"container,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// object
	Object []*Record `json:"object"`
}

Bearer Bearer token that is expected to be formed. Example: [{"name":"my-bearer-token","object":[{"action":"ALLOW","filters":[],"operation":"GET","targets":[{"keys":[],"role":"OTHERS"}]}]},{"container":{"verb":"PUT"},"name":"my token to create container"}]

swagger:model Bearer

func (*Bearer) ContextValidate

func (m *Bearer) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bearer based on the context it is used

func (*Bearer) MarshalBinary

func (m *Bearer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Bearer) UnmarshalBinary

func (m *Bearer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Bearer) Validate

func (m *Bearer) Validate(formats strfmt.Registry) error

Validate validates this bearer

type BinaryBearer

type BinaryBearer struct {

	// Base64 encoded bearer token.
	// Required: true
	Token *string `json:"token"`
}

BinaryBearer Bearer token for object operations that is represented in binary form. Example: {"token":"ChIKDAoAGggIARABIgIIAxoCCGQSZgohA+J5jFWFMiOpyvMZBu9wwPTKsWsG0q206kVe63iuWP/wEkEE4SIV0QngnKppDf54QezUKmar7UQby6HzufT5yVIOvj7QEqZnOavrKW0chCeCwP0khda/j9k00ct6NMEDxQFW+g=="}

swagger:model BinaryBearer

func (*BinaryBearer) ContextValidate

func (m *BinaryBearer) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this binary bearer based on context it is used

func (*BinaryBearer) MarshalBinary

func (m *BinaryBearer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BinaryBearer) UnmarshalBinary

func (m *BinaryBearer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BinaryBearer) Validate

func (m *BinaryBearer) Validate(formats strfmt.Registry) error

Validate validates this binary bearer

type ContainerInfo

type ContainerInfo struct {

	// attributes
	// Required: true
	Attributes []*Attribute `json:"attributes"`

	// basic Acl
	// Required: true
	BasicACL *string `json:"basicAcl"`

	// The friendly name for the basicAcl field.
	CannedACL string `json:"cannedAcl,omitempty"`

	// container Id
	// Required: true
	ContainerID *string `json:"containerId"`

	// container name
	// Required: true
	ContainerName *string `json:"containerName"`

	// owner Id
	// Required: true
	OwnerID *string `json:"ownerId"`

	// placement policy
	// Required: true
	PlacementPolicy *string `json:"placementPolicy"`

	// version
	// Required: true
	Version *string `json:"version"`
}

ContainerInfo Information about container. Example: {"attribute":[{"key":"Timestamp","value":"1648810072"},{"key":"Name","value":"container"}],"basicAcl":"0x1fbf9fff","containerId":"5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv","containerName":"container","ownerId":"NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM","placementPolicy":"REP 2","version":"2.11"}

swagger:model ContainerInfo

func (*ContainerInfo) ContextValidate

func (m *ContainerInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this container info based on the context it is used

func (*ContainerInfo) MarshalBinary

func (m *ContainerInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerInfo) UnmarshalBinary

func (m *ContainerInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerInfo) Validate

func (m *ContainerInfo) Validate(formats strfmt.Registry) error

Validate validates this container info

type ContainerList

type ContainerList struct {

	// containers
	// Required: true
	Containers []*ContainerInfo `json:"containers"`

	// size
	// Required: true
	Size *int64 `json:"size"`
}

ContainerList List of containers info Example: {"containers":[{"attribute":[{"key":"Timestamp","value":"1648810072"},{"key":"Name","value":"container"}],"basicAcl":"0x1fbf9fff","containerId":"5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv","containerName":"container","ownerId":"NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM","placementPolicy":"REP 2","version":"2.11"},{"attribute":[{"key":"Name","value":"container2"}],"basicAcl":"0x1fbf9fff","containerId":"FsE7HLQBBYc2WFJzuTXMcpspDEmwUxsD5YmNb2r25uUu","containerName":"container2","ownerId":"NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM","placementPolicy":"REP 1","version":"2.11"}],"size":2}

swagger:model ContainerList

func (*ContainerList) ContextValidate

func (m *ContainerList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this container list based on the context it is used

func (*ContainerList) MarshalBinary

func (m *ContainerList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerList) UnmarshalBinary

func (m *ContainerList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerList) Validate

func (m *ContainerList) Validate(formats strfmt.Registry) error

Validate validates this container list

type ContainerPutInfo

type ContainerPutInfo struct {

	// attributes
	Attributes []*Attribute `json:"attributes"`

	// basic Acl
	BasicACL string `json:"basicAcl,omitempty"`

	// container name
	ContainerName string `json:"containerName,omitempty"`

	// placement policy
	PlacementPolicy string `json:"placementPolicy,omitempty"`
}

ContainerPutInfo Request body to create container. To specify container name use appropriate property (name provided in attributes will be ignored). Example: {"attributes":[{"key":"Custom-Attribute","value":"value"}],"basicAcl":"public-read-write","containerName":"container","placementPolicy":"REP 3"}

swagger:model ContainerPutInfo

func (*ContainerPutInfo) ContextValidate

func (m *ContainerPutInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this container put info based on the context it is used

func (*ContainerPutInfo) MarshalBinary

func (m *ContainerPutInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerPutInfo) UnmarshalBinary

func (m *ContainerPutInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerPutInfo) Validate

func (m *ContainerPutInfo) Validate(formats strfmt.Registry) error

Validate validates this container put info

type Eacl

type Eacl struct {

	// container Id
	// Read Only: true
	ContainerID string `json:"containerId,omitempty"`

	// records
	// Required: true
	Records []*Record `json:"records"`
}

Eacl EACL FrostFS table. Example: {"containerId":"5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv","records":[{"action":"GET","filters":[{"headerType":"OBJECT","key":"FileName","matchType":"STRING_EQUAL","value":"myfile"}],"operation":"ALLOW","targets":[{"role":"OTHERS"}]}]}

swagger:model Eacl

func (*Eacl) ContextValidate

func (m *Eacl) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this eacl based on the context it is used

func (*Eacl) MarshalBinary

func (m *Eacl) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Eacl) UnmarshalBinary

func (m *Eacl) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Eacl) Validate

func (m *Eacl) Validate(formats strfmt.Registry) error

Validate validates this eacl

type ErrorResponse

type ErrorResponse struct {

	// code
	Code int64 `json:"code,omitempty"`

	// message
	// Required: true
	Message *string `json:"message"`

	// type
	// Required: true
	Type *ErrorType `json:"type"`
}

ErrorResponse Error response. Example: {"code":1024,"message":"incomplete object PUT by placement","type":"API"}

swagger:model ErrorResponse

func (*ErrorResponse) ContextValidate

func (m *ErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error response based on the context it is used

func (*ErrorResponse) MarshalBinary

func (m *ErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary

func (m *ErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

type ErrorType

type ErrorType string

ErrorType Error type. Allow determine source of the error.

swagger:model ErrorType

const (

	// ErrorTypeGW captures enum value "GW"
	ErrorTypeGW ErrorType = "GW"

	// ErrorTypeAPI captures enum value "API"
	ErrorTypeAPI ErrorType = "API"
)

func NewErrorType

func NewErrorType(value ErrorType) *ErrorType

func (ErrorType) ContextValidate

func (m ErrorType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error type based on context it is used

func (ErrorType) Pointer

func (m ErrorType) Pointer() *ErrorType

Pointer returns a pointer to a freshly-allocated ErrorType.

func (ErrorType) Validate

func (m ErrorType) Validate(formats strfmt.Registry) error

Validate validates this error type

type Filter

type Filter struct {

	// header type
	// Required: true
	HeaderType *HeaderType `json:"headerType"`

	// key
	// Required: true
	Key *string `json:"key"`

	// match type
	// Required: true
	MatchType *MatchType `json:"matchType"`

	// value
	// Required: true
	Value *string `json:"value"`
}

Filter Filter in FrostFS EACL to check particular properties of the request or the object. Example: {"headerType":"OBJECT","key":"FileName","matchType":"STRING_NOT_EQUAL","value":"myfile"}

swagger:model Filter

func (*Filter) ContextValidate

func (m *Filter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this filter based on the context it is used

func (*Filter) MarshalBinary

func (m *Filter) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Filter) UnmarshalBinary

func (m *Filter) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Filter) Validate

func (m *Filter) Validate(formats strfmt.Registry) error

Validate validates this filter

type HeaderType

type HeaderType string

HeaderType Enumeration of possible sources of Headers to apply filters in FrostFS EACL.

swagger:model HeaderType

const (

	// HeaderTypeREQUEST captures enum value "REQUEST"
	HeaderTypeREQUEST HeaderType = "REQUEST"

	// HeaderTypeOBJECT captures enum value "OBJECT"
	HeaderTypeOBJECT HeaderType = "OBJECT"

	// HeaderTypeSERVICE captures enum value "SERVICE"
	HeaderTypeSERVICE HeaderType = "SERVICE"
)

func NewHeaderType

func NewHeaderType(value HeaderType) *HeaderType

func (HeaderType) ContextValidate

func (m HeaderType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this header type based on context it is used

func (HeaderType) Pointer

func (m HeaderType) Pointer() *HeaderType

Pointer returns a pointer to a freshly-allocated HeaderType.

func (HeaderType) Validate

func (m HeaderType) Validate(formats strfmt.Registry) error

Validate validates this header type

type MatchType

type MatchType string

MatchType Match type in FrostFS EACL filter.

swagger:model MatchType

const (

	// MatchTypeSTRINGEQUAL captures enum value "STRING_EQUAL"
	MatchTypeSTRINGEQUAL MatchType = "STRING_EQUAL"

	// MatchTypeSTRINGNOTEQUAL captures enum value "STRING_NOT_EQUAL"
	MatchTypeSTRINGNOTEQUAL MatchType = "STRING_NOT_EQUAL"
)

func NewMatchType

func NewMatchType(value MatchType) *MatchType

func (MatchType) ContextValidate

func (m MatchType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this match type based on context it is used

func (MatchType) Pointer

func (m MatchType) Pointer() *MatchType

Pointer returns a pointer to a freshly-allocated MatchType.

func (MatchType) Validate

func (m MatchType) Validate(formats strfmt.Registry) error

Validate validates this match type

type ObjectBaseInfo

type ObjectBaseInfo struct {

	// address
	// Required: true
	Address *Address `json:"address"`

	// file path
	FilePath string `json:"filePath,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

ObjectBaseInfo Basic object information. Example: {"address":{"containerId":"5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv","objectId":"8N3o7Dtr6T1xteCt6eRwhpmJ7JhME58Hyu1dvaswuTDd"},"filePath":"/my/object/name.txt","name":"name.txt"}

swagger:model ObjectBaseInfo

func (*ObjectBaseInfo) ContextValidate

func (m *ObjectBaseInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this object base info based on the context it is used

func (*ObjectBaseInfo) MarshalBinary

func (m *ObjectBaseInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ObjectBaseInfo) UnmarshalBinary

func (m *ObjectBaseInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ObjectBaseInfo) Validate

func (m *ObjectBaseInfo) Validate(formats strfmt.Registry) error

Validate validates this object base info

type ObjectInfo

type ObjectInfo struct {

	// attributes
	// Required: true
	Attributes []*Attribute `json:"attributes"`

	// container Id
	// Required: true
	ContainerID *string `json:"containerId"`

	// object Id
	// Required: true
	ObjectID *string `json:"objectId"`

	// Object full payload size
	// Required: true
	ObjectSize *int64 `json:"objectSize"`

	// owner Id
	// Required: true
	OwnerID *string `json:"ownerId"`

	// Base64 encoded object payload
	Payload string `json:"payload,omitempty"`

	// Payload size in response
	// Required: true
	PayloadSize *int64 `json:"payloadSize"`
}

ObjectInfo Object information. Example: {"attribute":[{"key":"Timestamp","value":"1648810072"},{"key":"Name","value":"object"}],"containerId":"5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv","objectId":"8N3o7Dtr6T1xteCt6eRwhpmJ7JhME58Hyu1dvaswuTDd","ownerId":"NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM"}

swagger:model ObjectInfo

func (*ObjectInfo) ContextValidate

func (m *ObjectInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this object info based on the context it is used

func (*ObjectInfo) MarshalBinary

func (m *ObjectInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ObjectInfo) UnmarshalBinary

func (m *ObjectInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ObjectInfo) Validate

func (m *ObjectInfo) Validate(formats strfmt.Registry) error

Validate validates this object info

type ObjectList

type ObjectList struct {

	// objects
	// Required: true
	Objects []*ObjectBaseInfo `json:"objects"`

	// size
	// Required: true
	Size *int64 `json:"size"`
}

ObjectList List of objects. Example: {"objects":[{"address":{"containerId":"5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv","objectId":"8N3o7Dtr6T1xteCt6eRwhpmJ7JhME58Hyu1dvaswuTDd"},"name":"/my/object/name"},{"address":{"containerId":"5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv","objectId":"3GbmMWusaWgMHokWui2zDunxMTzButuQMVLbtL3cDn8s"},"name":"/my/object/some/other/name"}],"size":2}

swagger:model ObjectList

func (*ObjectList) ContextValidate

func (m *ObjectList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this object list based on the context it is used

func (*ObjectList) MarshalBinary

func (m *ObjectList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ObjectList) UnmarshalBinary

func (m *ObjectList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ObjectList) Validate

func (m *ObjectList) Validate(formats strfmt.Registry) error

Validate validates this object list

type ObjectUpload

type ObjectUpload struct {

	// attributes
	Attributes []*Attribute `json:"attributes"`

	// container Id
	// Required: true
	ContainerID *string `json:"containerId"`

	// file name
	// Required: true
	FileName *string `json:"fileName"`

	// payload
	Payload string `json:"payload,omitempty"`
}

ObjectUpload Request body to create object. Example: {"attributes":[{"key":"User-Attribute","value":"some-value"}],"containerId":"5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv","fileName":"myFile.txt","payload":"Y29udGVudCBvZiBmaWxl"}

swagger:model ObjectUpload

func (*ObjectUpload) ContextValidate

func (m *ObjectUpload) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this object upload based on the context it is used

func (*ObjectUpload) MarshalBinary

func (m *ObjectUpload) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ObjectUpload) UnmarshalBinary

func (m *ObjectUpload) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ObjectUpload) Validate

func (m *ObjectUpload) Validate(formats strfmt.Registry) error

Validate validates this object upload

type Operation

type Operation string

Operation Request's operation type to match in FrostFS EACL if the rule is applicable to a particular request.

swagger:model Operation

const (

	// OperationGET captures enum value "GET"
	OperationGET Operation = "GET"

	// OperationHEAD captures enum value "HEAD"
	OperationHEAD Operation = "HEAD"

	// OperationPUT captures enum value "PUT"
	OperationPUT Operation = "PUT"

	// OperationDELETE captures enum value "DELETE"
	OperationDELETE Operation = "DELETE"

	// OperationSEARCH captures enum value "SEARCH"
	OperationSEARCH Operation = "SEARCH"

	// OperationRANGE captures enum value "RANGE"
	OperationRANGE Operation = "RANGE"

	// OperationRANGEHASH captures enum value "RANGEHASH"
	OperationRANGEHASH Operation = "RANGEHASH"
)

func NewOperation

func NewOperation(value Operation) *Operation

func (Operation) ContextValidate

func (m Operation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this operation based on context it is used

func (Operation) Pointer

func (m Operation) Pointer() *Operation

Pointer returns a pointer to a freshly-allocated Operation.

func (Operation) Validate

func (m Operation) Validate(formats strfmt.Registry) error

Validate validates this operation

type Principal

type Principal string

Principal principal

swagger:model Principal

func (Principal) ContextValidate

func (m Principal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this principal based on context it is used

func (Principal) Validate

func (m Principal) Validate(formats strfmt.Registry) error

Validate validates this principal

type Record

type Record struct {

	// action
	// Required: true
	Action *Action `json:"action"`

	// filters
	// Required: true
	Filters []*Filter `json:"filters"`

	// operation
	// Required: true
	Operation *Operation `json:"operation"`

	// targets
	// Required: true
	Targets []*Target `json:"targets"`
}

Record A single FrostFS EACL rule. Example: {"action":"ALLOW","filters":[],"operation":"GET","targets":[{"keys":[],"role":"OTHERS"}]}

swagger:model Record

func (*Record) ContextValidate

func (m *Record) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this record based on the context it is used

func (*Record) MarshalBinary

func (m *Record) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Record) UnmarshalBinary

func (m *Record) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Record) Validate

func (m *Record) Validate(formats strfmt.Registry) error

Validate validates this record

type Role

type Role string

Role Role for target in EACL.

swagger:model Role

const (

	// RoleUSER captures enum value "USER"
	RoleUSER Role = "USER"

	// RoleSYSTEM captures enum value "SYSTEM"
	RoleSYSTEM Role = "SYSTEM"

	// RoleOTHERS captures enum value "OTHERS"
	RoleOTHERS Role = "OTHERS"

	// RoleKEYS captures enum value "KEYS"
	RoleKEYS Role = "KEYS"
)

func NewRole

func NewRole(value Role) *Role

func (Role) ContextValidate

func (m Role) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this role based on context it is used

func (Role) Pointer

func (m Role) Pointer() *Role

Pointer returns a pointer to a freshly-allocated Role.

func (Role) Validate

func (m Role) Validate(formats strfmt.Registry) error

Validate validates this role

type Rule

type Rule struct {

	// container Id
	ContainerID string `json:"containerId,omitempty"`

	// verb
	// Required: true
	Verb *Verb `json:"verb"`
}

Rule Container session token rule. Example: {"containerId":"6jvKJCQr6e47Yx8SsbSN3fNgzroUJVkY66Q9wqxYcAjc","verb":"DELETE"}

swagger:model Rule

func (*Rule) ContextValidate

func (m *Rule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rule based on the context it is used

func (*Rule) MarshalBinary

func (m *Rule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Rule) UnmarshalBinary

func (m *Rule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Rule) Validate

func (m *Rule) Validate(formats strfmt.Registry) error

Validate validates this rule

type SearchFilter

type SearchFilter struct {

	// key
	// Required: true
	Key *string `json:"key"`

	// match
	// Required: true
	Match *SearchMatch `json:"match"`

	// value
	// Required: true
	Value *string `json:"value"`
}

SearchFilter Search filter to find objects. Example: {"key":"FileName","match":"MatchStringEqual","value":"object-name"}

swagger:model SearchFilter

func (*SearchFilter) ContextValidate

func (m *SearchFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search filter based on the context it is used

func (*SearchFilter) MarshalBinary

func (m *SearchFilter) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchFilter) UnmarshalBinary

func (m *SearchFilter) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchFilter) Validate

func (m *SearchFilter) Validate(formats strfmt.Registry) error

Validate validates this search filter

type SearchFilters

type SearchFilters struct {

	// filters
	// Required: true
	Filters []*SearchFilter `json:"filters"`
}

SearchFilters List of SearchFilter elements. Example: {"filters":[{"key":"FileName","match":"MatchCommonPrefix","value":"some/prefix"},{"key":"CustomAttribute","match":"MatchStringEqual","value":"tag-value"}]}

swagger:model SearchFilters

func (*SearchFilters) ContextValidate

func (m *SearchFilters) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search filters based on the context it is used

func (*SearchFilters) MarshalBinary

func (m *SearchFilters) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchFilters) UnmarshalBinary

func (m *SearchFilters) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchFilters) Validate

func (m *SearchFilters) Validate(formats strfmt.Registry) error

Validate validates this search filters

type SearchMatch

type SearchMatch string

SearchMatch Search match type.

swagger:model SearchMatch

const (

	// SearchMatchMatchStringEqual captures enum value "MatchStringEqual"
	SearchMatchMatchStringEqual SearchMatch = "MatchStringEqual"

	// SearchMatchMatchStringNotEqual captures enum value "MatchStringNotEqual"
	SearchMatchMatchStringNotEqual SearchMatch = "MatchStringNotEqual"

	// SearchMatchMatchNotPresent captures enum value "MatchNotPresent"
	SearchMatchMatchNotPresent SearchMatch = "MatchNotPresent"

	// SearchMatchMatchCommonPrefix captures enum value "MatchCommonPrefix"
	SearchMatchMatchCommonPrefix SearchMatch = "MatchCommonPrefix"
)

func NewSearchMatch

func NewSearchMatch(value SearchMatch) *SearchMatch

func (SearchMatch) ContextValidate

func (m SearchMatch) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this search match based on context it is used

func (SearchMatch) Pointer

func (m SearchMatch) Pointer() *SearchMatch

Pointer returns a pointer to a freshly-allocated SearchMatch.

func (SearchMatch) Validate

func (m SearchMatch) Validate(formats strfmt.Registry) error

Validate validates this search match

type SuccessResponse

type SuccessResponse struct {

	// success
	// Required: true
	Success *bool `json:"success"`
}

SuccessResponse Success response. Example: {"success":true}

swagger:model SuccessResponse

func (*SuccessResponse) ContextValidate

func (m *SuccessResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this success response based on context it is used

func (*SuccessResponse) MarshalBinary

func (m *SuccessResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SuccessResponse) UnmarshalBinary

func (m *SuccessResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SuccessResponse) Validate

func (m *SuccessResponse) Validate(formats strfmt.Registry) error

Validate validates this success response

type Target

type Target struct {

	// keys
	// Required: true
	Keys []string `json:"keys"`

	// role
	// Required: true
	Role *Role `json:"role"`
}

Target Target to apply the ACL rule. Can be a subject's role class or a list of public keys to match (KEYS role). Example: {"keys":["021dc56fc6d81d581ae7605a8e00e0e0bab6cbad566a924a527339475a97a8e38e"],"role":"KEYS"}

swagger:model Target

func (*Target) ContextValidate

func (m *Target) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this target based on the context it is used

func (*Target) MarshalBinary

func (m *Target) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Target) UnmarshalBinary

func (m *Target) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Target) Validate

func (m *Target) Validate(formats strfmt.Registry) error

Validate validates this target

type TokenResponse

type TokenResponse struct {

	// name
	Name string `json:"name,omitempty"`

	// token
	// Required: true
	Token *string `json:"token"`

	// type
	// Required: true
	Type *TokenType `json:"type"`
}

TokenResponse Base64 encoded marshaled token (for container or for object operations). Example: [{"token":"ClYKBAgCEA0aCAgDEAEiAggDGggIARACIgIIAxoICAIQAiICCAMaCAgDEAIiAggDGggIBBACIgIIAxoICAUQAiICCAMaCAgGEAIiAggDGggIBxACIgIIAxIbChk182WEDFuAqq3nssrGOaH0NK0ZhzF8bu+YGgQIaBgE","type":"object"},{"token":"ChCpanIBJCpJuJz42KOmGMSnEhsKGTWquaX2Lq6GhhO4faOYkLD0f9WkXuYJlq4aBAhnGAMiIQJgFcIEghQB5lq3AJZOVswInwc1IGhlQ7NCUh4DFO3UATIECAEQAQ==","type":"container"}]

swagger:model TokenResponse

func (*TokenResponse) ContextValidate

func (m *TokenResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this token response based on the context it is used

func (*TokenResponse) MarshalBinary

func (m *TokenResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TokenResponse) UnmarshalBinary

func (m *TokenResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TokenResponse) Validate

func (m *TokenResponse) Validate(formats strfmt.Registry) error

Validate validates this token response

type TokenType

type TokenType string

TokenType Type of token.

swagger:model TokenType

const (

	// TokenTypeObject captures enum value "object"
	TokenTypeObject TokenType = "object"

	// TokenTypeContainer captures enum value "container"
	TokenTypeContainer TokenType = "container"
)

func NewTokenType

func NewTokenType(value TokenType) *TokenType

func (TokenType) ContextValidate

func (m TokenType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this token type based on context it is used

func (TokenType) Pointer

func (m TokenType) Pointer() *TokenType

Pointer returns a pointer to a freshly-allocated TokenType.

func (TokenType) Validate

func (m TokenType) Validate(formats strfmt.Registry) error

Validate validates this token type

type Verb

type Verb string

Verb Verb that describes the allowed container operation for token.

swagger:model Verb

const (

	// VerbPUT captures enum value "PUT"
	VerbPUT Verb = "PUT"

	// VerbDELETE captures enum value "DELETE"
	VerbDELETE Verb = "DELETE"

	// VerbSETEACL captures enum value "SETEACL"
	VerbSETEACL Verb = "SETEACL"
)

func NewVerb

func NewVerb(value Verb) *Verb

func (Verb) ContextValidate

func (m Verb) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this verb based on context it is used

func (Verb) Pointer

func (m Verb) Pointer() *Verb

Pointer returns a pointer to a freshly-allocated Verb.

func (Verb) Validate

func (m Verb) Validate(formats strfmt.Registry) error

Validate validates this verb

Jump to

Keyboard shortcuts

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