v1

package
v0.0.0-...-3aec24a Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_teleport_loginrule_v1_loginrule_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LoginRule

type LoginRule struct {

	// Metadata is resource metadata.
	Metadata *types.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Version is the resource version.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Priority is the priority of the login rule relative to other login rules
	// in the same cluster. Login rules with a lower numbered priority will be
	// evaluated first.
	Priority int32 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
	// TraitsMap is a map of trait keys to lists of predicate expressions which
	// should evaluate to the desired values for that trait.
	TraitsMap map[string]*wrappers.StringValues `` /* 176-byte string literal not displayed */
	// TraitsExpression is a predicate expression which should return the
	// desired traits for the user upon login.
	TraitsExpression string `protobuf:"bytes,5,opt,name=traits_expression,json=traitsExpression,proto3" json:"traits_expression,omitempty"`
	// contains filtered or unexported fields
}

LoginRule is a resource to configure rules and logic which should run during Teleport user login.

func (*LoginRule) Descriptor deprecated

func (*LoginRule) Descriptor() ([]byte, []int)

Deprecated: Use LoginRule.ProtoReflect.Descriptor instead.

func (*LoginRule) GetMetadata

func (x *LoginRule) GetMetadata() *types.Metadata

func (*LoginRule) GetPriority

func (x *LoginRule) GetPriority() int32

func (*LoginRule) GetTraitsExpression

func (x *LoginRule) GetTraitsExpression() string

func (*LoginRule) GetTraitsMap

func (x *LoginRule) GetTraitsMap() map[string]*wrappers.StringValues

func (*LoginRule) GetVersion

func (x *LoginRule) GetVersion() string

func (*LoginRule) ProtoMessage

func (*LoginRule) ProtoMessage()

func (*LoginRule) ProtoReflect

func (x *LoginRule) ProtoReflect() protoreflect.Message

func (*LoginRule) Reset

func (x *LoginRule) Reset()

func (*LoginRule) String

func (x *LoginRule) String() string

Jump to

Keyboard shortcuts

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