forked from TrueCloudLab/frostfs-api-go
Move api-v2 files into v2 subdir
This subdir contains generated proto files and small wrappers.
This commit is contained in:
parent
0ee1c3653d
commit
1f143e54bd
48 changed files with 1479 additions and 1515 deletions
89
v2/acl/types.go
Normal file
89
v2/acl/types.go
Normal file
|
@ -0,0 +1,89 @@
|
|||
package acl
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/refs"
|
||||
)
|
||||
|
||||
// SetContainerId sets container identifier of the eACL table.
|
||||
func (m *EACLTable) SetContainerId(v *refs.ContainerID) {
|
||||
if m != nil {
|
||||
m.ContainerId = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetRecords sets record list of the eACL table.
|
||||
func (m *EACLTable) SetRecords(v []*EACLRecord) {
|
||||
if m != nil {
|
||||
m.Records = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetOperation sets operation of the eACL record.
|
||||
func (m *EACLRecord) SetOperation(v EACLRecord_Operation) {
|
||||
if m != nil {
|
||||
m.Operation = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetAction sets action of the eACL record.
|
||||
func (m *EACLRecord) SetAction(v EACLRecord_Action) {
|
||||
if m != nil {
|
||||
m.Action = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetFilters sets filter list of the eACL record.
|
||||
func (m *EACLRecord) SetFilters(v []*EACLRecord_FilterInfo) {
|
||||
if m != nil {
|
||||
m.Filters = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetTargets sets target list of the eACL record.
|
||||
func (m *EACLRecord) SetTargets(v []*EACLRecord_TargetInfo) {
|
||||
if m != nil {
|
||||
m.Targets = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetHeader sets header type of the eACL filter.
|
||||
func (m *EACLRecord_FilterInfo) SetHeader(v EACLRecord_FilterInfo_Header) {
|
||||
if m != nil {
|
||||
m.Header = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetMatchType sets match type of the eACL filter.
|
||||
func (m *EACLRecord_FilterInfo) SetMatchType(v EACLRecord_FilterInfo_MatchType) {
|
||||
if m != nil {
|
||||
m.MatchType = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetHeaderName sets header name of the eACL filter.
|
||||
func (m *EACLRecord_FilterInfo) SetHeaderName(v string) {
|
||||
if m != nil {
|
||||
m.HeaderName = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetHeaderVal sets header value of the eACL filter.
|
||||
func (m *EACLRecord_FilterInfo) SetHeaderVal(v string) {
|
||||
if m != nil {
|
||||
m.HeaderVal = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetTarget sets target group of the eACL target.
|
||||
func (m *EACLRecord_TargetInfo) SetTarget(v Target) {
|
||||
if m != nil {
|
||||
m.Target = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetKeyList sets key list of the eACL target.
|
||||
func (m *EACLRecord_TargetInfo) SetKeyList(v [][]byte) {
|
||||
if m != nil {
|
||||
m.KeyList = v
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue