Documentation
¶
Index ¶
- Variables
- type Condition
- func (*Condition) Descriptor() ([]byte, []int)deprecated
- func (x *Condition) GetAttribute() ConditionAttribute
- func (x *Condition) GetOperator() ConditionOperator
- func (x *Condition) GetValues() []string
- func (*Condition) ProtoMessage()
- func (x *Condition) ProtoReflect() protoreflect.Message
- func (x *Condition) Reset()
- func (x *Condition) String() string
- type ConditionAttribute
- func (ConditionAttribute) Descriptor() protoreflect.EnumDescriptor
- func (x ConditionAttribute) Enum() *ConditionAttribute
- func (ConditionAttribute) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConditionAttribute) Number() protoreflect.EnumNumber
- func (x ConditionAttribute) String() string
- func (ConditionAttribute) Type() protoreflect.EnumType
- type ConditionOperator
- func (ConditionOperator) Descriptor() protoreflect.EnumDescriptor
- func (x ConditionOperator) Enum() *ConditionOperator
- func (ConditionOperator) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConditionOperator) Number() protoreflect.EnumNumber
- func (x ConditionOperator) String() string
- func (ConditionOperator) Type() protoreflect.EnumType
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)deprecated
- func (x *Policy) GetId() string
- func (x *Policy) GetMembers() []string
- func (x *Policy) GetName() string
- func (x *Policy) GetProjects() []string
- func (x *Policy) GetStatements() []*Statement
- func (x *Policy) GetType() Type
- func (*Policy) ProtoMessage()
- func (x *Policy) ProtoReflect() protoreflect.Message
- func (x *Policy) Reset()
- func (x *Policy) String() string
- type Project
- func (*Project) Descriptor() ([]byte, []int)deprecated
- func (x *Project) GetId() string
- func (x *Project) GetName() string
- func (x *Project) GetStatus() ProjectRulesStatus
- func (x *Project) GetType() Type
- func (*Project) ProtoMessage()
- func (x *Project) ProtoReflect() protoreflect.Message
- func (x *Project) Reset()
- func (x *Project) String() string
- type ProjectRulesStatus
- func (ProjectRulesStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ProjectRulesStatus) Enum() *ProjectRulesStatus
- func (ProjectRulesStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProjectRulesStatus) Number() protoreflect.EnumNumber
- func (x ProjectRulesStatus) String() string
- func (ProjectRulesStatus) Type() protoreflect.EnumType
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetActions() []string
- func (x *Role) GetId() string
- func (x *Role) GetName() string
- func (x *Role) GetProjects() []string
- func (x *Role) GetType() Type
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)deprecated
- func (x *Rule) GetConditions() []*Condition
- func (x *Rule) GetId() string
- func (x *Rule) GetName() string
- func (x *Rule) GetProjectId() string
- func (x *Rule) GetStatus() RuleStatus
- func (x *Rule) GetType() RuleType
- func (*Rule) ProtoMessage()
- func (x *Rule) ProtoReflect() protoreflect.Message
- func (x *Rule) Reset()
- func (x *Rule) String() string
- type RuleStatus
- type RuleType
- type Statement
- func (*Statement) Descriptor() ([]byte, []int)deprecated
- func (x *Statement) GetActions() []string
- func (x *Statement) GetEffect() Statement_Effect
- func (x *Statement) GetProjects() []string
- func (x *Statement) GetResources() []string
- func (x *Statement) GetRole() string
- func (*Statement) ProtoMessage()
- func (x *Statement) ProtoReflect() protoreflect.Message
- func (x *Statement) Reset()
- func (x *Statement) String() string
- type Statement_Effect
- func (Statement_Effect) Descriptor() protoreflect.EnumDescriptor
- func (x Statement_Effect) Enum() *Statement_Effect
- func (Statement_Effect) EnumDescriptor() ([]byte, []int)deprecated
- func (x Statement_Effect) Number() protoreflect.EnumNumber
- func (x Statement_Effect) String() string
- func (Statement_Effect) Type() protoreflect.EnumType
- type Team
- type Token
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) GetActive() bool
- func (x *Token) GetCreatedAt() string
- func (x *Token) GetId() string
- func (x *Token) GetName() string
- func (x *Token) GetProjects() []string
- func (x *Token) GetUpdatedAt() string
- func (x *Token) GetValue() string
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (x *Token) String() string
- type Type
- type User
- type Version
- func (*Version) Descriptor() ([]byte, []int)deprecated
- func (x *Version) GetMajor() Version_VersionNumber
- func (x *Version) GetMinor() Version_VersionNumber
- func (*Version) ProtoMessage()
- func (x *Version) ProtoReflect() protoreflect.Message
- func (x *Version) Reset()
- func (x *Version) String() string
- type Version_VersionNumber
- func (Version_VersionNumber) Descriptor() protoreflect.EnumDescriptor
- func (x Version_VersionNumber) Enum() *Version_VersionNumber
- func (Version_VersionNumber) EnumDescriptor() ([]byte, []int)deprecated
- func (x Version_VersionNumber) Number() protoreflect.EnumNumber
- func (x Version_VersionNumber) String() string
- func (Version_VersionNumber) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( Type_name = map[int32]string{ 0: "CHEF_MANAGED", 1: "CUSTOM", } Type_value = map[string]int32{ "CHEF_MANAGED": 0, "CUSTOM": 1, } )
Enum value maps for Type.
var ( Statement_Effect_name = map[int32]string{ 0: "ALLOW", 1: "DENY", } Statement_Effect_value = map[string]int32{ "ALLOW": 0, "DENY": 1, } )
Enum value maps for Statement_Effect.
var ( Version_VersionNumber_name = map[int32]string{ 0: "V0", 1: "V1", 2: "V2", } Version_VersionNumber_value = map[string]int32{ "V0": 0, "V1": 1, "V2": 2, } )
Enum value maps for Version_VersionNumber.
var ( RuleType_name = map[int32]string{ 0: "RULE_TYPE_UNSET", 1: "NODE", 2: "EVENT", } RuleType_value = map[string]int32{ "RULE_TYPE_UNSET": 0, "NODE": 1, "EVENT": 2, } )
Enum value maps for RuleType.
var ( ConditionAttribute_name = map[int32]string{ 0: "CONDITION_ATTRIBUTE_UNSET", 1: "CHEF_SERVER", 2: "CHEF_ORGANIZATION", 3: "ENVIRONMENT", 4: "CHEF_ROLE", 5: "CHEF_TAG", 6: "CHEF_POLICY_GROUP", 7: "CHEF_POLICY_NAME", } ConditionAttribute_value = map[string]int32{ "CONDITION_ATTRIBUTE_UNSET": 0, "CHEF_SERVER": 1, "CHEF_ORGANIZATION": 2, "ENVIRONMENT": 3, "CHEF_ROLE": 4, "CHEF_TAG": 5, "CHEF_POLICY_GROUP": 6, "CHEF_POLICY_NAME": 7, } )
Enum value maps for ConditionAttribute.
var ( ConditionOperator_name = map[int32]string{ 0: "CONDITION_OPERATOR_UNSET", 1: "MEMBER_OF", 2: "EQUALS", } ConditionOperator_value = map[string]int32{ "CONDITION_OPERATOR_UNSET": 0, "MEMBER_OF": 1, "EQUALS": 2, } )
Enum value maps for ConditionOperator.
var ( RuleStatus_name = map[int32]string{ 0: "RULE_STATUS_UNSET", 1: "STAGED", 2: "APPLIED", } RuleStatus_value = map[string]int32{ "RULE_STATUS_UNSET": 0, "STAGED": 1, "APPLIED": 2, } )
Enum value maps for RuleStatus.
var ( ProjectRulesStatus_name = map[int32]string{ 0: "PROJECT_RULES_STATUS_UNSET", 1: "RULES_APPLIED", 2: "EDITS_PENDING", 3: "NO_RULES", } ProjectRulesStatus_value = map[string]int32{ "PROJECT_RULES_STATUS_UNSET": 0, "RULES_APPLIED": 1, "EDITS_PENDING": 2, "NO_RULES": 3, } )
Enum value maps for ProjectRulesStatus.
var File_external_iam_v2_common_policy_proto protoreflect.FileDescriptor
var File_external_iam_v2_common_rules_proto protoreflect.FileDescriptor
var File_external_iam_v2_common_teams_proto protoreflect.FileDescriptor
var File_external_iam_v2_common_tokens_proto protoreflect.FileDescriptor
var File_external_iam_v2_common_users_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition struct { // Represents a property of an ingested resource. Depends on the rule type. Attribute ConditionAttribute `protobuf:"varint,1,opt,name=attribute,proto3,enum=chef.automate.api.iam.v2.ConditionAttribute" json:"attribute,omitempty"` // The value(s) of the attribute that an ingested resource must match. Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` // Whether the attribute matches a single value (`EQUALS`) or // matches at least one of a set of values (`MEMBER_OF`). Operator ConditionOperator `protobuf:"varint,3,opt,name=operator,proto3,enum=chef.automate.api.iam.v2.ConditionOperator" json:"operator,omitempty"` // contains filtered or unexported fields }
func (*Condition) Descriptor
deprecated
func (*Condition) GetAttribute ¶
func (x *Condition) GetAttribute() ConditionAttribute
func (*Condition) GetOperator ¶
func (x *Condition) GetOperator() ConditionOperator
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) ProtoReflect ¶
func (x *Condition) ProtoReflect() protoreflect.Message
type ConditionAttribute ¶
type ConditionAttribute int32
const ( ConditionAttribute_CONDITION_ATTRIBUTE_UNSET ConditionAttribute = 0 ConditionAttribute_CHEF_SERVER ConditionAttribute = 1 ConditionAttribute_CHEF_ORGANIZATION ConditionAttribute = 2 ConditionAttribute_ENVIRONMENT ConditionAttribute = 3 ConditionAttribute_CHEF_ROLE ConditionAttribute = 4 ConditionAttribute_CHEF_TAG ConditionAttribute = 5 ConditionAttribute_CHEF_POLICY_GROUP ConditionAttribute = 6 ConditionAttribute_CHEF_POLICY_NAME ConditionAttribute = 7 )
func (ConditionAttribute) Descriptor ¶
func (ConditionAttribute) Descriptor() protoreflect.EnumDescriptor
func (ConditionAttribute) Enum ¶
func (x ConditionAttribute) Enum() *ConditionAttribute
func (ConditionAttribute) EnumDescriptor
deprecated
func (ConditionAttribute) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConditionAttribute.Descriptor instead.
func (ConditionAttribute) Number ¶
func (x ConditionAttribute) Number() protoreflect.EnumNumber
func (ConditionAttribute) String ¶
func (x ConditionAttribute) String() string
func (ConditionAttribute) Type ¶
func (ConditionAttribute) Type() protoreflect.EnumType
type ConditionOperator ¶
type ConditionOperator int32
const ( ConditionOperator_CONDITION_OPERATOR_UNSET ConditionOperator = 0 ConditionOperator_MEMBER_OF ConditionOperator = 1 ConditionOperator_EQUALS ConditionOperator = 2 )
func (ConditionOperator) Descriptor ¶
func (ConditionOperator) Descriptor() protoreflect.EnumDescriptor
func (ConditionOperator) Enum ¶
func (x ConditionOperator) Enum() *ConditionOperator
func (ConditionOperator) EnumDescriptor
deprecated
func (ConditionOperator) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConditionOperator.Descriptor instead.
func (ConditionOperator) Number ¶
func (x ConditionOperator) Number() protoreflect.EnumNumber
func (ConditionOperator) String ¶
func (x ConditionOperator) String() string
func (ConditionOperator) Type ¶
func (ConditionOperator) Type() protoreflect.EnumType
type Policy ¶
type Policy struct { // Name for the policy. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Unique ID. Cannot be changed. Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // This doc-comment is ignored for an enum. Type Type `protobuf:"varint,3,opt,name=type,proto3,enum=chef.automate.api.iam.v2.Type" json:"type,omitempty"` // Members affected by this policy. May be empty. Members []string `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"` // Statements for the policy. Will contain one or more. Statements []*Statement `protobuf:"bytes,5,rep,name=statements,proto3" json:"statements,omitempty"` // List of projects this policy belongs to. May be empty. Projects []string `protobuf:"bytes,6,rep,name=projects,proto3" json:"projects,omitempty"` // contains filtered or unexported fields }
func (*Policy) Descriptor
deprecated
func (*Policy) GetMembers ¶
func (*Policy) GetProjects ¶
func (*Policy) GetStatements ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) ProtoReflect ¶
func (x *Policy) ProtoReflect() protoreflect.Message
type Project ¶
type Project struct { // Name for the project. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Unique ID. Cannot be changed. Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // Whether this policy is user created (`CUSTOM`) or chef managed (`CHEF_MANAGED`). Type Type `protobuf:"varint,3,opt,name=type,proto3,enum=chef.automate.api.iam.v2.Type" json:"type,omitempty"` // The current status of the rules for this project. Status ProjectRulesStatus `protobuf:"varint,4,opt,name=status,proto3,enum=chef.automate.api.iam.v2.ProjectRulesStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Project) Descriptor
deprecated
func (*Project) GetStatus ¶
func (x *Project) GetStatus() ProjectRulesStatus
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
type ProjectRulesStatus ¶
type ProjectRulesStatus int32
const ( ProjectRulesStatus_PROJECT_RULES_STATUS_UNSET ProjectRulesStatus = 0 ProjectRulesStatus_RULES_APPLIED ProjectRulesStatus = 1 ProjectRulesStatus_EDITS_PENDING ProjectRulesStatus = 2 ProjectRulesStatus_NO_RULES ProjectRulesStatus = 3 )
func (ProjectRulesStatus) Descriptor ¶
func (ProjectRulesStatus) Descriptor() protoreflect.EnumDescriptor
func (ProjectRulesStatus) Enum ¶
func (x ProjectRulesStatus) Enum() *ProjectRulesStatus
func (ProjectRulesStatus) EnumDescriptor
deprecated
func (ProjectRulesStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProjectRulesStatus.Descriptor instead.
func (ProjectRulesStatus) Number ¶
func (x ProjectRulesStatus) Number() protoreflect.EnumNumber
func (ProjectRulesStatus) String ¶
func (x ProjectRulesStatus) String() string
func (ProjectRulesStatus) Type ¶
func (ProjectRulesStatus) Type() protoreflect.EnumType
type Role ¶
type Role struct { // Name for the role. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Unique ID. Cannot be changed. Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // Whether this policy is user created (`CUSTOM`) or chef managed (`CHEF_MANAGED`). Type Type `protobuf:"varint,3,opt,name=type,proto3,enum=chef.automate.api.iam.v2.Type" json:"type,omitempty"` // List of actions this role scopes to. Will contain one or more. Actions []string `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` // List of projects this role belongs to. May be empty. Projects []string `protobuf:"bytes,5,rep,name=projects,proto3" json:"projects,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetActions ¶
func (*Role) GetProjects ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type Rule ¶
type Rule struct { // Unique ID. Cannot be changed. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Unique ID of the project this rule belongs to. Cannot be changed. ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // Name for the project rule. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Whether the rule applies to ingested `NODE` or `EVENT resources. // Cannot be changed. Type RuleType `protobuf:"varint,4,opt,name=type,proto3,enum=chef.automate.api.iam.v2.RuleType" json:"type,omitempty"` // Conditions that ingested resources must match to belong to the project. // Will contain one or more. Conditions []*Condition `protobuf:"bytes,5,rep,name=conditions,proto3" json:"conditions,omitempty"` // Whether the rule is `STAGED` (not in effect) or `APPLIED` (in effect). Status RuleStatus `protobuf:"varint,6,opt,name=status,proto3,enum=chef.automate.api.iam.v2.RuleStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Rule) Descriptor
deprecated
func (*Rule) GetConditions ¶
func (*Rule) GetProjectId ¶
func (*Rule) GetStatus ¶
func (x *Rule) GetStatus() RuleStatus
func (*Rule) ProtoMessage ¶
func (*Rule) ProtoMessage()
func (*Rule) ProtoReflect ¶
func (x *Rule) ProtoReflect() protoreflect.Message
type RuleStatus ¶
type RuleStatus int32
const ( RuleStatus_RULE_STATUS_UNSET RuleStatus = 0 RuleStatus_STAGED RuleStatus = 1 RuleStatus_APPLIED RuleStatus = 2 )
func (RuleStatus) Descriptor ¶
func (RuleStatus) Descriptor() protoreflect.EnumDescriptor
func (RuleStatus) Enum ¶
func (x RuleStatus) Enum() *RuleStatus
func (RuleStatus) EnumDescriptor
deprecated
func (RuleStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use RuleStatus.Descriptor instead.
func (RuleStatus) Number ¶
func (x RuleStatus) Number() protoreflect.EnumNumber
func (RuleStatus) String ¶
func (x RuleStatus) String() string
func (RuleStatus) Type ¶
func (RuleStatus) Type() protoreflect.EnumType
type RuleType ¶
type RuleType int32
func (RuleType) Descriptor ¶
func (RuleType) Descriptor() protoreflect.EnumDescriptor
func (RuleType) EnumDescriptor
deprecated
func (RuleType) Number ¶
func (x RuleType) Number() protoreflect.EnumNumber
func (RuleType) Type ¶
func (RuleType) Type() protoreflect.EnumType
type Statement ¶
type Statement struct { // This doc-comment is ignored for an enum. Effect Statement_Effect `protobuf:"varint,1,opt,name=effect,proto3,enum=chef.automate.api.iam.v2.Statement_Effect" json:"effect,omitempty"` // Actions defined inline. May be empty. // Best practices recommend that you use custom roles rather than inline actions where practical. Actions []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` // The role defines a set of actions that the statement is scoped to. Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` // DEPRECATED: Resources defined inline. Use projects instead. Resources []string `protobuf:"bytes,5,rep,name=resources,proto3" json:"resources,omitempty"` // The project list defines the set of resources that the statement is scoped to. May be empty. Projects []string `protobuf:"bytes,6,rep,name=projects,proto3" json:"projects,omitempty"` // contains filtered or unexported fields }
func (*Statement) Descriptor
deprecated
func (*Statement) GetActions ¶
func (*Statement) GetEffect ¶
func (x *Statement) GetEffect() Statement_Effect
func (*Statement) GetProjects ¶
func (*Statement) GetResources ¶
func (*Statement) ProtoMessage ¶
func (*Statement) ProtoMessage()
func (*Statement) ProtoReflect ¶
func (x *Statement) ProtoReflect() protoreflect.Message
type Statement_Effect ¶
type Statement_Effect int32
const ( Statement_ALLOW Statement_Effect = 0 Statement_DENY Statement_Effect = 1 )
func (Statement_Effect) Descriptor ¶
func (Statement_Effect) Descriptor() protoreflect.EnumDescriptor
func (Statement_Effect) Enum ¶
func (x Statement_Effect) Enum() *Statement_Effect
func (Statement_Effect) EnumDescriptor
deprecated
func (Statement_Effect) EnumDescriptor() ([]byte, []int)
Deprecated: Use Statement_Effect.Descriptor instead.
func (Statement_Effect) Number ¶
func (x Statement_Effect) Number() protoreflect.EnumNumber
func (Statement_Effect) String ¶
func (x Statement_Effect) String() string
func (Statement_Effect) Type ¶
func (Statement_Effect) Type() protoreflect.EnumType
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"` // contains filtered or unexported fields }
func (*Team) Descriptor
deprecated
func (*Team) GetProjects ¶
func (*Team) ProtoMessage ¶
func (*Team) ProtoMessage()
func (*Team) ProtoReflect ¶
func (x *Team) ProtoReflect() protoreflect.Message
type Token ¶
type Token struct { // Unique ID. Cannot be changed. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Name for the token. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Unique, optionally user-specified value. Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // Active state. Defaults to true. // If set to false, token will not authenticate. Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"` // Created timestamp. CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Updated timestamp. UpdatedAt string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // List of projects this token belongs to. May be empty. Projects []string `protobuf:"bytes,7,rep,name=projects,proto3" json:"projects,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetCreatedAt ¶
func (*Token) GetProjects ¶
func (*Token) GetUpdatedAt ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type Type ¶
type Type int32
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
type User ¶
type User struct { // Display name for local user. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Unique ID. Cannot be changed. Used to log in. Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // Unique ID used to add local users to local teams. Cannot be changed. MembershipId string `protobuf:"bytes,3,opt,name=membership_id,json=membershipId,proto3" json:"membership_id,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetMembershipId ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type Version ¶
type Version struct { Major Version_VersionNumber `protobuf:"varint,1,opt,name=major,proto3,enum=chef.automate.api.iam.v2.Version_VersionNumber" json:"major,omitempty"` Minor Version_VersionNumber `protobuf:"varint,2,opt,name=minor,proto3,enum=chef.automate.api.iam.v2.Version_VersionNumber" json:"minor,omitempty"` // contains filtered or unexported fields }
the only values that may be returned by GetPolicyVersion
func (*Version) Descriptor
deprecated
func (*Version) GetMajor ¶
func (x *Version) GetMajor() Version_VersionNumber
func (*Version) GetMinor ¶
func (x *Version) GetMinor() Version_VersionNumber
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) ProtoReflect ¶
func (x *Version) ProtoReflect() protoreflect.Message
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) Descriptor ¶
func (Version_VersionNumber) Descriptor() protoreflect.EnumDescriptor
func (Version_VersionNumber) Enum ¶
func (x Version_VersionNumber) Enum() *Version_VersionNumber
func (Version_VersionNumber) EnumDescriptor
deprecated
func (Version_VersionNumber) EnumDescriptor() ([]byte, []int)
Deprecated: Use Version_VersionNumber.Descriptor instead.
func (Version_VersionNumber) Number ¶
func (x Version_VersionNumber) Number() protoreflect.EnumNumber
func (Version_VersionNumber) String ¶
func (x Version_VersionNumber) String() string
func (Version_VersionNumber) Type ¶
func (Version_VersionNumber) Type() protoreflect.EnumType