Documentation
¶
Index ¶
- Variables
- type Flag
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)
- func (m *Policy) GetId() string
- func (m *Policy) GetMembers() []string
- func (m *Policy) GetName() string
- func (m *Policy) GetProjects() []string
- func (m *Policy) GetStatements() []*Statement
- func (m *Policy) GetType() Type
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) String() string
- func (m *Policy) XXX_DiscardUnknown()
- func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Policy) XXX_Merge(src proto.Message)
- func (m *Policy) XXX_Size() int
- func (m *Policy) XXX_Unmarshal(b []byte) error
- type Project
- func (*Project) Descriptor() ([]byte, []int)
- func (m *Project) GetId() string
- func (m *Project) GetName() string
- func (m *Project) GetProjects() []string
- func (m *Project) GetType() Type
- func (*Project) ProtoMessage()
- func (m *Project) Reset()
- func (m *Project) String() string
- func (m *Project) XXX_DiscardUnknown()
- func (m *Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Project) XXX_Merge(src proto.Message)
- func (m *Project) XXX_Size() int
- func (m *Project) XXX_Unmarshal(b []byte) error
- type Role
- func (*Role) Descriptor() ([]byte, []int)
- func (m *Role) GetActions() []string
- func (m *Role) GetId() string
- func (m *Role) GetName() string
- func (m *Role) GetProjects() []string
- func (m *Role) GetType() Type
- func (*Role) ProtoMessage()
- func (m *Role) Reset()
- func (m *Role) String() string
- func (m *Role) XXX_DiscardUnknown()
- func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Role) XXX_Merge(src proto.Message)
- func (m *Role) XXX_Size() int
- func (m *Role) XXX_Unmarshal(b []byte) error
- type Statement
- func (*Statement) Descriptor() ([]byte, []int)
- func (m *Statement) GetActions() []string
- func (m *Statement) GetEffect() Statement_Effect
- func (m *Statement) GetProjects() []string
- func (m *Statement) GetResources() []string
- func (m *Statement) GetRole() string
- func (*Statement) ProtoMessage()
- func (m *Statement) Reset()
- func (m *Statement) String() string
- func (m *Statement) XXX_DiscardUnknown()
- func (m *Statement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Statement) XXX_Merge(src proto.Message)
- func (m *Statement) XXX_Size() int
- func (m *Statement) XXX_Unmarshal(b []byte) error
- type Statement_Effect
- type Team
- func (*Team) Descriptor() ([]byte, []int)
- func (m *Team) GetId() string
- func (m *Team) GetName() string
- func (m *Team) GetProjects() []string
- func (*Team) ProtoMessage()
- func (m *Team) Reset()
- func (m *Team) String() string
- func (m *Team) XXX_DiscardUnknown()
- func (m *Team) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Team) XXX_Merge(src proto.Message)
- func (m *Team) XXX_Size() int
- func (m *Team) XXX_Unmarshal(b []byte) error
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetActive() bool
- func (m *Token) GetCreatedAt() string
- func (m *Token) GetId() string
- func (m *Token) GetName() string
- func (m *Token) GetProjects() []string
- func (m *Token) GetUpdatedAt() string
- func (m *Token) GetValue() string
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) String() string
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
- type Type
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetId() string
- func (m *User) GetMembershipId() stringdeprecated
- func (m *User) GetName() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type Version
- func (*Version) Descriptor() ([]byte, []int)
- func (m *Version) GetMajor() Version_VersionNumber
- func (m *Version) GetMinor() Version_VersionNumber
- func (*Version) ProtoMessage()
- func (m *Version) Reset()
- func (m *Version) String() string
- func (m *Version) XXX_DiscardUnknown()
- func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Version) XXX_Merge(src proto.Message)
- func (m *Version) XXX_Size() int
- func (m *Version) XXX_Unmarshal(b []byte) error
- type Version_VersionNumber
Constants ¶
This section is empty.
Variables ¶
View Source
var Flag_name = map[int32]string{
0: "VERSION_2_0",
1: "VERSION_2_1",
}
View Source
var Flag_value = map[string]int32{
"VERSION_2_0": 0,
"VERSION_2_1": 1,
}
View Source
var Statement_Effect_name = map[int32]string{
0: "ALLOW",
1: "DENY",
}
View Source
var Statement_Effect_value = map[string]int32{
"ALLOW": 0,
"DENY": 1,
}
View Source
var Type_name = map[int32]string{
0: "CHEF_MANAGED",
1: "CUSTOM",
}
View Source
var Type_value = map[string]int32{
"CHEF_MANAGED": 0,
"CUSTOM": 1,
}
View Source
var Version_VersionNumber_name = map[int32]string{
0: "V0",
1: "V1",
2: "V2",
}
View Source
var Version_VersionNumber_value = map[string]int32{
"V0": 0,
"V1": 1,
"V2": 2,
}
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Type Type `protobuf:"varint,3,opt,name=type,proto3,enum=chef.automate.api.iam.v2beta.Type" json:"type,omitempty"`
Members []string `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"`
Statements []*Statement `protobuf:"bytes,5,rep,name=statements,proto3" json:"statements,omitempty"`
Projects []string `protobuf:"bytes,6,rep,name=projects,proto3" json:"projects,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Policy) Descriptor ¶
func (*Policy) GetMembers ¶
func (*Policy) GetProjects ¶
func (*Policy) GetStatements ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) XXX_DiscardUnknown ¶
func (m *Policy) XXX_DiscardUnknown()
func (*Policy) XXX_Marshal ¶
func (*Policy) XXX_Unmarshal ¶
type Project ¶
type Project struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Type Type `protobuf:"varint,3,opt,name=type,proto3,enum=chef.automate.api.iam.v2beta.Type" json:"type,omitempty"`
Projects []string `protobuf:"bytes,4,rep,name=projects,proto3" json:"projects,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Project) Descriptor ¶
func (*Project) GetProjects ¶
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) XXX_DiscardUnknown ¶
func (m *Project) XXX_DiscardUnknown()
func (*Project) XXX_Marshal ¶
func (*Project) XXX_Unmarshal ¶
type Role ¶
type Role struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Type Type `protobuf:"varint,3,opt,name=type,proto3,enum=chef.automate.api.iam.v2beta.Type" json:"type,omitempty"`
Actions []string `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"`
Projects []string `protobuf:"bytes,5,rep,name=projects,proto3" json:"projects,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Role) Descriptor ¶
func (*Role) GetActions ¶
func (*Role) GetProjects ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) XXX_DiscardUnknown ¶
func (m *Role) XXX_DiscardUnknown()
func (*Role) XXX_Unmarshal ¶
type Statement ¶
type Statement struct {
Effect Statement_Effect `protobuf:"varint,1,opt,name=effect,proto3,enum=chef.automate.api.iam.v2beta.Statement_Effect" json:"effect,omitempty"`
// inline definitions
Actions []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
// references
Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"`
// Note: these are for display only, not to be set in CreatePolicy/UpdatePolicy
Resources []string `protobuf:"bytes,5,rep,name=resources,proto3" json:"resources,omitempty"`
Projects []string `protobuf:"bytes,6,rep,name=projects,proto3" json:"projects,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Statement) Descriptor ¶
func (*Statement) GetActions ¶
func (*Statement) GetEffect ¶
func (m *Statement) GetEffect() Statement_Effect
func (*Statement) GetProjects ¶
func (*Statement) GetResources ¶
func (*Statement) ProtoMessage ¶
func (*Statement) ProtoMessage()
func (*Statement) XXX_DiscardUnknown ¶
func (m *Statement) XXX_DiscardUnknown()
func (*Statement) XXX_Marshal ¶
func (*Statement) XXX_Unmarshal ¶
type Statement_Effect ¶
type Statement_Effect int32
const ( Statement_ALLOW Statement_Effect = 0 Statement_DENY Statement_Effect = 1 )
func (Statement_Effect) EnumDescriptor ¶
func (Statement_Effect) EnumDescriptor() ([]byte, []int)
func (Statement_Effect) String ¶
func (x Statement_Effect) String() string
type Team ¶
type Team struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Projects []string `protobuf:"bytes,3,rep,name=projects,proto3" json:"projects,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Team) Descriptor ¶
func (*Team) GetProjects ¶
func (*Team) ProtoMessage ¶
func (*Team) ProtoMessage()
func (*Team) XXX_DiscardUnknown ¶
func (m *Team) XXX_DiscardUnknown()
func (*Team) XXX_Unmarshal ¶
type Token ¶
type Token struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"`
CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
Projects []string `protobuf:"bytes,7,rep,name=projects,proto3" json:"projects,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Token) Descriptor ¶
func (*Token) GetCreatedAt ¶
func (*Token) GetProjects ¶
func (*Token) GetUpdatedAt ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
type User ¶
type User struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// TODO (tc): Will remove post-GA
MembershipId string `protobuf:"bytes,3,opt,name=membership_id,json=membershipId,proto3" json:"membership_id,omitempty"` // Deprecated: Do not use.
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*User) Descriptor ¶
func (*User) GetMembershipId
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type Version ¶
type Version struct {
Major Version_VersionNumber `protobuf:"varint,1,opt,name=major,proto3,enum=chef.automate.api.iam.v2beta.Version_VersionNumber" json:"major,omitempty"`
Minor Version_VersionNumber `protobuf:"varint,2,opt,name=minor,proto3,enum=chef.automate.api.iam.v2beta.Version_VersionNumber" json:"minor,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
the only values that may be returned by GetPolicyVersion
func (*Version) Descriptor ¶
func (*Version) GetMajor ¶
func (m *Version) GetMajor() Version_VersionNumber
func (*Version) GetMinor ¶
func (m *Version) GetMinor() Version_VersionNumber
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) XXX_DiscardUnknown ¶
func (m *Version) XXX_DiscardUnknown()
func (*Version) XXX_Marshal ¶
func (*Version) XXX_Unmarshal ¶
type Version_VersionNumber ¶
type Version_VersionNumber int32
const ( Version_V0 Version_VersionNumber = 0 Version_V1 Version_VersionNumber = 1 Version_V2 Version_VersionNumber = 2 )
func (Version_VersionNumber) EnumDescriptor ¶
func (Version_VersionNumber) EnumDescriptor() ([]byte, []int)
func (Version_VersionNumber) String ¶
func (x Version_VersionNumber) String() string
Click to show internal directories.
Click to hide internal directories.