security

package
v0.0.0-...-8644ba8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Account_State_name = map[int32]string{
		0: "nonstate",
		1: "Initialized",
		2: "Activated",
		3: "Locked",
		4: "Deactivated",
	}
	Account_State_value = map[string]int32{
		"nonstate":    0,
		"Initialized": 1,
		"Activated":   2,
		"Locked":      3,
		"Deactivated": 4,
	}
)

Enum value maps for Account_State.

View Source
var (
	Account_Action_name = map[int32]string{
		0: "CREATE",
		1: "READ",
		2: "UPDATE",
		3: "DELETE",
		4: "UPDATE_PASSWORD",
		5: "ACTIVATE",
		6: "DEACTIVATE",
		7: "LOCK",
		8: "INITIALIZE",
	}
	Account_Action_value = map[string]int32{
		"CREATE":          0,
		"READ":            1,
		"UPDATE":          2,
		"DELETE":          3,
		"UPDATE_PASSWORD": 4,
		"ACTIVATE":        5,
		"DEACTIVATE":      6,
		"LOCK":            7,
		"INITIALIZE":      8,
	}
)

Enum value maps for Account_Action.

View Source
var (
	Permission_Action_name = map[int32]string{
		0: "CREATE",
		1: "READ",
		2: "UPDATE",
		3: "DELETE",
	}
	Permission_Action_value = map[string]int32{
		"CREATE": 0,
		"READ":   1,
		"UPDATE": 2,
		"DELETE": 3,
	}
)

Enum value maps for Permission_Action.

View Source
var (
	Policy_Action_name = map[int32]string{
		0: "READ",
	}
	Policy_Action_value = map[string]int32{
		"READ": 0,
	}
)

Enum value maps for Policy_Action.

View Source
var (
	Role_State_name = map[int32]string{
		0: "nonstate",
		1: "Initialized",
		2: "Activated",
		3: "Deactivated",
	}
	Role_State_value = map[string]int32{
		"nonstate":    0,
		"Initialized": 1,
		"Activated":   2,
		"Deactivated": 3,
	}
)

Enum value maps for Role_State.

View Source
var (
	Role_Action_name = map[int32]string{
		0: "CREATE",
		1: "READ",
		2: "UPDATE",
		3: "DELETE",
		4: "ACTIVATE",
		5: "DEACTIVATE",
	}
	Role_Action_value = map[string]int32{
		"CREATE":     0,
		"READ":       1,
		"UPDATE":     2,
		"DELETE":     3,
		"ACTIVATE":   4,
		"DEACTIVATE": 5,
	}
)

Enum value maps for Role_Action.

View Source
var (
	Session_State_name = map[int32]string{
		0: "initial",
		2: "Activated",
		3: "Reduced",
		5: "Deactivated",
	}
	Session_State_value = map[string]int32{
		"initial":     0,
		"Activated":   2,
		"Reduced":     3,
		"Deactivated": 5,
	}
)

Enum value maps for Session_State.

View Source
var (
	Session_Action_name = map[int32]string{
		0: "CREATE",
		1: "READ",
		2: "IDLE",
		3: "EXPIRE",
		4: "TERMINATE",
		5: "REDUCE",
	}
	Session_Action_value = map[string]int32{
		"CREATE":    0,
		"READ":      1,
		"IDLE":      2,
		"EXPIRE":    3,
		"TERMINATE": 4,
		"REDUCE":    5,
	}
)

Enum value maps for Session_Action.

View Source
var AccountPermission = Permission{Class: "Account", Actions: []string{"CREATE", "READ", "UPDATE", "DELETE", "UPDATE_PASSWORD", "ACTIVATE", "DEACTIVATE", "LOCK", "INITIALIZE"}}
View Source
var ConfigurationPermission = Permission{Class: "Configuration", Actions: []string{}}
View Source
var (
	// optional bool sensitive = 50000;
	E_Sensitive = &file_data_proto_extTypes[0]
)

Extension fields to descriptor.FieldOptions.

View Source
var File_account_proto protoreflect.FileDescriptor
View Source
var File_configuration_proto protoreflect.FileDescriptor
View Source
var File_permission_proto protoreflect.FileDescriptor
View Source
var File_policy_proto protoreflect.FileDescriptor
View Source
var File_session_proto protoreflect.FileDescriptor
View Source
var PermissionPermission = Permission{Class: "Permission", Actions: []string{"CREATE", "READ", "UPDATE", "DELETE"}}
View Source
var PolicyPermission = Permission{Class: "Policy", Actions: []string{"READ"}}
View Source
var RolePermission = Permission{Class: "Role", Actions: []string{"CREATE", "READ", "UPDATE", "DELETE", "ACTIVATE", "DEACTIVATE"}}
View Source
var SessionPermission = Permission{Class: "Session", Actions: []string{"CREATE", "READ", "IDLE", "EXPIRE", "TERMINATE", "REDUCE"}}

Functions

This section is empty.

Types

type Account

type Account struct {

	// unique name
	Name  string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Salt  string        `protobuf:"bytes,2,opt,name=salt,proto3" json:"salt,omitempty"`
	Hash  string        `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	State Account_State `protobuf:"varint,4,opt,name=state,proto3,enum=security.Account_State" json:"state,omitempty"`
	// []role.proto:Role.name
	Roles []string `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

A system account to allow access for a subject

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetHash

func (x *Account) GetHash() string

func (*Account) GetName

func (x *Account) GetName() string

func (*Account) GetRoles

func (x *Account) GetRoles() []string

func (*Account) GetSalt

func (x *Account) GetSalt() string

func (*Account) GetState

func (x *Account) GetState() Account_State

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountReader

type AccountReader interface {
	ReadAccount(name string) (*Account, error)
}

type Account_Action

type Account_Action int32
const (
	Account_CREATE          Account_Action = 0
	Account_READ            Account_Action = 1
	Account_UPDATE          Account_Action = 2
	Account_DELETE          Account_Action = 3
	Account_UPDATE_PASSWORD Account_Action = 4
	Account_ACTIVATE        Account_Action = 5
	Account_DEACTIVATE      Account_Action = 6
	Account_LOCK            Account_Action = 7
	Account_INITIALIZE      Account_Action = 8
)

func (Account_Action) Descriptor

func (Account_Action) Enum

func (x Account_Action) Enum() *Account_Action

func (Account_Action) EnumDescriptor deprecated

func (Account_Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use Account_Action.Descriptor instead.

func (Account_Action) Number

func (Account_Action) String

func (x Account_Action) String() string

func (Account_Action) Type

type Account_State

type Account_State int32
const (
	Account_nonstate Account_State = 0 // not used
	// Account_CREATE,Account_INITIALIZE
	Account_Initialized Account_State = 1
	// Account_ACTIVATE,Account_UPDATE_PASSWORD
	Account_Activated Account_State = 2
	// Account_LOCK
	Account_Locked Account_State = 3
	// Account_DEACTIVATE
	Account_Deactivated Account_State = 4
)

func (Account_State) Descriptor

func (Account_State) Enum

func (x Account_State) Enum() *Account_State

func (Account_State) EnumDescriptor deprecated

func (Account_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Account_State.Descriptor instead.

func (Account_State) Number

func (Account_State) String

func (x Account_State) String() string

func (Account_State) Type

type Configuration

type Configuration struct {
	Account    *Configuration_Account    `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Permission *Configuration_Permission `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"`
	Policy     *Configuration_Policy     `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"`
	Role       *Configuration_Role       `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"`
	Session    *Configuration_Session    `protobuf:"bytes,5,opt,name=session,proto3" json:"session,omitempty"`
	Server     *Configuration_Server     `protobuf:"bytes,6,opt,name=server,proto3" json:"server,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration) Descriptor deprecated

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

Deprecated: Use Configuration.ProtoReflect.Descriptor instead.

func (*Configuration) GetAccount

func (x *Configuration) GetAccount() *Configuration_Account

func (*Configuration) GetPermission

func (x *Configuration) GetPermission() *Configuration_Permission

func (*Configuration) GetPolicy

func (x *Configuration) GetPolicy() *Configuration_Policy

func (*Configuration) GetRole

func (x *Configuration) GetRole() *Configuration_Role

func (*Configuration) GetServer

func (x *Configuration) GetServer() *Configuration_Server

func (*Configuration) GetSession

func (x *Configuration) GetSession() *Configuration_Session

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) ProtoReflect

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

func (*Configuration) Reset

func (x *Configuration) Reset()

func (*Configuration) String

func (x *Configuration) String() string

type Configuration_Account

type Configuration_Account struct {
	Store *Configuration_Store `protobuf:"bytes,1,opt,name=store,proto3" json:"store,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration_Account) Descriptor deprecated

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

Deprecated: Use Configuration_Account.ProtoReflect.Descriptor instead.

func (*Configuration_Account) GetStore

func (*Configuration_Account) ProtoMessage

func (*Configuration_Account) ProtoMessage()

func (*Configuration_Account) ProtoReflect

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

func (*Configuration_Account) Reset

func (x *Configuration_Account) Reset()

func (*Configuration_Account) String

func (x *Configuration_Account) String() string

type Configuration_Permission

type Configuration_Permission struct {
	Store *Configuration_Store `protobuf:"bytes,1,opt,name=store,proto3" json:"store,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration_Permission) Descriptor deprecated

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

Deprecated: Use Configuration_Permission.ProtoReflect.Descriptor instead.

func (*Configuration_Permission) GetStore

func (*Configuration_Permission) ProtoMessage

func (*Configuration_Permission) ProtoMessage()

func (*Configuration_Permission) ProtoReflect

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

func (*Configuration_Permission) Reset

func (x *Configuration_Permission) Reset()

func (*Configuration_Permission) String

func (x *Configuration_Permission) String() string

type Configuration_Policy

type Configuration_Policy struct {
	Store *Configuration_Store `protobuf:"bytes,1,opt,name=store,proto3" json:"store,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration_Policy) Descriptor deprecated

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

Deprecated: Use Configuration_Policy.ProtoReflect.Descriptor instead.

func (*Configuration_Policy) GetStore

func (*Configuration_Policy) ProtoMessage

func (*Configuration_Policy) ProtoMessage()

func (*Configuration_Policy) ProtoReflect

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

func (*Configuration_Policy) Reset

func (x *Configuration_Policy) Reset()

func (*Configuration_Policy) String

func (x *Configuration_Policy) String() string

type Configuration_Role

type Configuration_Role struct {
	Store *Configuration_Store `protobuf:"bytes,1,opt,name=store,proto3" json:"store,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration_Role) Descriptor deprecated

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

Deprecated: Use Configuration_Role.ProtoReflect.Descriptor instead.

func (*Configuration_Role) GetStore

func (x *Configuration_Role) GetStore() *Configuration_Store

func (*Configuration_Role) ProtoMessage

func (*Configuration_Role) ProtoMessage()

func (*Configuration_Role) ProtoReflect

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

func (*Configuration_Role) Reset

func (x *Configuration_Role) Reset()

func (*Configuration_Role) String

func (x *Configuration_Role) String() string

type Configuration_Server

type Configuration_Server struct {
	Address     string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Certificate string `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"`
	Key         string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Origin      string `protobuf:"bytes,4,opt,name=origin,proto3" json:"origin,omitempty"`
	Host        string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration_Server) Descriptor deprecated

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

Deprecated: Use Configuration_Server.ProtoReflect.Descriptor instead.

func (*Configuration_Server) GetAddress

func (x *Configuration_Server) GetAddress() string

func (*Configuration_Server) GetCertificate

func (x *Configuration_Server) GetCertificate() string

func (*Configuration_Server) GetHost

func (x *Configuration_Server) GetHost() string

func (*Configuration_Server) GetKey

func (x *Configuration_Server) GetKey() string

func (*Configuration_Server) GetOrigin

func (x *Configuration_Server) GetOrigin() string

func (*Configuration_Server) ProtoMessage

func (*Configuration_Server) ProtoMessage()

func (*Configuration_Server) ProtoReflect

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

func (*Configuration_Server) Reset

func (x *Configuration_Server) Reset()

func (*Configuration_Server) String

func (x *Configuration_Server) String() string

type Configuration_Session

type Configuration_Session struct {
	Store *Configuration_Store `protobuf:"bytes,1,opt,name=store,proto3" json:"store,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration_Session) Descriptor deprecated

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

Deprecated: Use Configuration_Session.ProtoReflect.Descriptor instead.

func (*Configuration_Session) GetStore

func (*Configuration_Session) ProtoMessage

func (*Configuration_Session) ProtoMessage()

func (*Configuration_Session) ProtoReflect

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

func (*Configuration_Session) Reset

func (x *Configuration_Session) Reset()

func (*Configuration_Session) String

func (x *Configuration_Session) String() string

type Configuration_Store

type Configuration_Store struct {
	Url   string                     `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Redis *Configuration_Store_Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration_Store) Descriptor deprecated

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

Deprecated: Use Configuration_Store.ProtoReflect.Descriptor instead.

func (*Configuration_Store) GetRedis

func (*Configuration_Store) GetUrl

func (x *Configuration_Store) GetUrl() string

func (*Configuration_Store) ProtoMessage

func (*Configuration_Store) ProtoMessage()

func (*Configuration_Store) ProtoReflect

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

func (*Configuration_Store) Reset

func (x *Configuration_Store) Reset()

func (*Configuration_Store) String

func (x *Configuration_Store) String() string

type Configuration_Store_Redis

type Configuration_Store_Redis struct {
	Network      string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Address      string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	ReadTimeout  string `protobuf:"bytes,3,opt,name=readTimeout,proto3" json:"readTimeout,omitempty"`
	WriteTimeout string `protobuf:"bytes,4,opt,name=writeTimeout,proto3" json:"writeTimeout,omitempty"`
	Database     int32  `protobuf:"varint,5,opt,name=database,proto3" json:"database,omitempty"`
	Password     string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"`
	Tls          bool   `protobuf:"varint,7,opt,name=tls,proto3" json:"tls,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration_Store_Redis) Descriptor deprecated

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

Deprecated: Use Configuration_Store_Redis.ProtoReflect.Descriptor instead.

func (*Configuration_Store_Redis) GetAddress

func (x *Configuration_Store_Redis) GetAddress() string

func (*Configuration_Store_Redis) GetDatabase

func (x *Configuration_Store_Redis) GetDatabase() int32

func (*Configuration_Store_Redis) GetNetwork

func (x *Configuration_Store_Redis) GetNetwork() string

func (*Configuration_Store_Redis) GetPassword

func (x *Configuration_Store_Redis) GetPassword() string

func (*Configuration_Store_Redis) GetReadTimeout

func (x *Configuration_Store_Redis) GetReadTimeout() string

func (*Configuration_Store_Redis) GetTls

func (x *Configuration_Store_Redis) GetTls() bool

func (*Configuration_Store_Redis) GetWriteTimeout

func (x *Configuration_Store_Redis) GetWriteTimeout() string

func (*Configuration_Store_Redis) ProtoMessage

func (*Configuration_Store_Redis) ProtoMessage()

func (*Configuration_Store_Redis) ProtoReflect

func (*Configuration_Store_Redis) Reset

func (x *Configuration_Store_Redis) Reset()

func (*Configuration_Store_Redis) String

func (x *Configuration_Store_Redis) String() string

type Permission

type Permission struct {
	Class   string   `protobuf:"bytes,1,opt,name=class,proto3" json:"class,omitempty"`
	Actions []string `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*Permission) Descriptor deprecated

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

Deprecated: Use Permission.ProtoReflect.Descriptor instead.

func (*Permission) GetActions

func (x *Permission) GetActions() []string

func (*Permission) GetClass

func (x *Permission) GetClass() string

func (*Permission) ProtoMessage

func (*Permission) ProtoMessage()

func (*Permission) ProtoReflect

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

func (*Permission) Reset

func (x *Permission) Reset()

func (*Permission) String

func (x *Permission) String() string

type Permission_Action

type Permission_Action int32
const (
	Permission_CREATE Permission_Action = 0
	Permission_READ   Permission_Action = 1
	Permission_UPDATE Permission_Action = 2
	Permission_DELETE Permission_Action = 3
)

func (Permission_Action) Descriptor

func (Permission_Action) Enum

func (Permission_Action) EnumDescriptor deprecated

func (Permission_Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use Permission_Action.Descriptor instead.

func (Permission_Action) Number

func (Permission_Action) String

func (x Permission_Action) String() string

func (Permission_Action) Type

type Policy

type Policy struct {
	Account  *Policy_Account  `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Audit    *Policy_Audit    `protobuf:"bytes,2,opt,name=audit,proto3" json:"audit,omitempty"`
	Password *Policy_Password `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Role     *Policy_Role     `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"`
	Session  *Policy_Session  `protobuf:"bytes,5,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*Policy) Descriptor deprecated

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

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetAccount

func (x *Policy) GetAccount() *Policy_Account

func (*Policy) GetAudit

func (x *Policy) GetAudit() *Policy_Audit

func (*Policy) GetPassword

func (x *Policy) GetPassword() *Policy_Password

func (*Policy) GetRole

func (x *Policy) GetRole() *Policy_Role

func (*Policy) GetSession

func (x *Policy) GetSession() *Policy_Session

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) ProtoReflect

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

func (*Policy) Reset

func (x *Policy) Reset()

func (*Policy) String

func (x *Policy) String() string

type Policy_Account

type Policy_Account struct {
	LengthMinimum                         int32  `protobuf:"varint,1,opt,name=lengthMinimum,proto3" json:"lengthMinimum,omitempty"`
	LengthMaximum                         int32  `protobuf:"varint,2,opt,name=lengthMaximum,proto3" json:"lengthMaximum,omitempty"`
	Pattern                               string `protobuf:"bytes,3,opt,name=pattern,proto3" json:"pattern,omitempty"`
	InactiveDurationConsequenceLock       string `protobuf:"bytes,4,opt,name=inactiveDurationConsequenceLock,proto3" json:"inactiveDurationConsequenceLock,omitempty"`
	InactiveDurationConsequenceDeactivate string `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Policy_Account) Descriptor deprecated

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

Deprecated: Use Policy_Account.ProtoReflect.Descriptor instead.

func (*Policy_Account) GetInactiveDurationConsequenceDeactivate

func (x *Policy_Account) GetInactiveDurationConsequenceDeactivate() string

func (*Policy_Account) GetInactiveDurationConsequenceLock

func (x *Policy_Account) GetInactiveDurationConsequenceLock() string

func (*Policy_Account) GetLengthMaximum

func (x *Policy_Account) GetLengthMaximum() int32

func (*Policy_Account) GetLengthMinimum

func (x *Policy_Account) GetLengthMinimum() int32

func (*Policy_Account) GetPattern

func (x *Policy_Account) GetPattern() string

func (*Policy_Account) ProtoMessage

func (*Policy_Account) ProtoMessage()

func (*Policy_Account) ProtoReflect

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

func (*Policy_Account) Reset

func (x *Policy_Account) Reset()

func (*Policy_Account) String

func (x *Policy_Account) String() string

type Policy_Action

type Policy_Action int32
const (
	Policy_READ Policy_Action = 0
)

func (Policy_Action) Descriptor

func (Policy_Action) Enum

func (x Policy_Action) Enum() *Policy_Action

func (Policy_Action) EnumDescriptor deprecated

func (Policy_Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use Policy_Action.Descriptor instead.

func (Policy_Action) Number

func (Policy_Action) String

func (x Policy_Action) String() string

func (Policy_Action) Type

type Policy_Audit

type Policy_Audit struct {
	// contains filtered or unexported fields
}

func (*Policy_Audit) Descriptor deprecated

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

Deprecated: Use Policy_Audit.ProtoReflect.Descriptor instead.

func (*Policy_Audit) ProtoMessage

func (*Policy_Audit) ProtoMessage()

func (*Policy_Audit) ProtoReflect

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

func (*Policy_Audit) Reset

func (x *Policy_Audit) Reset()

func (*Policy_Audit) String

func (x *Policy_Audit) String() string

type Policy_Password

type Policy_Password struct {
	LengthMinimum                        int32  `protobuf:"varint,1,opt,name=lengthMinimum,proto3" json:"lengthMinimum,omitempty"`
	LengthMaximum                        int32  `protobuf:"varint,2,opt,name=lengthMaximum,proto3" json:"lengthMaximum,omitempty"`
	Pattern                              string `protobuf:"bytes,3,opt,name=pattern,proto3" json:"pattern,omitempty"`
	ReuseMaximum                         int32  `protobuf:"varint,4,opt,name=reuseMaximum,proto3" json:"reuseMaximum,omitempty"`
	AuthenticateInitialConsequence       string `protobuf:"bytes,5,opt,name=authenticateInitialConsequence,proto3" json:"authenticateInitialConsequence,omitempty"`
	DurationMaximum                      string `protobuf:"bytes,6,opt,name=durationMaximum,proto3" json:"durationMaximum,omitempty"`
	DurationMaximumConsequence           string `protobuf:"bytes,7,opt,name=durationMaximumConsequence,proto3" json:"durationMaximumConsequence,omitempty"`
	AuthenticateFailedCountMaximum       int32  `protobuf:"varint,8,opt,name=authenticateFailedCountMaximum,proto3" json:"authenticateFailedCountMaximum,omitempty"`
	AuthenticateFailedMaximumConsequence string `protobuf:"bytes,9,opt,name=authenticateFailedMaximumConsequence,proto3" json:"authenticateFailedMaximumConsequence,omitempty"`
	// contains filtered or unexported fields
}

func (*Policy_Password) Descriptor deprecated

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

Deprecated: Use Policy_Password.ProtoReflect.Descriptor instead.

func (*Policy_Password) GetAuthenticateFailedCountMaximum

func (x *Policy_Password) GetAuthenticateFailedCountMaximum() int32

func (*Policy_Password) GetAuthenticateFailedMaximumConsequence

func (x *Policy_Password) GetAuthenticateFailedMaximumConsequence() string

func (*Policy_Password) GetAuthenticateInitialConsequence

func (x *Policy_Password) GetAuthenticateInitialConsequence() string

func (*Policy_Password) GetDurationMaximum

func (x *Policy_Password) GetDurationMaximum() string

func (*Policy_Password) GetDurationMaximumConsequence

func (x *Policy_Password) GetDurationMaximumConsequence() string

func (*Policy_Password) GetLengthMaximum

func (x *Policy_Password) GetLengthMaximum() int32

func (*Policy_Password) GetLengthMinimum

func (x *Policy_Password) GetLengthMinimum() int32

func (*Policy_Password) GetPattern

func (x *Policy_Password) GetPattern() string

func (*Policy_Password) GetReuseMaximum

func (x *Policy_Password) GetReuseMaximum() int32

func (*Policy_Password) ProtoMessage

func (*Policy_Password) ProtoMessage()

func (*Policy_Password) ProtoReflect

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

func (*Policy_Password) Reset

func (x *Policy_Password) Reset()

func (*Policy_Password) String

func (x *Policy_Password) String() string

type Policy_Role

type Policy_Role struct {
	// contains filtered or unexported fields
}

func (*Policy_Role) Descriptor deprecated

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

Deprecated: Use Policy_Role.ProtoReflect.Descriptor instead.

func (*Policy_Role) ProtoMessage

func (*Policy_Role) ProtoMessage()

func (*Policy_Role) ProtoReflect

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

func (*Policy_Role) Reset

func (x *Policy_Role) Reset()

func (*Policy_Role) String

func (x *Policy_Role) String() string

type Policy_Session

type Policy_Session struct {
	Single          bool   `protobuf:"varint,1,opt,name=single,proto3" json:"single,omitempty"`
	DurationIdle    string `protobuf:"bytes,2,opt,name=durationIdle,proto3" json:"durationIdle,omitempty"`
	IdleConsequence string `protobuf:"bytes,3,opt,name=idleConsequence,proto3" json:"idleConsequence,omitempty"`
	DurationRenewal string `protobuf:"bytes,4,opt,name=durationRenewal,proto3" json:"durationRenewal,omitempty"`
	DurationMaximum string `protobuf:"bytes,5,opt,name=durationMaximum,proto3" json:"durationMaximum,omitempty"`
	Csrf            bool   `protobuf:"varint,6,opt,name=csrf,proto3" json:"csrf,omitempty"`
	// contains filtered or unexported fields
}

func (*Policy_Session) Descriptor deprecated

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

Deprecated: Use Policy_Session.ProtoReflect.Descriptor instead.

func (*Policy_Session) GetCsrf

func (x *Policy_Session) GetCsrf() bool

func (*Policy_Session) GetDurationIdle

func (x *Policy_Session) GetDurationIdle() string

func (*Policy_Session) GetDurationMaximum

func (x *Policy_Session) GetDurationMaximum() string

func (*Policy_Session) GetDurationRenewal

func (x *Policy_Session) GetDurationRenewal() string

func (*Policy_Session) GetIdleConsequence

func (x *Policy_Session) GetIdleConsequence() string

func (*Policy_Session) GetSingle

func (x *Policy_Session) GetSingle() bool

func (*Policy_Session) ProtoMessage

func (*Policy_Session) ProtoMessage()

func (*Policy_Session) ProtoReflect

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

func (*Policy_Session) Reset

func (x *Policy_Session) Reset()

func (*Policy_Session) String

func (x *Policy_Session) String() string

type Role

type Role struct {

	// unique name
	Name        string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	State       Role_State    `protobuf:"varint,2,opt,name=state,proto3,enum=security.Role_State" json:"state,omitempty"`
	Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

A named collection of permissions

func (*Role) Descriptor deprecated

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

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetPermissions

func (x *Role) GetPermissions() []*Permission

func (*Role) GetState

func (x *Role) GetState() Role_State

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

type RoleReader

type RoleReader interface {
	ReadRole(name string) (*Role, error)
}

type Role_Action

type Role_Action int32
const (
	Role_CREATE     Role_Action = 0
	Role_READ       Role_Action = 1
	Role_UPDATE     Role_Action = 2
	Role_DELETE     Role_Action = 3
	Role_ACTIVATE   Role_Action = 4
	Role_DEACTIVATE Role_Action = 5
)

func (Role_Action) Descriptor

func (Role_Action) Enum

func (x Role_Action) Enum() *Role_Action

func (Role_Action) EnumDescriptor deprecated

func (Role_Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use Role_Action.Descriptor instead.

func (Role_Action) Number

func (x Role_Action) Number() protoreflect.EnumNumber

func (Role_Action) String

func (x Role_Action) String() string

func (Role_Action) Type

type Role_State

type Role_State int32
const (
	Role_nonstate Role_State = 0 // not used
	// Role_CREATE
	Role_Initialized Role_State = 1
	// Role_ACTIVATE
	Role_Activated Role_State = 2
	// Role_DEACTIVATE
	Role_Deactivated Role_State = 3
)

func (Role_State) Descriptor

func (Role_State) Descriptor() protoreflect.EnumDescriptor

func (Role_State) Enum

func (x Role_State) Enum() *Role_State

func (Role_State) EnumDescriptor deprecated

func (Role_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Role_State.Descriptor instead.

func (Role_State) Number

func (x Role_State) Number() protoreflect.EnumNumber

func (Role_State) String

func (x Role_State) String() string

func (Role_State) Type

type Session

type Session struct {

	// privately shared identifier `json:"-"`
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// account.proto:Account.name
	Account     string        `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	Csrf        string        `protobuf:"bytes,3,opt,name=csrf,proto3" json:"csrf,omitempty"`
	Permissions []*Permission `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty"`
	State       Session_State `protobuf:"varint,5,opt,name=state,proto3,enum=security.Session_State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

A container of time-limited permissions shared with a subject

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetAccount

func (x *Session) GetAccount() string

func (*Session) GetCsrf

func (x *Session) GetCsrf() string

func (*Session) GetId

func (x *Session) GetId() string

func (*Session) GetPermissions

func (x *Session) GetPermissions() []*Permission

func (*Session) GetState

func (x *Session) GetState() Session_State

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

type Session_Action

type Session_Action int32
const (
	Session_CREATE    Session_Action = 0
	Session_READ      Session_Action = 1
	Session_IDLE      Session_Action = 2
	Session_EXPIRE    Session_Action = 3
	Session_TERMINATE Session_Action = 4
	Session_REDUCE    Session_Action = 5
)

func (Session_Action) Descriptor

func (Session_Action) Enum

func (x Session_Action) Enum() *Session_Action

func (Session_Action) EnumDescriptor deprecated

func (Session_Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use Session_Action.Descriptor instead.

func (Session_Action) Number

func (Session_Action) String

func (x Session_Action) String() string

func (Session_Action) Type

type Session_State

type Session_State int32
const (
	Session_initial Session_State = 0 // not used
	// Action:CREATE
	Session_Activated Session_State = 2
	// Action:IDLE,Action:REDUCE
	Session_Reduced Session_State = 3
	// Action:EXPIRE,TERMINATE
	Session_Deactivated Session_State = 5
)

func (Session_State) Descriptor

func (Session_State) Enum

func (x Session_State) Enum() *Session_State

func (Session_State) EnumDescriptor deprecated

func (Session_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Session_State.Descriptor instead.

func (Session_State) Number

func (Session_State) String

func (x Session_State) String() string

func (Session_State) Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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