types

package
v0.0.0-...-37acf21 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReplayElasticsearchIndexPrefix = "bastion-replays-"

	NodeSourceManual = "manual"
	NodeSourceConsul = "consul"

	KeySourceManual  = "manual"
	KeySourceSandbox = "sandbox"

	NodeUserRoot = "root"

	GrantUserTunnel = "__tunnel__" // special linux user for TCP tunnel permission

	ReplayFrameTypeStdout     = uint32(1)
	ReplayFrameTypeStderr     = uint32(2)
	ReplayFrameTypeWindowSize = uint32(3)
)

Variables

View Source
var (
	UserAccountPattern    = regexp.MustCompile(`^[a-zA-Z_][0-9a-zA-Z_.-]{3,24}$`)
	UserNicknameMaxLength = 16
	UserPasswordMinLength = 6

	NodeHostnamePattern = regexp.MustCompile(`[0-9a-zA-Z_.-]{4,64}`)
	NodeUserPattern     = UserAccountPattern
	NodeAddressPattern  = regexp.MustCompile(`^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(:\d+)?$`)

	KeyFingerprintPattern = regexp.MustCompile(`SHA256:[0-9a-zA-Z+/]{43}`)

	GrantHostnamePatternPattern = regexp.MustCompile(`[0-9a-zA-Z_.*-]{4,64}`)
	GrantUserPattern            = UserAccountPattern
)

Functions

func RegisterGrantServiceServer

func RegisterGrantServiceServer(s *grpc.Server, srv GrantServiceServer)

func RegisterKeyServiceServer

func RegisterKeyServiceServer(s *grpc.Server, srv KeyServiceServer)

func RegisterMasterKeyServiceServer

func RegisterMasterKeyServiceServer(s *grpc.Server, srv MasterKeyServiceServer)

func RegisterNodeServiceServer

func RegisterNodeServiceServer(s *grpc.Server, srv NodeServiceServer)

func RegisterReplayServiceServer

func RegisterReplayServiceServer(s *grpc.Server, srv ReplayServiceServer)

func RegisterSessionServiceServer

func RegisterSessionServiceServer(s *grpc.Server, srv SessionServiceServer)

func RegisterTokenServiceServer

func RegisterTokenServiceServer(s *grpc.Server, srv TokenServiceServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)

Types

type AuthenticateUserRequest

type AuthenticateUserRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthenticateUserRequest) Descriptor

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

func (*AuthenticateUserRequest) GetAccount

func (m *AuthenticateUserRequest) GetAccount() string

func (*AuthenticateUserRequest) GetPassword

func (m *AuthenticateUserRequest) GetPassword() string

func (*AuthenticateUserRequest) ProtoMessage

func (*AuthenticateUserRequest) ProtoMessage()

func (*AuthenticateUserRequest) Reset

func (m *AuthenticateUserRequest) Reset()

func (*AuthenticateUserRequest) String

func (m *AuthenticateUserRequest) String() string

func (*AuthenticateUserRequest) XXX_DiscardUnknown

func (m *AuthenticateUserRequest) XXX_DiscardUnknown()

func (*AuthenticateUserRequest) XXX_Marshal

func (m *AuthenticateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticateUserRequest) XXX_Merge

func (m *AuthenticateUserRequest) XXX_Merge(src proto.Message)

func (*AuthenticateUserRequest) XXX_Size

func (m *AuthenticateUserRequest) XXX_Size() int

func (*AuthenticateUserRequest) XXX_Unmarshal

func (m *AuthenticateUserRequest) XXX_Unmarshal(b []byte) error

type AuthenticateUserResponse

type AuthenticateUserResponse struct {
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthenticateUserResponse) Descriptor

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

func (*AuthenticateUserResponse) GetUser

func (m *AuthenticateUserResponse) GetUser() *User

func (*AuthenticateUserResponse) ProtoMessage

func (*AuthenticateUserResponse) ProtoMessage()

func (*AuthenticateUserResponse) Reset

func (m *AuthenticateUserResponse) Reset()

func (*AuthenticateUserResponse) String

func (m *AuthenticateUserResponse) String() string

func (*AuthenticateUserResponse) XXX_DiscardUnknown

func (m *AuthenticateUserResponse) XXX_DiscardUnknown()

func (*AuthenticateUserResponse) XXX_Marshal

func (m *AuthenticateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticateUserResponse) XXX_Merge

func (m *AuthenticateUserResponse) XXX_Merge(src proto.Message)

func (*AuthenticateUserResponse) XXX_Size

func (m *AuthenticateUserResponse) XXX_Size() int

func (*AuthenticateUserResponse) XXX_Unmarshal

func (m *AuthenticateUserResponse) XXX_Unmarshal(b []byte) error

type CheckGrantRequest

type CheckGrantRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Hostname             string   `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
	User                 string   `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CheckGrantRequest) Descriptor

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

func (*CheckGrantRequest) GetAccount

func (m *CheckGrantRequest) GetAccount() string

func (*CheckGrantRequest) GetHostname

func (m *CheckGrantRequest) GetHostname() string

func (*CheckGrantRequest) GetUser

func (m *CheckGrantRequest) GetUser() string

func (*CheckGrantRequest) ProtoMessage

func (*CheckGrantRequest) ProtoMessage()

func (*CheckGrantRequest) Reset

func (m *CheckGrantRequest) Reset()

func (*CheckGrantRequest) String

func (m *CheckGrantRequest) String() string

func (*CheckGrantRequest) Validate

func (m *CheckGrantRequest) Validate() (err error)

func (*CheckGrantRequest) XXX_DiscardUnknown

func (m *CheckGrantRequest) XXX_DiscardUnknown()

func (*CheckGrantRequest) XXX_Marshal

func (m *CheckGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckGrantRequest) XXX_Merge

func (m *CheckGrantRequest) XXX_Merge(src proto.Message)

func (*CheckGrantRequest) XXX_Size

func (m *CheckGrantRequest) XXX_Size() int

func (*CheckGrantRequest) XXX_Unmarshal

func (m *CheckGrantRequest) XXX_Unmarshal(b []byte) error

type CheckGrantResponse

type CheckGrantResponse struct {
	Ok                   bool     `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CheckGrantResponse) Descriptor

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

func (*CheckGrantResponse) GetOk

func (m *CheckGrantResponse) GetOk() bool

func (*CheckGrantResponse) ProtoMessage

func (*CheckGrantResponse) ProtoMessage()

func (*CheckGrantResponse) Reset

func (m *CheckGrantResponse) Reset()

func (*CheckGrantResponse) String

func (m *CheckGrantResponse) String() string

func (*CheckGrantResponse) XXX_DiscardUnknown

func (m *CheckGrantResponse) XXX_DiscardUnknown()

func (*CheckGrantResponse) XXX_Marshal

func (m *CheckGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckGrantResponse) XXX_Merge

func (m *CheckGrantResponse) XXX_Merge(src proto.Message)

func (*CheckGrantResponse) XXX_Size

func (m *CheckGrantResponse) XXX_Size() int

func (*CheckGrantResponse) XXX_Unmarshal

func (m *CheckGrantResponse) XXX_Unmarshal(b []byte) error

type CreateKeyRequest

type CreateKeyRequest struct {
	Fingerprint          string   `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	Account              string   `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Source               string   `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateKeyRequest) Descriptor

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

func (*CreateKeyRequest) GetAccount

func (m *CreateKeyRequest) GetAccount() string

func (*CreateKeyRequest) GetFingerprint

func (m *CreateKeyRequest) GetFingerprint() string

func (*CreateKeyRequest) GetName

func (m *CreateKeyRequest) GetName() string

func (*CreateKeyRequest) GetSource

func (m *CreateKeyRequest) GetSource() string

func (*CreateKeyRequest) ProtoMessage

func (*CreateKeyRequest) ProtoMessage()

func (*CreateKeyRequest) Reset

func (m *CreateKeyRequest) Reset()

func (*CreateKeyRequest) String

func (m *CreateKeyRequest) String() string

func (*CreateKeyRequest) Validate

func (m *CreateKeyRequest) Validate() (err error)

func (*CreateKeyRequest) XXX_DiscardUnknown

func (m *CreateKeyRequest) XXX_DiscardUnknown()

func (*CreateKeyRequest) XXX_Marshal

func (m *CreateKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateKeyRequest) XXX_Merge

func (m *CreateKeyRequest) XXX_Merge(src proto.Message)

func (*CreateKeyRequest) XXX_Size

func (m *CreateKeyRequest) XXX_Size() int

func (*CreateKeyRequest) XXX_Unmarshal

func (m *CreateKeyRequest) XXX_Unmarshal(b []byte) error

type CreateKeyResponse

type CreateKeyResponse struct {
	Key                  *Key     `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateKeyResponse) Descriptor

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

func (*CreateKeyResponse) GetKey

func (m *CreateKeyResponse) GetKey() *Key

func (*CreateKeyResponse) ProtoMessage

func (*CreateKeyResponse) ProtoMessage()

func (*CreateKeyResponse) Reset

func (m *CreateKeyResponse) Reset()

func (*CreateKeyResponse) String

func (m *CreateKeyResponse) String() string

func (*CreateKeyResponse) XXX_DiscardUnknown

func (m *CreateKeyResponse) XXX_DiscardUnknown()

func (*CreateKeyResponse) XXX_Marshal

func (m *CreateKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateKeyResponse) XXX_Merge

func (m *CreateKeyResponse) XXX_Merge(src proto.Message)

func (*CreateKeyResponse) XXX_Size

func (m *CreateKeyResponse) XXX_Size() int

func (*CreateKeyResponse) XXX_Unmarshal

func (m *CreateKeyResponse) XXX_Unmarshal(b []byte) error

type CreateSessionRequest

type CreateSessionRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Command              string   `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
	IsRecorded           bool     `protobuf:"varint,3,opt,name=is_recorded,json=isRecorded,proto3" json:"is_recorded,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateSessionRequest) Descriptor

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

func (*CreateSessionRequest) GetAccount

func (m *CreateSessionRequest) GetAccount() string

func (*CreateSessionRequest) GetCommand

func (m *CreateSessionRequest) GetCommand() string

func (*CreateSessionRequest) GetIsRecorded

func (m *CreateSessionRequest) GetIsRecorded() bool

func (*CreateSessionRequest) ProtoMessage

func (*CreateSessionRequest) ProtoMessage()

func (*CreateSessionRequest) Reset

func (m *CreateSessionRequest) Reset()

func (*CreateSessionRequest) String

func (m *CreateSessionRequest) String() string

func (*CreateSessionRequest) Validate

func (m *CreateSessionRequest) Validate() (err error)

func (*CreateSessionRequest) XXX_DiscardUnknown

func (m *CreateSessionRequest) XXX_DiscardUnknown()

func (*CreateSessionRequest) XXX_Marshal

func (m *CreateSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateSessionRequest) XXX_Merge

func (m *CreateSessionRequest) XXX_Merge(src proto.Message)

func (*CreateSessionRequest) XXX_Size

func (m *CreateSessionRequest) XXX_Size() int

func (*CreateSessionRequest) XXX_Unmarshal

func (m *CreateSessionRequest) XXX_Unmarshal(b []byte) error

type CreateSessionResponse

type CreateSessionResponse struct {
	Session              *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateSessionResponse) Descriptor

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

func (*CreateSessionResponse) GetSession

func (m *CreateSessionResponse) GetSession() *Session

func (*CreateSessionResponse) ProtoMessage

func (*CreateSessionResponse) ProtoMessage()

func (*CreateSessionResponse) Reset

func (m *CreateSessionResponse) Reset()

func (*CreateSessionResponse) String

func (m *CreateSessionResponse) String() string

func (*CreateSessionResponse) XXX_DiscardUnknown

func (m *CreateSessionResponse) XXX_DiscardUnknown()

func (*CreateSessionResponse) XXX_Marshal

func (m *CreateSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateSessionResponse) XXX_Merge

func (m *CreateSessionResponse) XXX_Merge(src proto.Message)

func (*CreateSessionResponse) XXX_Size

func (m *CreateSessionResponse) XXX_Size() int

func (*CreateSessionResponse) XXX_Unmarshal

func (m *CreateSessionResponse) XXX_Unmarshal(b []byte) error

type CreateTokenRequest

type CreateTokenRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Description          string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTokenRequest) Descriptor

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

func (*CreateTokenRequest) GetAccount

func (m *CreateTokenRequest) GetAccount() string

func (*CreateTokenRequest) GetDescription

func (m *CreateTokenRequest) GetDescription() string

func (*CreateTokenRequest) ProtoMessage

func (*CreateTokenRequest) ProtoMessage()

func (*CreateTokenRequest) Reset

func (m *CreateTokenRequest) Reset()

func (*CreateTokenRequest) String

func (m *CreateTokenRequest) String() string

func (*CreateTokenRequest) Validate

func (m *CreateTokenRequest) Validate() (err error)

func (*CreateTokenRequest) XXX_DiscardUnknown

func (m *CreateTokenRequest) XXX_DiscardUnknown()

func (*CreateTokenRequest) XXX_Marshal

func (m *CreateTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateTokenRequest) XXX_Merge

func (m *CreateTokenRequest) XXX_Merge(src proto.Message)

func (*CreateTokenRequest) XXX_Size

func (m *CreateTokenRequest) XXX_Size() int

func (*CreateTokenRequest) XXX_Unmarshal

func (m *CreateTokenRequest) XXX_Unmarshal(b []byte) error

type CreateTokenResponse

type CreateTokenResponse struct {
	Token                *Token   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTokenResponse) Descriptor

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

func (*CreateTokenResponse) GetToken

func (m *CreateTokenResponse) GetToken() *Token

func (*CreateTokenResponse) ProtoMessage

func (*CreateTokenResponse) ProtoMessage()

func (*CreateTokenResponse) Reset

func (m *CreateTokenResponse) Reset()

func (*CreateTokenResponse) String

func (m *CreateTokenResponse) String() string

func (*CreateTokenResponse) XXX_DiscardUnknown

func (m *CreateTokenResponse) XXX_DiscardUnknown()

func (*CreateTokenResponse) XXX_Marshal

func (m *CreateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateTokenResponse) XXX_Merge

func (m *CreateTokenResponse) XXX_Merge(src proto.Message)

func (*CreateTokenResponse) XXX_Size

func (m *CreateTokenResponse) XXX_Size() int

func (*CreateTokenResponse) XXX_Unmarshal

func (m *CreateTokenResponse) XXX_Unmarshal(b []byte) error

type CreateUserRequest

type CreateUserRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Nickname             string   `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
	IsAdmin              bool     `protobuf:"varint,4,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateUserRequest) Descriptor

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

func (*CreateUserRequest) GetAccount

func (m *CreateUserRequest) GetAccount() string

func (*CreateUserRequest) GetIsAdmin

func (m *CreateUserRequest) GetIsAdmin() bool

func (*CreateUserRequest) GetNickname

func (m *CreateUserRequest) GetNickname() string

func (*CreateUserRequest) GetPassword

func (m *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) Reset

func (m *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (m *CreateUserRequest) String() string

func (*CreateUserRequest) Validate

func (m *CreateUserRequest) Validate() (err error)

func (*CreateUserRequest) XXX_DiscardUnknown

func (m *CreateUserRequest) XXX_DiscardUnknown()

func (*CreateUserRequest) XXX_Marshal

func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateUserRequest) XXX_Merge

func (m *CreateUserRequest) XXX_Merge(src proto.Message)

func (*CreateUserRequest) XXX_Size

func (m *CreateUserRequest) XXX_Size() int

func (*CreateUserRequest) XXX_Unmarshal

func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error

type CreateUserResponse

type CreateUserResponse struct {
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateUserResponse) Descriptor

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

func (*CreateUserResponse) GetUser

func (m *CreateUserResponse) GetUser() *User

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) Reset

func (m *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (m *CreateUserResponse) String() string

func (*CreateUserResponse) XXX_DiscardUnknown

func (m *CreateUserResponse) XXX_DiscardUnknown()

func (*CreateUserResponse) XXX_Marshal

func (m *CreateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateUserResponse) XXX_Merge

func (m *CreateUserResponse) XXX_Merge(src proto.Message)

func (*CreateUserResponse) XXX_Size

func (m *CreateUserResponse) XXX_Size() int

func (*CreateUserResponse) XXX_Unmarshal

func (m *CreateUserResponse) XXX_Unmarshal(b []byte) error

type DaemonOptions

type DaemonOptions struct {
	// Dev dev mode
	Dev bool `yaml:"dev"`

	// DB database file path, using bolt, default to "/var/lib/bastion/database"
	DB string `yaml:"db"`

	// elasticsearch urls, default to "http://127.0.0.1:9200"
	Elasticsearch []string `yaml:"elasticsearch"`

	// Host host to bind for bastion rpc, default to "127.0.0.1"
	Host string `yaml:"host"`

	// Port port to bind for bastion rpc, default to 9777
	Port int `yaml:"port"`

	// ReplayDir directory of replay files
	ReplayDir string `yaml:"replay_dir"`
}

DaemonOptions daemon options for bastion

func (DaemonOptions) String

func (o DaemonOptions) String() string

type DeleteGrantRequest

type DeleteGrantRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	HostnamePattern      string   `protobuf:"bytes,2,opt,name=hostname_pattern,json=hostnamePattern,proto3" json:"hostname_pattern,omitempty"`
	User                 string   `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteGrantRequest) Descriptor

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

func (*DeleteGrantRequest) GetAccount

func (m *DeleteGrantRequest) GetAccount() string

func (*DeleteGrantRequest) GetHostnamePattern

func (m *DeleteGrantRequest) GetHostnamePattern() string

func (*DeleteGrantRequest) GetUser

func (m *DeleteGrantRequest) GetUser() string

func (*DeleteGrantRequest) ProtoMessage

func (*DeleteGrantRequest) ProtoMessage()

func (*DeleteGrantRequest) Reset

func (m *DeleteGrantRequest) Reset()

func (*DeleteGrantRequest) String

func (m *DeleteGrantRequest) String() string

func (*DeleteGrantRequest) Validate

func (m *DeleteGrantRequest) Validate() (err error)

func (*DeleteGrantRequest) XXX_DiscardUnknown

func (m *DeleteGrantRequest) XXX_DiscardUnknown()

func (*DeleteGrantRequest) XXX_Marshal

func (m *DeleteGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteGrantRequest) XXX_Merge

func (m *DeleteGrantRequest) XXX_Merge(src proto.Message)

func (*DeleteGrantRequest) XXX_Size

func (m *DeleteGrantRequest) XXX_Size() int

func (*DeleteGrantRequest) XXX_Unmarshal

func (m *DeleteGrantRequest) XXX_Unmarshal(b []byte) error

type DeleteGrantResponse

type DeleteGrantResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteGrantResponse) Descriptor

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

func (*DeleteGrantResponse) ProtoMessage

func (*DeleteGrantResponse) ProtoMessage()

func (*DeleteGrantResponse) Reset

func (m *DeleteGrantResponse) Reset()

func (*DeleteGrantResponse) String

func (m *DeleteGrantResponse) String() string

func (*DeleteGrantResponse) XXX_DiscardUnknown

func (m *DeleteGrantResponse) XXX_DiscardUnknown()

func (*DeleteGrantResponse) XXX_Marshal

func (m *DeleteGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteGrantResponse) XXX_Merge

func (m *DeleteGrantResponse) XXX_Merge(src proto.Message)

func (*DeleteGrantResponse) XXX_Size

func (m *DeleteGrantResponse) XXX_Size() int

func (*DeleteGrantResponse) XXX_Unmarshal

func (m *DeleteGrantResponse) XXX_Unmarshal(b []byte) error

type DeleteKeyRequest

type DeleteKeyRequest struct {
	Fingerprint          string   `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteKeyRequest) Descriptor

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

func (*DeleteKeyRequest) GetFingerprint

func (m *DeleteKeyRequest) GetFingerprint() string

func (*DeleteKeyRequest) ProtoMessage

func (*DeleteKeyRequest) ProtoMessage()

func (*DeleteKeyRequest) Reset

func (m *DeleteKeyRequest) Reset()

func (*DeleteKeyRequest) String

func (m *DeleteKeyRequest) String() string

func (*DeleteKeyRequest) Validate

func (m *DeleteKeyRequest) Validate() (err error)

func (*DeleteKeyRequest) XXX_DiscardUnknown

func (m *DeleteKeyRequest) XXX_DiscardUnknown()

func (*DeleteKeyRequest) XXX_Marshal

func (m *DeleteKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteKeyRequest) XXX_Merge

func (m *DeleteKeyRequest) XXX_Merge(src proto.Message)

func (*DeleteKeyRequest) XXX_Size

func (m *DeleteKeyRequest) XXX_Size() int

func (*DeleteKeyRequest) XXX_Unmarshal

func (m *DeleteKeyRequest) XXX_Unmarshal(b []byte) error

type DeleteKeyResponse

type DeleteKeyResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteKeyResponse) Descriptor

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

func (*DeleteKeyResponse) ProtoMessage

func (*DeleteKeyResponse) ProtoMessage()

func (*DeleteKeyResponse) Reset

func (m *DeleteKeyResponse) Reset()

func (*DeleteKeyResponse) String

func (m *DeleteKeyResponse) String() string

func (*DeleteKeyResponse) XXX_DiscardUnknown

func (m *DeleteKeyResponse) XXX_DiscardUnknown()

func (*DeleteKeyResponse) XXX_Marshal

func (m *DeleteKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteKeyResponse) XXX_Merge

func (m *DeleteKeyResponse) XXX_Merge(src proto.Message)

func (*DeleteKeyResponse) XXX_Size

func (m *DeleteKeyResponse) XXX_Size() int

func (*DeleteKeyResponse) XXX_Unmarshal

func (m *DeleteKeyResponse) XXX_Unmarshal(b []byte) error

type DeleteNodeRequest

type DeleteNodeRequest struct {
	Hostname             string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteNodeRequest) Descriptor

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

func (*DeleteNodeRequest) GetHostname

func (m *DeleteNodeRequest) GetHostname() string

func (*DeleteNodeRequest) ProtoMessage

func (*DeleteNodeRequest) ProtoMessage()

func (*DeleteNodeRequest) Reset

func (m *DeleteNodeRequest) Reset()

func (*DeleteNodeRequest) String

func (m *DeleteNodeRequest) String() string

func (*DeleteNodeRequest) XXX_DiscardUnknown

func (m *DeleteNodeRequest) XXX_DiscardUnknown()

func (*DeleteNodeRequest) XXX_Marshal

func (m *DeleteNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteNodeRequest) XXX_Merge

func (m *DeleteNodeRequest) XXX_Merge(src proto.Message)

func (*DeleteNodeRequest) XXX_Size

func (m *DeleteNodeRequest) XXX_Size() int

func (*DeleteNodeRequest) XXX_Unmarshal

func (m *DeleteNodeRequest) XXX_Unmarshal(b []byte) error

type DeleteNodeResponse

type DeleteNodeResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteNodeResponse) Descriptor

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

func (*DeleteNodeResponse) ProtoMessage

func (*DeleteNodeResponse) ProtoMessage()

func (*DeleteNodeResponse) Reset

func (m *DeleteNodeResponse) Reset()

func (*DeleteNodeResponse) String

func (m *DeleteNodeResponse) String() string

func (*DeleteNodeResponse) XXX_DiscardUnknown

func (m *DeleteNodeResponse) XXX_DiscardUnknown()

func (*DeleteNodeResponse) XXX_Marshal

func (m *DeleteNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteNodeResponse) XXX_Merge

func (m *DeleteNodeResponse) XXX_Merge(src proto.Message)

func (*DeleteNodeResponse) XXX_Size

func (m *DeleteNodeResponse) XXX_Size() int

func (*DeleteNodeResponse) XXX_Unmarshal

func (m *DeleteNodeResponse) XXX_Unmarshal(b []byte) error

type DeleteTokenRequest

type DeleteTokenRequest struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteTokenRequest) Descriptor

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

func (*DeleteTokenRequest) GetId

func (m *DeleteTokenRequest) GetId() int64

func (*DeleteTokenRequest) ProtoMessage

func (*DeleteTokenRequest) ProtoMessage()

func (*DeleteTokenRequest) Reset

func (m *DeleteTokenRequest) Reset()

func (*DeleteTokenRequest) String

func (m *DeleteTokenRequest) String() string

func (*DeleteTokenRequest) Validate

func (m *DeleteTokenRequest) Validate() (err error)

func (*DeleteTokenRequest) XXX_DiscardUnknown

func (m *DeleteTokenRequest) XXX_DiscardUnknown()

func (*DeleteTokenRequest) XXX_Marshal

func (m *DeleteTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteTokenRequest) XXX_Merge

func (m *DeleteTokenRequest) XXX_Merge(src proto.Message)

func (*DeleteTokenRequest) XXX_Size

func (m *DeleteTokenRequest) XXX_Size() int

func (*DeleteTokenRequest) XXX_Unmarshal

func (m *DeleteTokenRequest) XXX_Unmarshal(b []byte) error

type DeleteTokenResponse

type DeleteTokenResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteTokenResponse) Descriptor

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

func (*DeleteTokenResponse) ProtoMessage

func (*DeleteTokenResponse) ProtoMessage()

func (*DeleteTokenResponse) Reset

func (m *DeleteTokenResponse) Reset()

func (*DeleteTokenResponse) String

func (m *DeleteTokenResponse) String() string

func (*DeleteTokenResponse) XXX_DiscardUnknown

func (m *DeleteTokenResponse) XXX_DiscardUnknown()

func (*DeleteTokenResponse) XXX_Marshal

func (m *DeleteTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteTokenResponse) XXX_Merge

func (m *DeleteTokenResponse) XXX_Merge(src proto.Message)

func (*DeleteTokenResponse) XXX_Size

func (m *DeleteTokenResponse) XXX_Size() int

func (*DeleteTokenResponse) XXX_Unmarshal

func (m *DeleteTokenResponse) XXX_Unmarshal(b []byte) error

type FinishSessionRequest

type FinishSessionRequest struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FinishSessionRequest) Descriptor

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

func (*FinishSessionRequest) GetId

func (m *FinishSessionRequest) GetId() int64

func (*FinishSessionRequest) ProtoMessage

func (*FinishSessionRequest) ProtoMessage()

func (*FinishSessionRequest) Reset

func (m *FinishSessionRequest) Reset()

func (*FinishSessionRequest) String

func (m *FinishSessionRequest) String() string

func (*FinishSessionRequest) Validate

func (m *FinishSessionRequest) Validate() (err error)

func (*FinishSessionRequest) XXX_DiscardUnknown

func (m *FinishSessionRequest) XXX_DiscardUnknown()

func (*FinishSessionRequest) XXX_Marshal

func (m *FinishSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FinishSessionRequest) XXX_Merge

func (m *FinishSessionRequest) XXX_Merge(src proto.Message)

func (*FinishSessionRequest) XXX_Size

func (m *FinishSessionRequest) XXX_Size() int

func (*FinishSessionRequest) XXX_Unmarshal

func (m *FinishSessionRequest) XXX_Unmarshal(b []byte) error

type FinishSessionResponse

type FinishSessionResponse struct {
	Session              *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FinishSessionResponse) Descriptor

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

func (*FinishSessionResponse) GetSession

func (m *FinishSessionResponse) GetSession() *Session

func (*FinishSessionResponse) ProtoMessage

func (*FinishSessionResponse) ProtoMessage()

func (*FinishSessionResponse) Reset

func (m *FinishSessionResponse) Reset()

func (*FinishSessionResponse) String

func (m *FinishSessionResponse) String() string

func (*FinishSessionResponse) XXX_DiscardUnknown

func (m *FinishSessionResponse) XXX_DiscardUnknown()

func (*FinishSessionResponse) XXX_Marshal

func (m *FinishSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FinishSessionResponse) XXX_Merge

func (m *FinishSessionResponse) XXX_Merge(src proto.Message)

func (*FinishSessionResponse) XXX_Size

func (m *FinishSessionResponse) XXX_Size() int

func (*FinishSessionResponse) XXX_Unmarshal

func (m *FinishSessionResponse) XXX_Unmarshal(b []byte) error

type GetKeyRequest

type GetKeyRequest struct {
	Fingerprint          string   `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetKeyRequest) Descriptor

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

func (*GetKeyRequest) GetFingerprint

func (m *GetKeyRequest) GetFingerprint() string

func (*GetKeyRequest) ProtoMessage

func (*GetKeyRequest) ProtoMessage()

func (*GetKeyRequest) Reset

func (m *GetKeyRequest) Reset()

func (*GetKeyRequest) String

func (m *GetKeyRequest) String() string

func (*GetKeyRequest) Validate

func (m *GetKeyRequest) Validate() (err error)

func (*GetKeyRequest) XXX_DiscardUnknown

func (m *GetKeyRequest) XXX_DiscardUnknown()

func (*GetKeyRequest) XXX_Marshal

func (m *GetKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetKeyRequest) XXX_Merge

func (m *GetKeyRequest) XXX_Merge(src proto.Message)

func (*GetKeyRequest) XXX_Size

func (m *GetKeyRequest) XXX_Size() int

func (*GetKeyRequest) XXX_Unmarshal

func (m *GetKeyRequest) XXX_Unmarshal(b []byte) error

type GetKeyResponse

type GetKeyResponse struct {
	Key                  *Key     `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetKeyResponse) Descriptor

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

func (*GetKeyResponse) GetKey

func (m *GetKeyResponse) GetKey() *Key

func (*GetKeyResponse) ProtoMessage

func (*GetKeyResponse) ProtoMessage()

func (*GetKeyResponse) Reset

func (m *GetKeyResponse) Reset()

func (*GetKeyResponse) String

func (m *GetKeyResponse) String() string

func (*GetKeyResponse) XXX_DiscardUnknown

func (m *GetKeyResponse) XXX_DiscardUnknown()

func (*GetKeyResponse) XXX_Marshal

func (m *GetKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetKeyResponse) XXX_Merge

func (m *GetKeyResponse) XXX_Merge(src proto.Message)

func (*GetKeyResponse) XXX_Size

func (m *GetKeyResponse) XXX_Size() int

func (*GetKeyResponse) XXX_Unmarshal

func (m *GetKeyResponse) XXX_Unmarshal(b []byte) error

type GetNodeRequest

type GetNodeRequest struct {
	Hostname             string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetNodeRequest) Descriptor

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

func (*GetNodeRequest) GetHostname

func (m *GetNodeRequest) GetHostname() string

func (*GetNodeRequest) ProtoMessage

func (*GetNodeRequest) ProtoMessage()

func (*GetNodeRequest) Reset

func (m *GetNodeRequest) Reset()

func (*GetNodeRequest) String

func (m *GetNodeRequest) String() string

func (*GetNodeRequest) Validate

func (m *GetNodeRequest) Validate() (err error)

func (*GetNodeRequest) XXX_DiscardUnknown

func (m *GetNodeRequest) XXX_DiscardUnknown()

func (*GetNodeRequest) XXX_Marshal

func (m *GetNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetNodeRequest) XXX_Merge

func (m *GetNodeRequest) XXX_Merge(src proto.Message)

func (*GetNodeRequest) XXX_Size

func (m *GetNodeRequest) XXX_Size() int

func (*GetNodeRequest) XXX_Unmarshal

func (m *GetNodeRequest) XXX_Unmarshal(b []byte) error

type GetNodeResponse

type GetNodeResponse struct {
	Node                 *Node    `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetNodeResponse) Descriptor

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

func (*GetNodeResponse) GetNode

func (m *GetNodeResponse) GetNode() *Node

func (*GetNodeResponse) ProtoMessage

func (*GetNodeResponse) ProtoMessage()

func (*GetNodeResponse) Reset

func (m *GetNodeResponse) Reset()

func (*GetNodeResponse) String

func (m *GetNodeResponse) String() string

func (*GetNodeResponse) XXX_DiscardUnknown

func (m *GetNodeResponse) XXX_DiscardUnknown()

func (*GetNodeResponse) XXX_Marshal

func (m *GetNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetNodeResponse) XXX_Merge

func (m *GetNodeResponse) XXX_Merge(src proto.Message)

func (*GetNodeResponse) XXX_Size

func (m *GetNodeResponse) XXX_Size() int

func (*GetNodeResponse) XXX_Unmarshal

func (m *GetNodeResponse) XXX_Unmarshal(b []byte) error

type GetSessionRequest

type GetSessionRequest struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetSessionRequest) Descriptor

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

func (*GetSessionRequest) GetId

func (m *GetSessionRequest) GetId() int64

func (*GetSessionRequest) ProtoMessage

func (*GetSessionRequest) ProtoMessage()

func (*GetSessionRequest) Reset

func (m *GetSessionRequest) Reset()

func (*GetSessionRequest) String

func (m *GetSessionRequest) String() string

func (*GetSessionRequest) XXX_DiscardUnknown

func (m *GetSessionRequest) XXX_DiscardUnknown()

func (*GetSessionRequest) XXX_Marshal

func (m *GetSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetSessionRequest) XXX_Merge

func (m *GetSessionRequest) XXX_Merge(src proto.Message)

func (*GetSessionRequest) XXX_Size

func (m *GetSessionRequest) XXX_Size() int

func (*GetSessionRequest) XXX_Unmarshal

func (m *GetSessionRequest) XXX_Unmarshal(b []byte) error

type GetSessionResponse

type GetSessionResponse struct {
	Session              *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetSessionResponse) Descriptor

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

func (*GetSessionResponse) GetSession

func (m *GetSessionResponse) GetSession() *Session

func (*GetSessionResponse) ProtoMessage

func (*GetSessionResponse) ProtoMessage()

func (*GetSessionResponse) Reset

func (m *GetSessionResponse) Reset()

func (*GetSessionResponse) String

func (m *GetSessionResponse) String() string

func (*GetSessionResponse) XXX_DiscardUnknown

func (m *GetSessionResponse) XXX_DiscardUnknown()

func (*GetSessionResponse) XXX_Marshal

func (m *GetSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetSessionResponse) XXX_Merge

func (m *GetSessionResponse) XXX_Merge(src proto.Message)

func (*GetSessionResponse) XXX_Size

func (m *GetSessionResponse) XXX_Size() int

func (*GetSessionResponse) XXX_Unmarshal

func (m *GetSessionResponse) XXX_Unmarshal(b []byte) error

type GetTokenRequest

type GetTokenRequest struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Token                string   `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTokenRequest) Descriptor

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

func (*GetTokenRequest) GetId

func (m *GetTokenRequest) GetId() int64

func (*GetTokenRequest) GetToken

func (m *GetTokenRequest) GetToken() string

func (*GetTokenRequest) ProtoMessage

func (*GetTokenRequest) ProtoMessage()

func (*GetTokenRequest) Reset

func (m *GetTokenRequest) Reset()

func (*GetTokenRequest) String

func (m *GetTokenRequest) String() string

func (*GetTokenRequest) Validate

func (m *GetTokenRequest) Validate() (err error)

func (*GetTokenRequest) XXX_DiscardUnknown

func (m *GetTokenRequest) XXX_DiscardUnknown()

func (*GetTokenRequest) XXX_Marshal

func (m *GetTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTokenRequest) XXX_Merge

func (m *GetTokenRequest) XXX_Merge(src proto.Message)

func (*GetTokenRequest) XXX_Size

func (m *GetTokenRequest) XXX_Size() int

func (*GetTokenRequest) XXX_Unmarshal

func (m *GetTokenRequest) XXX_Unmarshal(b []byte) error

type GetTokenResponse

type GetTokenResponse struct {
	Token                *Token   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTokenResponse) Descriptor

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

func (*GetTokenResponse) GetToken

func (m *GetTokenResponse) GetToken() *Token

func (*GetTokenResponse) ProtoMessage

func (*GetTokenResponse) ProtoMessage()

func (*GetTokenResponse) Reset

func (m *GetTokenResponse) Reset()

func (*GetTokenResponse) String

func (m *GetTokenResponse) String() string

func (*GetTokenResponse) XXX_DiscardUnknown

func (m *GetTokenResponse) XXX_DiscardUnknown()

func (*GetTokenResponse) XXX_Marshal

func (m *GetTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTokenResponse) XXX_Merge

func (m *GetTokenResponse) XXX_Merge(src proto.Message)

func (*GetTokenResponse) XXX_Size

func (m *GetTokenResponse) XXX_Size() int

func (*GetTokenResponse) XXX_Unmarshal

func (m *GetTokenResponse) XXX_Unmarshal(b []byte) error

type GetUserRequest

type GetUserRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserRequest) Descriptor

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

func (*GetUserRequest) GetAccount

func (m *GetUserRequest) GetAccount() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) Reset

func (m *GetUserRequest) Reset()

func (*GetUserRequest) String

func (m *GetUserRequest) String() string

func (*GetUserRequest) Validate

func (m *GetUserRequest) Validate() (err error)

func (*GetUserRequest) XXX_DiscardUnknown

func (m *GetUserRequest) XXX_DiscardUnknown()

func (*GetUserRequest) XXX_Marshal

func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserRequest) XXX_Merge

func (m *GetUserRequest) XXX_Merge(src proto.Message)

func (*GetUserRequest) XXX_Size

func (m *GetUserRequest) XXX_Size() int

func (*GetUserRequest) XXX_Unmarshal

func (m *GetUserRequest) XXX_Unmarshal(b []byte) error

type GetUserResponse

type GetUserResponse struct {
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserResponse) Descriptor

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

func (*GetUserResponse) GetUser

func (m *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) Reset

func (m *GetUserResponse) Reset()

func (*GetUserResponse) String

func (m *GetUserResponse) String() string

func (*GetUserResponse) XXX_DiscardUnknown

func (m *GetUserResponse) XXX_DiscardUnknown()

func (*GetUserResponse) XXX_Marshal

func (m *GetUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserResponse) XXX_Merge

func (m *GetUserResponse) XXX_Merge(src proto.Message)

func (*GetUserResponse) XXX_Size

func (m *GetUserResponse) XXX_Size() int

func (*GetUserResponse) XXX_Unmarshal

func (m *GetUserResponse) XXX_Unmarshal(b []byte) error

type Grant

type Grant struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	HostnamePattern      string   `protobuf:"bytes,2,opt,name=hostname_pattern,json=hostnamePattern,proto3" json:"hostname_pattern,omitempty"`
	User                 string   `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	ExpiredAt            int64    `protobuf:"varint,4,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"`
	CreatedAt            int64    `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Grant) Descriptor

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

func (*Grant) GetAccount

func (m *Grant) GetAccount() string

func (*Grant) GetCreatedAt

func (m *Grant) GetCreatedAt() int64

func (*Grant) GetExpiredAt

func (m *Grant) GetExpiredAt() int64

func (*Grant) GetHostnamePattern

func (m *Grant) GetHostnamePattern() string

func (*Grant) GetUser

func (m *Grant) GetUser() string

func (*Grant) ProtoMessage

func (*Grant) ProtoMessage()

func (*Grant) Reset

func (m *Grant) Reset()

func (*Grant) String

func (m *Grant) String() string

func (*Grant) XXX_DiscardUnknown

func (m *Grant) XXX_DiscardUnknown()

func (*Grant) XXX_Marshal

func (m *Grant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Grant) XXX_Merge

func (m *Grant) XXX_Merge(src proto.Message)

func (*Grant) XXX_Size

func (m *Grant) XXX_Size() int

func (*Grant) XXX_Unmarshal

func (m *Grant) XXX_Unmarshal(b []byte) error

type GrantItem

type GrantItem struct {
	Hostname             string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	User                 string   `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	ExpiredAt            int64    `protobuf:"varint,3,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GrantItem) Descriptor

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

func (*GrantItem) GetExpiredAt

func (m *GrantItem) GetExpiredAt() int64

func (*GrantItem) GetHostname

func (m *GrantItem) GetHostname() string

func (*GrantItem) GetUser

func (m *GrantItem) GetUser() string

func (*GrantItem) ProtoMessage

func (*GrantItem) ProtoMessage()

func (*GrantItem) Reset

func (m *GrantItem) Reset()

func (*GrantItem) String

func (m *GrantItem) String() string

func (*GrantItem) XXX_DiscardUnknown

func (m *GrantItem) XXX_DiscardUnknown()

func (*GrantItem) XXX_Marshal

func (m *GrantItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GrantItem) XXX_Merge

func (m *GrantItem) XXX_Merge(src proto.Message)

func (*GrantItem) XXX_Size

func (m *GrantItem) XXX_Size() int

func (*GrantItem) XXX_Unmarshal

func (m *GrantItem) XXX_Unmarshal(b []byte) error

type GrantServiceClient

type GrantServiceClient interface {
	PutGrant(ctx context.Context, in *PutGrantRequest, opts ...grpc.CallOption) (*PutGrantResponse, error)
	ListGrants(ctx context.Context, in *ListGrantsRequest, opts ...grpc.CallOption) (*ListGrantsResponse, error)
	DeleteGrant(ctx context.Context, in *DeleteGrantRequest, opts ...grpc.CallOption) (*DeleteGrantResponse, error)
	CheckGrant(ctx context.Context, in *CheckGrantRequest, opts ...grpc.CallOption) (*CheckGrantResponse, error)
	ListGrantItems(ctx context.Context, in *ListGrantItemsRequest, opts ...grpc.CallOption) (*ListGrantItemsResponse, error)
}

GrantServiceClient is the client API for GrantService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGrantServiceClient

func NewGrantServiceClient(cc *grpc.ClientConn) GrantServiceClient

type GrantServiceServer

GrantServiceServer is the server API for GrantService service.

type Key

type Key struct {
	Fingerprint          string   `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	Account              string   `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Source               string   `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	CreatedAt            int64    `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ViewedAt             int64    `protobuf:"varint,6,opt,name=viewed_at,json=viewedAt,proto3" json:"viewed_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Key) Descriptor

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

func (*Key) GetAccount

func (m *Key) GetAccount() string

func (*Key) GetCreatedAt

func (m *Key) GetCreatedAt() int64

func (*Key) GetFingerprint

func (m *Key) GetFingerprint() string

func (*Key) GetName

func (m *Key) GetName() string

func (*Key) GetSource

func (m *Key) GetSource() string

func (*Key) GetViewedAt

func (m *Key) GetViewedAt() int64

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) Reset

func (m *Key) Reset()

func (*Key) String

func (m *Key) String() string

func (*Key) XXX_DiscardUnknown

func (m *Key) XXX_DiscardUnknown()

func (*Key) XXX_Marshal

func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Key) XXX_Merge

func (m *Key) XXX_Merge(src proto.Message)

func (*Key) XXX_Size

func (m *Key) XXX_Size() int

func (*Key) XXX_Unmarshal

func (m *Key) XXX_Unmarshal(b []byte) error

type KeyServiceClient

type KeyServiceClient interface {
	ListKeys(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error)
	CreateKey(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*CreateKeyResponse, error)
	DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*DeleteKeyResponse, error)
	GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*GetKeyResponse, error)
	TouchKey(ctx context.Context, in *TouchKeyRequest, opts ...grpc.CallOption) (*TouchKeyResponse, error)
}

KeyServiceClient is the client API for KeyService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewKeyServiceClient

func NewKeyServiceClient(cc *grpc.ClientConn) KeyServiceClient

type KeyServiceServer

KeyServiceServer is the server API for KeyService service.

type ListGrantItemsRequest

type ListGrantItemsRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListGrantItemsRequest) Descriptor

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

func (*ListGrantItemsRequest) GetAccount

func (m *ListGrantItemsRequest) GetAccount() string

func (*ListGrantItemsRequest) ProtoMessage

func (*ListGrantItemsRequest) ProtoMessage()

func (*ListGrantItemsRequest) Reset

func (m *ListGrantItemsRequest) Reset()

func (*ListGrantItemsRequest) String

func (m *ListGrantItemsRequest) String() string

func (*ListGrantItemsRequest) Validate

func (m *ListGrantItemsRequest) Validate() (err error)

func (*ListGrantItemsRequest) XXX_DiscardUnknown

func (m *ListGrantItemsRequest) XXX_DiscardUnknown()

func (*ListGrantItemsRequest) XXX_Marshal

func (m *ListGrantItemsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListGrantItemsRequest) XXX_Merge

func (m *ListGrantItemsRequest) XXX_Merge(src proto.Message)

func (*ListGrantItemsRequest) XXX_Size

func (m *ListGrantItemsRequest) XXX_Size() int

func (*ListGrantItemsRequest) XXX_Unmarshal

func (m *ListGrantItemsRequest) XXX_Unmarshal(b []byte) error

type ListGrantItemsResponse

type ListGrantItemsResponse struct {
	GrantItems           []*GrantItem `protobuf:"bytes,1,rep,name=grant_items,json=grantItems,proto3" json:"grant_items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ListGrantItemsResponse) Descriptor

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

func (*ListGrantItemsResponse) GetGrantItems

func (m *ListGrantItemsResponse) GetGrantItems() []*GrantItem

func (*ListGrantItemsResponse) ProtoMessage

func (*ListGrantItemsResponse) ProtoMessage()

func (*ListGrantItemsResponse) Reset

func (m *ListGrantItemsResponse) Reset()

func (*ListGrantItemsResponse) String

func (m *ListGrantItemsResponse) String() string

func (*ListGrantItemsResponse) XXX_DiscardUnknown

func (m *ListGrantItemsResponse) XXX_DiscardUnknown()

func (*ListGrantItemsResponse) XXX_Marshal

func (m *ListGrantItemsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListGrantItemsResponse) XXX_Merge

func (m *ListGrantItemsResponse) XXX_Merge(src proto.Message)

func (*ListGrantItemsResponse) XXX_Size

func (m *ListGrantItemsResponse) XXX_Size() int

func (*ListGrantItemsResponse) XXX_Unmarshal

func (m *ListGrantItemsResponse) XXX_Unmarshal(b []byte) error

type ListGrantsRequest

type ListGrantsRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListGrantsRequest) Descriptor

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

func (*ListGrantsRequest) GetAccount

func (m *ListGrantsRequest) GetAccount() string

func (*ListGrantsRequest) ProtoMessage

func (*ListGrantsRequest) ProtoMessage()

func (*ListGrantsRequest) Reset

func (m *ListGrantsRequest) Reset()

func (*ListGrantsRequest) String

func (m *ListGrantsRequest) String() string

func (*ListGrantsRequest) Validate

func (m *ListGrantsRequest) Validate() (err error)

func (*ListGrantsRequest) XXX_DiscardUnknown

func (m *ListGrantsRequest) XXX_DiscardUnknown()

func (*ListGrantsRequest) XXX_Marshal

func (m *ListGrantsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListGrantsRequest) XXX_Merge

func (m *ListGrantsRequest) XXX_Merge(src proto.Message)

func (*ListGrantsRequest) XXX_Size

func (m *ListGrantsRequest) XXX_Size() int

func (*ListGrantsRequest) XXX_Unmarshal

func (m *ListGrantsRequest) XXX_Unmarshal(b []byte) error

type ListGrantsResponse

type ListGrantsResponse struct {
	Grants               []*Grant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants,omitempty"`
	Now                  int64    `protobuf:"varint,2,opt,name=now,proto3" json:"now,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListGrantsResponse) Descriptor

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

func (*ListGrantsResponse) GetGrants

func (m *ListGrantsResponse) GetGrants() []*Grant

func (*ListGrantsResponse) GetNow

func (m *ListGrantsResponse) GetNow() int64

func (*ListGrantsResponse) ProtoMessage

func (*ListGrantsResponse) ProtoMessage()

func (*ListGrantsResponse) Reset

func (m *ListGrantsResponse) Reset()

func (*ListGrantsResponse) String

func (m *ListGrantsResponse) String() string

func (*ListGrantsResponse) XXX_DiscardUnknown

func (m *ListGrantsResponse) XXX_DiscardUnknown()

func (*ListGrantsResponse) XXX_Marshal

func (m *ListGrantsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListGrantsResponse) XXX_Merge

func (m *ListGrantsResponse) XXX_Merge(src proto.Message)

func (*ListGrantsResponse) XXX_Size

func (m *ListGrantsResponse) XXX_Size() int

func (*ListGrantsResponse) XXX_Unmarshal

func (m *ListGrantsResponse) XXX_Unmarshal(b []byte) error

type ListKeysRequest

type ListKeysRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListKeysRequest) Descriptor

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

func (*ListKeysRequest) GetAccount

func (m *ListKeysRequest) GetAccount() string

func (*ListKeysRequest) ProtoMessage

func (*ListKeysRequest) ProtoMessage()

func (*ListKeysRequest) Reset

func (m *ListKeysRequest) Reset()

func (*ListKeysRequest) String

func (m *ListKeysRequest) String() string

func (*ListKeysRequest) Validate

func (m *ListKeysRequest) Validate() (err error)

func (*ListKeysRequest) XXX_DiscardUnknown

func (m *ListKeysRequest) XXX_DiscardUnknown()

func (*ListKeysRequest) XXX_Marshal

func (m *ListKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListKeysRequest) XXX_Merge

func (m *ListKeysRequest) XXX_Merge(src proto.Message)

func (*ListKeysRequest) XXX_Size

func (m *ListKeysRequest) XXX_Size() int

func (*ListKeysRequest) XXX_Unmarshal

func (m *ListKeysRequest) XXX_Unmarshal(b []byte) error

type ListKeysResponse

type ListKeysResponse struct {
	Keys                 []*Key   `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListKeysResponse) Descriptor

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

func (*ListKeysResponse) GetKeys

func (m *ListKeysResponse) GetKeys() []*Key

func (*ListKeysResponse) ProtoMessage

func (*ListKeysResponse) ProtoMessage()

func (*ListKeysResponse) Reset

func (m *ListKeysResponse) Reset()

func (*ListKeysResponse) String

func (m *ListKeysResponse) String() string

func (*ListKeysResponse) XXX_DiscardUnknown

func (m *ListKeysResponse) XXX_DiscardUnknown()

func (*ListKeysResponse) XXX_Marshal

func (m *ListKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListKeysResponse) XXX_Merge

func (m *ListKeysResponse) XXX_Merge(src proto.Message)

func (*ListKeysResponse) XXX_Size

func (m *ListKeysResponse) XXX_Size() int

func (*ListKeysResponse) XXX_Unmarshal

func (m *ListKeysResponse) XXX_Unmarshal(b []byte) error

type ListMasterKeysRequest

type ListMasterKeysRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListMasterKeysRequest) Descriptor

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

func (*ListMasterKeysRequest) ProtoMessage

func (*ListMasterKeysRequest) ProtoMessage()

func (*ListMasterKeysRequest) Reset

func (m *ListMasterKeysRequest) Reset()

func (*ListMasterKeysRequest) String

func (m *ListMasterKeysRequest) String() string

func (*ListMasterKeysRequest) XXX_DiscardUnknown

func (m *ListMasterKeysRequest) XXX_DiscardUnknown()

func (*ListMasterKeysRequest) XXX_Marshal

func (m *ListMasterKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListMasterKeysRequest) XXX_Merge

func (m *ListMasterKeysRequest) XXX_Merge(src proto.Message)

func (*ListMasterKeysRequest) XXX_Size

func (m *ListMasterKeysRequest) XXX_Size() int

func (*ListMasterKeysRequest) XXX_Unmarshal

func (m *ListMasterKeysRequest) XXX_Unmarshal(b []byte) error

type ListMasterKeysResponse

type ListMasterKeysResponse struct {
	MasterKeys           []*MasterKey `protobuf:"bytes,1,rep,name=master_keys,json=masterKeys,proto3" json:"master_keys,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ListMasterKeysResponse) Descriptor

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

func (*ListMasterKeysResponse) GetMasterKeys

func (m *ListMasterKeysResponse) GetMasterKeys() []*MasterKey

func (*ListMasterKeysResponse) ProtoMessage

func (*ListMasterKeysResponse) ProtoMessage()

func (*ListMasterKeysResponse) Reset

func (m *ListMasterKeysResponse) Reset()

func (*ListMasterKeysResponse) String

func (m *ListMasterKeysResponse) String() string

func (*ListMasterKeysResponse) XXX_DiscardUnknown

func (m *ListMasterKeysResponse) XXX_DiscardUnknown()

func (*ListMasterKeysResponse) XXX_Marshal

func (m *ListMasterKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListMasterKeysResponse) XXX_Merge

func (m *ListMasterKeysResponse) XXX_Merge(src proto.Message)

func (*ListMasterKeysResponse) XXX_Size

func (m *ListMasterKeysResponse) XXX_Size() int

func (*ListMasterKeysResponse) XXX_Unmarshal

func (m *ListMasterKeysResponse) XXX_Unmarshal(b []byte) error

type ListNodesRequest

type ListNodesRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListNodesRequest) Descriptor

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

func (*ListNodesRequest) ProtoMessage

func (*ListNodesRequest) ProtoMessage()

func (*ListNodesRequest) Reset

func (m *ListNodesRequest) Reset()

func (*ListNodesRequest) String

func (m *ListNodesRequest) String() string

func (*ListNodesRequest) XXX_DiscardUnknown

func (m *ListNodesRequest) XXX_DiscardUnknown()

func (*ListNodesRequest) XXX_Marshal

func (m *ListNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListNodesRequest) XXX_Merge

func (m *ListNodesRequest) XXX_Merge(src proto.Message)

func (*ListNodesRequest) XXX_Size

func (m *ListNodesRequest) XXX_Size() int

func (*ListNodesRequest) XXX_Unmarshal

func (m *ListNodesRequest) XXX_Unmarshal(b []byte) error

type ListNodesResponse

type ListNodesResponse struct {
	Nodes                []*Node  `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListNodesResponse) Descriptor

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

func (*ListNodesResponse) GetNodes

func (m *ListNodesResponse) GetNodes() []*Node

func (*ListNodesResponse) ProtoMessage

func (*ListNodesResponse) ProtoMessage()

func (*ListNodesResponse) Reset

func (m *ListNodesResponse) Reset()

func (*ListNodesResponse) String

func (m *ListNodesResponse) String() string

func (*ListNodesResponse) XXX_DiscardUnknown

func (m *ListNodesResponse) XXX_DiscardUnknown()

func (*ListNodesResponse) XXX_Marshal

func (m *ListNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListNodesResponse) XXX_Merge

func (m *ListNodesResponse) XXX_Merge(src proto.Message)

func (*ListNodesResponse) XXX_Size

func (m *ListNodesResponse) XXX_Size() int

func (*ListNodesResponse) XXX_Unmarshal

func (m *ListNodesResponse) XXX_Unmarshal(b []byte) error

type ListSessionsRequest

type ListSessionsRequest struct {
	Skip                 int32    `protobuf:"varint,1,opt,name=skip,proto3" json:"skip,omitempty"`
	Limit                int32    `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListSessionsRequest) Descriptor

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

func (*ListSessionsRequest) GetLimit

func (m *ListSessionsRequest) GetLimit() int32

func (*ListSessionsRequest) GetSkip

func (m *ListSessionsRequest) GetSkip() int32

func (*ListSessionsRequest) ProtoMessage

func (*ListSessionsRequest) ProtoMessage()

func (*ListSessionsRequest) Reset

func (m *ListSessionsRequest) Reset()

func (*ListSessionsRequest) String

func (m *ListSessionsRequest) String() string

func (*ListSessionsRequest) Validate

func (m *ListSessionsRequest) Validate() (err error)

func (*ListSessionsRequest) XXX_DiscardUnknown

func (m *ListSessionsRequest) XXX_DiscardUnknown()

func (*ListSessionsRequest) XXX_Marshal

func (m *ListSessionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSessionsRequest) XXX_Merge

func (m *ListSessionsRequest) XXX_Merge(src proto.Message)

func (*ListSessionsRequest) XXX_Size

func (m *ListSessionsRequest) XXX_Size() int

func (*ListSessionsRequest) XXX_Unmarshal

func (m *ListSessionsRequest) XXX_Unmarshal(b []byte) error

type ListSessionsResponse

type ListSessionsResponse struct {
	Skip                 int32      `protobuf:"varint,1,opt,name=skip,proto3" json:"skip,omitempty"`
	Limit                int32      `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Total                int32      `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	Sessions             []*Session `protobuf:"bytes,4,rep,name=sessions,proto3" json:"sessions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*ListSessionsResponse) Descriptor

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

func (*ListSessionsResponse) GetLimit

func (m *ListSessionsResponse) GetLimit() int32

func (*ListSessionsResponse) GetSessions

func (m *ListSessionsResponse) GetSessions() []*Session

func (*ListSessionsResponse) GetSkip

func (m *ListSessionsResponse) GetSkip() int32

func (*ListSessionsResponse) GetTotal

func (m *ListSessionsResponse) GetTotal() int32

func (*ListSessionsResponse) ProtoMessage

func (*ListSessionsResponse) ProtoMessage()

func (*ListSessionsResponse) Reset

func (m *ListSessionsResponse) Reset()

func (*ListSessionsResponse) String

func (m *ListSessionsResponse) String() string

func (*ListSessionsResponse) XXX_DiscardUnknown

func (m *ListSessionsResponse) XXX_DiscardUnknown()

func (*ListSessionsResponse) XXX_Marshal

func (m *ListSessionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSessionsResponse) XXX_Merge

func (m *ListSessionsResponse) XXX_Merge(src proto.Message)

func (*ListSessionsResponse) XXX_Size

func (m *ListSessionsResponse) XXX_Size() int

func (*ListSessionsResponse) XXX_Unmarshal

func (m *ListSessionsResponse) XXX_Unmarshal(b []byte) error

type ListTokensRequest

type ListTokensRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListTokensRequest) Descriptor

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

func (*ListTokensRequest) GetAccount

func (m *ListTokensRequest) GetAccount() string

func (*ListTokensRequest) ProtoMessage

func (*ListTokensRequest) ProtoMessage()

func (*ListTokensRequest) Reset

func (m *ListTokensRequest) Reset()

func (*ListTokensRequest) String

func (m *ListTokensRequest) String() string

func (*ListTokensRequest) Validate

func (m *ListTokensRequest) Validate() (err error)

func (*ListTokensRequest) XXX_DiscardUnknown

func (m *ListTokensRequest) XXX_DiscardUnknown()

func (*ListTokensRequest) XXX_Marshal

func (m *ListTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListTokensRequest) XXX_Merge

func (m *ListTokensRequest) XXX_Merge(src proto.Message)

func (*ListTokensRequest) XXX_Size

func (m *ListTokensRequest) XXX_Size() int

func (*ListTokensRequest) XXX_Unmarshal

func (m *ListTokensRequest) XXX_Unmarshal(b []byte) error

type ListTokensResponse

type ListTokensResponse struct {
	Tokens               []*Token `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListTokensResponse) Descriptor

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

func (*ListTokensResponse) GetTokens

func (m *ListTokensResponse) GetTokens() []*Token

func (*ListTokensResponse) ProtoMessage

func (*ListTokensResponse) ProtoMessage()

func (*ListTokensResponse) Reset

func (m *ListTokensResponse) Reset()

func (*ListTokensResponse) String

func (m *ListTokensResponse) String() string

func (*ListTokensResponse) XXX_DiscardUnknown

func (m *ListTokensResponse) XXX_DiscardUnknown()

func (*ListTokensResponse) XXX_Marshal

func (m *ListTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListTokensResponse) XXX_Merge

func (m *ListTokensResponse) XXX_Merge(src proto.Message)

func (*ListTokensResponse) XXX_Size

func (m *ListTokensResponse) XXX_Size() int

func (*ListTokensResponse) XXX_Unmarshal

func (m *ListTokensResponse) XXX_Unmarshal(b []byte) error

type ListUsersRequest

type ListUsersRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListUsersRequest) Descriptor

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

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) Reset

func (m *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (m *ListUsersRequest) String() string

func (*ListUsersRequest) XXX_DiscardUnknown

func (m *ListUsersRequest) XXX_DiscardUnknown()

func (*ListUsersRequest) XXX_Marshal

func (m *ListUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListUsersRequest) XXX_Merge

func (m *ListUsersRequest) XXX_Merge(src proto.Message)

func (*ListUsersRequest) XXX_Size

func (m *ListUsersRequest) XXX_Size() int

func (*ListUsersRequest) XXX_Unmarshal

func (m *ListUsersRequest) XXX_Unmarshal(b []byte) error

type ListUsersResponse

type ListUsersResponse struct {
	Users                []*User  `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListUsersResponse) Descriptor

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

func (*ListUsersResponse) GetUsers

func (m *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) Reset

func (m *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (m *ListUsersResponse) String() string

func (*ListUsersResponse) XXX_DiscardUnknown

func (m *ListUsersResponse) XXX_DiscardUnknown()

func (*ListUsersResponse) XXX_Marshal

func (m *ListUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListUsersResponse) XXX_Merge

func (m *ListUsersResponse) XXX_Merge(src proto.Message)

func (*ListUsersResponse) XXX_Size

func (m *ListUsersResponse) XXX_Size() int

func (*ListUsersResponse) XXX_Unmarshal

func (m *ListUsersResponse) XXX_Unmarshal(b []byte) error

type MasterKey

type MasterKey struct {
	Fingerprint          string   `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	PublicKey            string   `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MasterKey) Descriptor

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

func (*MasterKey) GetFingerprint

func (m *MasterKey) GetFingerprint() string

func (*MasterKey) GetPublicKey

func (m *MasterKey) GetPublicKey() string

func (*MasterKey) ProtoMessage

func (*MasterKey) ProtoMessage()

func (*MasterKey) Reset

func (m *MasterKey) Reset()

func (*MasterKey) String

func (m *MasterKey) String() string

func (*MasterKey) XXX_DiscardUnknown

func (m *MasterKey) XXX_DiscardUnknown()

func (*MasterKey) XXX_Marshal

func (m *MasterKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MasterKey) XXX_Merge

func (m *MasterKey) XXX_Merge(src proto.Message)

func (*MasterKey) XXX_Size

func (m *MasterKey) XXX_Size() int

func (*MasterKey) XXX_Unmarshal

func (m *MasterKey) XXX_Unmarshal(b []byte) error

type MasterKeyServiceClient

type MasterKeyServiceClient interface {
	ListMasterKeys(ctx context.Context, in *ListMasterKeysRequest, opts ...grpc.CallOption) (*ListMasterKeysResponse, error)
	UpdateAllMasterKeys(ctx context.Context, in *UpdateAllMasterKeysRequest, opts ...grpc.CallOption) (*UpdateAllMasterKeysResponse, error)
}

MasterKeyServiceClient is the client API for MasterKeyService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMasterKeyServiceClient

func NewMasterKeyServiceClient(cc *grpc.ClientConn) MasterKeyServiceClient

type MasterKeyServiceServer

type MasterKeyServiceServer interface {
	ListMasterKeys(context.Context, *ListMasterKeysRequest) (*ListMasterKeysResponse, error)
	UpdateAllMasterKeys(context.Context, *UpdateAllMasterKeysRequest) (*UpdateAllMasterKeysResponse, error)
}

MasterKeyServiceServer is the server API for MasterKeyService service.

type Node

type Node struct {
	Hostname             string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	User                 string   `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	Address              string   `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Source               string   `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	CreatedAt            int64    `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ViewedAt             int64    `protobuf:"varint,6,opt,name=viewed_at,json=viewedAt,proto3" json:"viewed_at,omitempty"`
	IsKeyManaged         bool     `protobuf:"varint,7,opt,name=is_key_managed,json=isKeyManaged,proto3" json:"is_key_managed,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Node) Descriptor

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

func (*Node) GetAddress

func (m *Node) GetAddress() string

func (*Node) GetCreatedAt

func (m *Node) GetCreatedAt() int64

func (*Node) GetHostname

func (m *Node) GetHostname() string

func (*Node) GetIsKeyManaged

func (m *Node) GetIsKeyManaged() bool

func (*Node) GetSource

func (m *Node) GetSource() string

func (*Node) GetUser

func (m *Node) GetUser() string

func (*Node) GetViewedAt

func (m *Node) GetViewedAt() int64

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

func (*Node) XXX_DiscardUnknown

func (m *Node) XXX_DiscardUnknown()

func (*Node) XXX_Marshal

func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Node) XXX_Merge

func (m *Node) XXX_Merge(src proto.Message)

func (*Node) XXX_Size

func (m *Node) XXX_Size() int

func (*Node) XXX_Unmarshal

func (m *Node) XXX_Unmarshal(b []byte) error

type NodeServiceClient

type NodeServiceClient interface {
	ListNodes(ctx context.Context, in *ListNodesRequest, opts ...grpc.CallOption) (*ListNodesResponse, error)
	PutNode(ctx context.Context, in *PutNodeRequest, opts ...grpc.CallOption) (*PutNodeResponse, error)
	DeleteNode(ctx context.Context, in *DeleteNodeRequest, opts ...grpc.CallOption) (*DeleteNodeResponse, error)
	GetNode(ctx context.Context, in *GetNodeRequest, opts ...grpc.CallOption) (*GetNodeResponse, error)
	TouchNode(ctx context.Context, in *TouchNodeRequest, opts ...grpc.CallOption) (*TouchNodeResponse, error)
	UpdateNode(ctx context.Context, in *UpdateNodeRequest, opts ...grpc.CallOption) (*UpdateNodeResponse, error)
}

NodeServiceClient is the client API for NodeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewNodeServiceClient

func NewNodeServiceClient(cc *grpc.ClientConn) NodeServiceClient

type NodeServiceServer

NodeServiceServer is the server API for NodeService service.

type Options

type Options struct {
	// Daemon daemon options
	Daemon DaemonOptions `yaml:"daemon"`

	// Web web options
	Web WebOptions `yaml:"web"`

	// SSHD sshd options
	SSHD SSHDOptions `yaml:"sshd"`
}

Options options for bastion

func LoadOptions

func LoadOptions(f string) (opt Options, err error)

LoadOptions load options from file

func (Options) String

func (o Options) String() string

type PutGrantRequest

type PutGrantRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	HostnamePattern      string   `protobuf:"bytes,2,opt,name=hostname_pattern,json=hostnamePattern,proto3" json:"hostname_pattern,omitempty"`
	User                 string   `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	ExpiredAt            int64    `protobuf:"varint,4,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PutGrantRequest) Descriptor

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

func (*PutGrantRequest) GetAccount

func (m *PutGrantRequest) GetAccount() string

func (*PutGrantRequest) GetExpiredAt

func (m *PutGrantRequest) GetExpiredAt() int64

func (*PutGrantRequest) GetHostnamePattern

func (m *PutGrantRequest) GetHostnamePattern() string

func (*PutGrantRequest) GetUser

func (m *PutGrantRequest) GetUser() string

func (*PutGrantRequest) ProtoMessage

func (*PutGrantRequest) ProtoMessage()

func (*PutGrantRequest) Reset

func (m *PutGrantRequest) Reset()

func (*PutGrantRequest) String

func (m *PutGrantRequest) String() string

func (*PutGrantRequest) Validate

func (m *PutGrantRequest) Validate() (err error)

func (*PutGrantRequest) XXX_DiscardUnknown

func (m *PutGrantRequest) XXX_DiscardUnknown()

func (*PutGrantRequest) XXX_Marshal

func (m *PutGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutGrantRequest) XXX_Merge

func (m *PutGrantRequest) XXX_Merge(src proto.Message)

func (*PutGrantRequest) XXX_Size

func (m *PutGrantRequest) XXX_Size() int

func (*PutGrantRequest) XXX_Unmarshal

func (m *PutGrantRequest) XXX_Unmarshal(b []byte) error

type PutGrantResponse

type PutGrantResponse struct {
	Grant                *Grant   `protobuf:"bytes,1,opt,name=grant,proto3" json:"grant,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PutGrantResponse) Descriptor

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

func (*PutGrantResponse) GetGrant

func (m *PutGrantResponse) GetGrant() *Grant

func (*PutGrantResponse) ProtoMessage

func (*PutGrantResponse) ProtoMessage()

func (*PutGrantResponse) Reset

func (m *PutGrantResponse) Reset()

func (*PutGrantResponse) String

func (m *PutGrantResponse) String() string

func (*PutGrantResponse) XXX_DiscardUnknown

func (m *PutGrantResponse) XXX_DiscardUnknown()

func (*PutGrantResponse) XXX_Marshal

func (m *PutGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutGrantResponse) XXX_Merge

func (m *PutGrantResponse) XXX_Merge(src proto.Message)

func (*PutGrantResponse) XXX_Size

func (m *PutGrantResponse) XXX_Size() int

func (*PutGrantResponse) XXX_Unmarshal

func (m *PutGrantResponse) XXX_Unmarshal(b []byte) error

type PutNodeRequest

type PutNodeRequest struct {
	Hostname             string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	User                 string   `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	Address              string   `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Source               string   `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PutNodeRequest) Descriptor

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

func (*PutNodeRequest) GetAddress

func (m *PutNodeRequest) GetAddress() string

func (*PutNodeRequest) GetHostname

func (m *PutNodeRequest) GetHostname() string

func (*PutNodeRequest) GetSource

func (m *PutNodeRequest) GetSource() string

func (*PutNodeRequest) GetUser

func (m *PutNodeRequest) GetUser() string

func (*PutNodeRequest) ProtoMessage

func (*PutNodeRequest) ProtoMessage()

func (*PutNodeRequest) Reset

func (m *PutNodeRequest) Reset()

func (*PutNodeRequest) String

func (m *PutNodeRequest) String() string

func (*PutNodeRequest) Validate

func (m *PutNodeRequest) Validate() (err error)

func (*PutNodeRequest) XXX_DiscardUnknown

func (m *PutNodeRequest) XXX_DiscardUnknown()

func (*PutNodeRequest) XXX_Marshal

func (m *PutNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutNodeRequest) XXX_Merge

func (m *PutNodeRequest) XXX_Merge(src proto.Message)

func (*PutNodeRequest) XXX_Size

func (m *PutNodeRequest) XXX_Size() int

func (*PutNodeRequest) XXX_Unmarshal

func (m *PutNodeRequest) XXX_Unmarshal(b []byte) error

type PutNodeResponse

type PutNodeResponse struct {
	Node                 *Node    `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PutNodeResponse) Descriptor

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

func (*PutNodeResponse) GetNode

func (m *PutNodeResponse) GetNode() *Node

func (*PutNodeResponse) ProtoMessage

func (*PutNodeResponse) ProtoMessage()

func (*PutNodeResponse) Reset

func (m *PutNodeResponse) Reset()

func (*PutNodeResponse) String

func (m *PutNodeResponse) String() string

func (*PutNodeResponse) XXX_DiscardUnknown

func (m *PutNodeResponse) XXX_DiscardUnknown()

func (*PutNodeResponse) XXX_Marshal

func (m *PutNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutNodeResponse) XXX_Merge

func (m *PutNodeResponse) XXX_Merge(src proto.Message)

func (*PutNodeResponse) XXX_Size

func (m *PutNodeResponse) XXX_Size() int

func (*PutNodeResponse) XXX_Unmarshal

func (m *PutNodeResponse) XXX_Unmarshal(b []byte) error

type ReadReplayRequest

type ReadReplayRequest struct {
	SessionId            int64    `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReadReplayRequest) Descriptor

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

func (*ReadReplayRequest) GetSessionId

func (m *ReadReplayRequest) GetSessionId() int64

func (*ReadReplayRequest) ProtoMessage

func (*ReadReplayRequest) ProtoMessage()

func (*ReadReplayRequest) Reset

func (m *ReadReplayRequest) Reset()

func (*ReadReplayRequest) String

func (m *ReadReplayRequest) String() string

func (*ReadReplayRequest) XXX_DiscardUnknown

func (m *ReadReplayRequest) XXX_DiscardUnknown()

func (*ReadReplayRequest) XXX_Marshal

func (m *ReadReplayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReadReplayRequest) XXX_Merge

func (m *ReadReplayRequest) XXX_Merge(src proto.Message)

func (*ReadReplayRequest) XXX_Size

func (m *ReadReplayRequest) XXX_Size() int

func (*ReadReplayRequest) XXX_Unmarshal

func (m *ReadReplayRequest) XXX_Unmarshal(b []byte) error

type ReplayFrame

type ReplayFrame struct {
	SessionId            int64    `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Timestamp            uint32   `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Type                 uint32   `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
	Payload              []byte   `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplayFrame) Descriptor

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

func (*ReplayFrame) GetPayload

func (m *ReplayFrame) GetPayload() []byte

func (*ReplayFrame) GetSessionId

func (m *ReplayFrame) GetSessionId() int64

func (*ReplayFrame) GetTimestamp

func (m *ReplayFrame) GetTimestamp() uint32

func (*ReplayFrame) GetType

func (m *ReplayFrame) GetType() uint32

func (*ReplayFrame) ProtoMessage

func (*ReplayFrame) ProtoMessage()

func (*ReplayFrame) Reset

func (m *ReplayFrame) Reset()

func (*ReplayFrame) String

func (m *ReplayFrame) String() string

func (*ReplayFrame) XXX_DiscardUnknown

func (m *ReplayFrame) XXX_DiscardUnknown()

func (*ReplayFrame) XXX_Marshal

func (m *ReplayFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplayFrame) XXX_Merge

func (m *ReplayFrame) XXX_Merge(src proto.Message)

func (*ReplayFrame) XXX_Size

func (m *ReplayFrame) XXX_Size() int

func (*ReplayFrame) XXX_Unmarshal

func (m *ReplayFrame) XXX_Unmarshal(b []byte) error

type ReplaySearchResult

type ReplaySearchResult struct {
	SessionId            int64    `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Timestamp            uint32   `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Account              string   `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
	CreatedAt            int64    `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplaySearchResult) Descriptor

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

func (*ReplaySearchResult) GetAccount

func (m *ReplaySearchResult) GetAccount() string

func (*ReplaySearchResult) GetCreatedAt

func (m *ReplaySearchResult) GetCreatedAt() int64

func (*ReplaySearchResult) GetSessionId

func (m *ReplaySearchResult) GetSessionId() int64

func (*ReplaySearchResult) GetTimestamp

func (m *ReplaySearchResult) GetTimestamp() uint32

func (*ReplaySearchResult) ProtoMessage

func (*ReplaySearchResult) ProtoMessage()

func (*ReplaySearchResult) Reset

func (m *ReplaySearchResult) Reset()

func (*ReplaySearchResult) String

func (m *ReplaySearchResult) String() string

func (*ReplaySearchResult) XXX_DiscardUnknown

func (m *ReplaySearchResult) XXX_DiscardUnknown()

func (*ReplaySearchResult) XXX_Marshal

func (m *ReplaySearchResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplaySearchResult) XXX_Merge

func (m *ReplaySearchResult) XXX_Merge(src proto.Message)

func (*ReplaySearchResult) XXX_Size

func (m *ReplaySearchResult) XXX_Size() int

func (*ReplaySearchResult) XXX_Unmarshal

func (m *ReplaySearchResult) XXX_Unmarshal(b []byte) error

type ReplayServiceClient

type ReplayServiceClient interface {
	WriteReplay(ctx context.Context, opts ...grpc.CallOption) (ReplayService_WriteReplayClient, error)
	ReadReplay(ctx context.Context, in *ReadReplayRequest, opts ...grpc.CallOption) (ReplayService_ReadReplayClient, error)
	SubmitReplay(ctx context.Context, in *SubmitReplayRequest, opts ...grpc.CallOption) (*SubmitReplayResponse, error)
	SearchReplay(ctx context.Context, in *SearchReplayRequest, opts ...grpc.CallOption) (*SearchReplayResponse, error)
}

ReplayServiceClient is the client API for ReplayService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewReplayServiceClient

func NewReplayServiceClient(cc *grpc.ClientConn) ReplayServiceClient

type ReplayServiceServer

ReplayServiceServer is the server API for ReplayService service.

type ReplayService_ReadReplayClient

type ReplayService_ReadReplayClient interface {
	Recv() (*ReplayFrame, error)
	grpc.ClientStream
}

type ReplayService_ReadReplayServer

type ReplayService_ReadReplayServer interface {
	Send(*ReplayFrame) error
	grpc.ServerStream
}

type ReplayService_WriteReplayClient

type ReplayService_WriteReplayClient interface {
	Send(*ReplayFrame) error
	CloseAndRecv() (*WriteReplayResponse, error)
	grpc.ClientStream
}

type ReplayService_WriteReplayServer

type ReplayService_WriteReplayServer interface {
	SendAndClose(*WriteReplayResponse) error
	Recv() (*ReplayFrame, error)
	grpc.ServerStream
}

type SSHDOptions

type SSHDOptions struct {
	// Dev development mode, will output colorful logs
	Dev bool `yaml:"dev"`

	// Host host to bind for bastion sshd, default to "0.0.0.0"
	Host string `yaml:"host"`

	// Port port to bind for bastion sshd, default to 22
	Port int `yaml:"port"`

	// DaemonEndpoint address of bastion daemon rpc service, default to "127.0.0.1:9777"
	DaemonEndpoint string `yaml:"daemon_endpoint"`

	// ClientKeys client key file path for bastion ssh proxy
	// should presents on all target hosts' /root/.ssh/authorized_keys
	// default to "/etc/bastion/client_rsa"
	ClientKeys []string `yaml:"client_keys"`

	// HostKey host key file path for bastion sshd
	// default to "/etc/bastion/host_rsa"
	HostKey string `yaml:"host_key"`

	// SandboxImage sandbox image, default to "bastion-sandbox"
	SandboxImage string `yaml:"sandbox_image"`

	// SandboxDir storage dir for sandboxes, default to "/var/lib/bastion/sandboxes"
	SandboxDir string `yaml:"sandbox_dir"`

	// SandboxEndpoint accessible bastion IP from sandbox, basically the IP of docker0 virtual network adapter
	// default to "172.17.0.1"
	SandboxEndpoint string `yaml:"sandbox_endpoint"`

	// SandboxMemory memory limitation of sandbox
	SandboxMemory int64 `yaml:"sandbox_memory"`

	// SandboxNanoCPUs mcpu limitation of sandbox
	SandboxNanoCPUs int64 `yaml:"sandbox_nano_cpus"`
}

SSHDOptions sshd options

func (SSHDOptions) String

func (o SSHDOptions) String() string

type SearchReplayRequest

type SearchReplayRequest struct {
	Keyword              string   `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SearchReplayRequest) Descriptor

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

func (*SearchReplayRequest) GetKeyword

func (m *SearchReplayRequest) GetKeyword() string

func (*SearchReplayRequest) ProtoMessage

func (*SearchReplayRequest) ProtoMessage()

func (*SearchReplayRequest) Reset

func (m *SearchReplayRequest) Reset()

func (*SearchReplayRequest) String

func (m *SearchReplayRequest) String() string

func (*SearchReplayRequest) Validate

func (m *SearchReplayRequest) Validate() (err error)

func (*SearchReplayRequest) XXX_DiscardUnknown

func (m *SearchReplayRequest) XXX_DiscardUnknown()

func (*SearchReplayRequest) XXX_Marshal

func (m *SearchReplayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchReplayRequest) XXX_Merge

func (m *SearchReplayRequest) XXX_Merge(src proto.Message)

func (*SearchReplayRequest) XXX_Size

func (m *SearchReplayRequest) XXX_Size() int

func (*SearchReplayRequest) XXX_Unmarshal

func (m *SearchReplayRequest) XXX_Unmarshal(b []byte) error

type SearchReplayResponse

type SearchReplayResponse struct {
	Results              []*ReplaySearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*SearchReplayResponse) Descriptor

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

func (*SearchReplayResponse) GetResults

func (m *SearchReplayResponse) GetResults() []*ReplaySearchResult

func (*SearchReplayResponse) ProtoMessage

func (*SearchReplayResponse) ProtoMessage()

func (*SearchReplayResponse) Reset

func (m *SearchReplayResponse) Reset()

func (*SearchReplayResponse) String

func (m *SearchReplayResponse) String() string

func (*SearchReplayResponse) XXX_DiscardUnknown

func (m *SearchReplayResponse) XXX_DiscardUnknown()

func (*SearchReplayResponse) XXX_Marshal

func (m *SearchReplayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchReplayResponse) XXX_Merge

func (m *SearchReplayResponse) XXX_Merge(src proto.Message)

func (*SearchReplayResponse) XXX_Size

func (m *SearchReplayResponse) XXX_Size() int

func (*SearchReplayResponse) XXX_Unmarshal

func (m *SearchReplayResponse) XXX_Unmarshal(b []byte) error

type Session

type Session struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Account              string   `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	Command              string   `protobuf:"bytes,3,opt,name=command,proto3" json:"command,omitempty"`
	CreatedAt            int64    `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	FinishedAt           int64    `protobuf:"varint,5,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
	IsRecorded           bool     `protobuf:"varint,6,opt,name=is_recorded,json=isRecorded,proto3" json:"is_recorded,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Session) Descriptor

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

func (*Session) GetAccount

func (m *Session) GetAccount() string

func (*Session) GetCommand

func (m *Session) GetCommand() string

func (*Session) GetCreatedAt

func (m *Session) GetCreatedAt() int64

func (*Session) GetFinishedAt

func (m *Session) GetFinishedAt() int64

func (*Session) GetId

func (m *Session) GetId() int64

func (*Session) GetIsRecorded

func (m *Session) GetIsRecorded() bool

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) Reset

func (m *Session) Reset()

func (*Session) String

func (m *Session) String() string

func (*Session) XXX_DiscardUnknown

func (m *Session) XXX_DiscardUnknown()

func (*Session) XXX_Marshal

func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Session) XXX_Merge

func (m *Session) XXX_Merge(src proto.Message)

func (*Session) XXX_Size

func (m *Session) XXX_Size() int

func (*Session) XXX_Unmarshal

func (m *Session) XXX_Unmarshal(b []byte) error

type SessionServiceClient

type SessionServiceClient interface {
	CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...grpc.CallOption) (*CreateSessionResponse, error)
	FinishSession(ctx context.Context, in *FinishSessionRequest, opts ...grpc.CallOption) (*FinishSessionResponse, error)
	ListSessions(ctx context.Context, in *ListSessionsRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error)
	GetSession(ctx context.Context, in *GetSessionRequest, opts ...grpc.CallOption) (*GetSessionResponse, error)
}

SessionServiceClient is the client API for SessionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSessionServiceClient

func NewSessionServiceClient(cc *grpc.ClientConn) SessionServiceClient

type SessionServiceServer

SessionServiceServer is the server API for SessionService service.

type SubmitReplayRequest

type SubmitReplayRequest struct {
	SessionId            int64    `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SubmitReplayRequest) Descriptor

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

func (*SubmitReplayRequest) GetSessionId

func (m *SubmitReplayRequest) GetSessionId() int64

func (*SubmitReplayRequest) ProtoMessage

func (*SubmitReplayRequest) ProtoMessage()

func (*SubmitReplayRequest) Reset

func (m *SubmitReplayRequest) Reset()

func (*SubmitReplayRequest) String

func (m *SubmitReplayRequest) String() string

func (*SubmitReplayRequest) Validate

func (m *SubmitReplayRequest) Validate() (err error)

func (*SubmitReplayRequest) XXX_DiscardUnknown

func (m *SubmitReplayRequest) XXX_DiscardUnknown()

func (*SubmitReplayRequest) XXX_Marshal

func (m *SubmitReplayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubmitReplayRequest) XXX_Merge

func (m *SubmitReplayRequest) XXX_Merge(src proto.Message)

func (*SubmitReplayRequest) XXX_Size

func (m *SubmitReplayRequest) XXX_Size() int

func (*SubmitReplayRequest) XXX_Unmarshal

func (m *SubmitReplayRequest) XXX_Unmarshal(b []byte) error

type SubmitReplayResponse

type SubmitReplayResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SubmitReplayResponse) Descriptor

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

func (*SubmitReplayResponse) ProtoMessage

func (*SubmitReplayResponse) ProtoMessage()

func (*SubmitReplayResponse) Reset

func (m *SubmitReplayResponse) Reset()

func (*SubmitReplayResponse) String

func (m *SubmitReplayResponse) String() string

func (*SubmitReplayResponse) XXX_DiscardUnknown

func (m *SubmitReplayResponse) XXX_DiscardUnknown()

func (*SubmitReplayResponse) XXX_Marshal

func (m *SubmitReplayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubmitReplayResponse) XXX_Merge

func (m *SubmitReplayResponse) XXX_Merge(src proto.Message)

func (*SubmitReplayResponse) XXX_Size

func (m *SubmitReplayResponse) XXX_Size() int

func (*SubmitReplayResponse) XXX_Unmarshal

func (m *SubmitReplayResponse) XXX_Unmarshal(b []byte) error

type Token

type Token struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Account              string   `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	Token                string   `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	Description          string   `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	CreatedAt            int64    `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ViewedAt             int64    `protobuf:"varint,6,opt,name=viewed_at,json=viewedAt,proto3" json:"viewed_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Token) Descriptor

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

func (*Token) GetAccount

func (m *Token) GetAccount() string

func (*Token) GetCreatedAt

func (m *Token) GetCreatedAt() int64

func (*Token) GetDescription

func (m *Token) GetDescription() string

func (*Token) GetId

func (m *Token) GetId() int64

func (*Token) GetToken

func (m *Token) GetToken() string

func (*Token) GetViewedAt

func (m *Token) GetViewedAt() int64

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

func (*Token) XXX_DiscardUnknown

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal

func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Token) XXX_Merge

func (m *Token) XXX_Merge(src proto.Message)

func (*Token) XXX_Size

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal

func (m *Token) XXX_Unmarshal(b []byte) error

type TokenServiceClient

type TokenServiceClient interface {
	CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*CreateTokenResponse, error)
	GetToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*GetTokenResponse, error)
	TouchToken(ctx context.Context, in *TouchTokenRequest, opts ...grpc.CallOption) (*TouchTokenResponse, error)
	ListTokens(ctx context.Context, in *ListTokensRequest, opts ...grpc.CallOption) (*ListTokensResponse, error)
	DeleteToken(ctx context.Context, in *DeleteTokenRequest, opts ...grpc.CallOption) (*DeleteTokenResponse, error)
}

TokenServiceClient is the client API for TokenService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTokenServiceClient

func NewTokenServiceClient(cc *grpc.ClientConn) TokenServiceClient

type TokenServiceServer

TokenServiceServer is the server API for TokenService service.

type TouchKeyRequest

type TouchKeyRequest struct {
	Fingerprint          string   `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TouchKeyRequest) Descriptor

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

func (*TouchKeyRequest) GetFingerprint

func (m *TouchKeyRequest) GetFingerprint() string

func (*TouchKeyRequest) ProtoMessage

func (*TouchKeyRequest) ProtoMessage()

func (*TouchKeyRequest) Reset

func (m *TouchKeyRequest) Reset()

func (*TouchKeyRequest) String

func (m *TouchKeyRequest) String() string

func (*TouchKeyRequest) Validate

func (m *TouchKeyRequest) Validate() (err error)

func (*TouchKeyRequest) XXX_DiscardUnknown

func (m *TouchKeyRequest) XXX_DiscardUnknown()

func (*TouchKeyRequest) XXX_Marshal

func (m *TouchKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TouchKeyRequest) XXX_Merge

func (m *TouchKeyRequest) XXX_Merge(src proto.Message)

func (*TouchKeyRequest) XXX_Size

func (m *TouchKeyRequest) XXX_Size() int

func (*TouchKeyRequest) XXX_Unmarshal

func (m *TouchKeyRequest) XXX_Unmarshal(b []byte) error

type TouchKeyResponse

type TouchKeyResponse struct {
	Key                  *Key     `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TouchKeyResponse) Descriptor

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

func (*TouchKeyResponse) GetKey

func (m *TouchKeyResponse) GetKey() *Key

func (*TouchKeyResponse) ProtoMessage

func (*TouchKeyResponse) ProtoMessage()

func (*TouchKeyResponse) Reset

func (m *TouchKeyResponse) Reset()

func (*TouchKeyResponse) String

func (m *TouchKeyResponse) String() string

func (*TouchKeyResponse) XXX_DiscardUnknown

func (m *TouchKeyResponse) XXX_DiscardUnknown()

func (*TouchKeyResponse) XXX_Marshal

func (m *TouchKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TouchKeyResponse) XXX_Merge

func (m *TouchKeyResponse) XXX_Merge(src proto.Message)

func (*TouchKeyResponse) XXX_Size

func (m *TouchKeyResponse) XXX_Size() int

func (*TouchKeyResponse) XXX_Unmarshal

func (m *TouchKeyResponse) XXX_Unmarshal(b []byte) error

type TouchNodeRequest

type TouchNodeRequest struct {
	Hostname             string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TouchNodeRequest) Descriptor

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

func (*TouchNodeRequest) GetHostname

func (m *TouchNodeRequest) GetHostname() string

func (*TouchNodeRequest) ProtoMessage

func (*TouchNodeRequest) ProtoMessage()

func (*TouchNodeRequest) Reset

func (m *TouchNodeRequest) Reset()

func (*TouchNodeRequest) String

func (m *TouchNodeRequest) String() string

func (*TouchNodeRequest) Validate

func (m *TouchNodeRequest) Validate() (err error)

func (*TouchNodeRequest) XXX_DiscardUnknown

func (m *TouchNodeRequest) XXX_DiscardUnknown()

func (*TouchNodeRequest) XXX_Marshal

func (m *TouchNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TouchNodeRequest) XXX_Merge

func (m *TouchNodeRequest) XXX_Merge(src proto.Message)

func (*TouchNodeRequest) XXX_Size

func (m *TouchNodeRequest) XXX_Size() int

func (*TouchNodeRequest) XXX_Unmarshal

func (m *TouchNodeRequest) XXX_Unmarshal(b []byte) error

type TouchNodeResponse

type TouchNodeResponse struct {
	Node                 *Node    `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TouchNodeResponse) Descriptor

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

func (*TouchNodeResponse) GetNode

func (m *TouchNodeResponse) GetNode() *Node

func (*TouchNodeResponse) ProtoMessage

func (*TouchNodeResponse) ProtoMessage()

func (*TouchNodeResponse) Reset

func (m *TouchNodeResponse) Reset()

func (*TouchNodeResponse) String

func (m *TouchNodeResponse) String() string

func (*TouchNodeResponse) XXX_DiscardUnknown

func (m *TouchNodeResponse) XXX_DiscardUnknown()

func (*TouchNodeResponse) XXX_Marshal

func (m *TouchNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TouchNodeResponse) XXX_Merge

func (m *TouchNodeResponse) XXX_Merge(src proto.Message)

func (*TouchNodeResponse) XXX_Size

func (m *TouchNodeResponse) XXX_Size() int

func (*TouchNodeResponse) XXX_Unmarshal

func (m *TouchNodeResponse) XXX_Unmarshal(b []byte) error

type TouchTokenRequest

type TouchTokenRequest struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Id                   int64    `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TouchTokenRequest) Descriptor

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

func (*TouchTokenRequest) GetId

func (m *TouchTokenRequest) GetId() int64

func (*TouchTokenRequest) GetToken

func (m *TouchTokenRequest) GetToken() string

func (*TouchTokenRequest) ProtoMessage

func (*TouchTokenRequest) ProtoMessage()

func (*TouchTokenRequest) Reset

func (m *TouchTokenRequest) Reset()

func (*TouchTokenRequest) String

func (m *TouchTokenRequest) String() string

func (*TouchTokenRequest) Validate

func (m *TouchTokenRequest) Validate() (err error)

func (*TouchTokenRequest) XXX_DiscardUnknown

func (m *TouchTokenRequest) XXX_DiscardUnknown()

func (*TouchTokenRequest) XXX_Marshal

func (m *TouchTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TouchTokenRequest) XXX_Merge

func (m *TouchTokenRequest) XXX_Merge(src proto.Message)

func (*TouchTokenRequest) XXX_Size

func (m *TouchTokenRequest) XXX_Size() int

func (*TouchTokenRequest) XXX_Unmarshal

func (m *TouchTokenRequest) XXX_Unmarshal(b []byte) error

type TouchTokenResponse

type TouchTokenResponse struct {
	Token                *Token   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TouchTokenResponse) Descriptor

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

func (*TouchTokenResponse) GetToken

func (m *TouchTokenResponse) GetToken() *Token

func (*TouchTokenResponse) ProtoMessage

func (*TouchTokenResponse) ProtoMessage()

func (*TouchTokenResponse) Reset

func (m *TouchTokenResponse) Reset()

func (*TouchTokenResponse) String

func (m *TouchTokenResponse) String() string

func (*TouchTokenResponse) XXX_DiscardUnknown

func (m *TouchTokenResponse) XXX_DiscardUnknown()

func (*TouchTokenResponse) XXX_Marshal

func (m *TouchTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TouchTokenResponse) XXX_Merge

func (m *TouchTokenResponse) XXX_Merge(src proto.Message)

func (*TouchTokenResponse) XXX_Size

func (m *TouchTokenResponse) XXX_Size() int

func (*TouchTokenResponse) XXX_Unmarshal

func (m *TouchTokenResponse) XXX_Unmarshal(b []byte) error

type TouchUserRequest

type TouchUserRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TouchUserRequest) Descriptor

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

func (*TouchUserRequest) GetAccount

func (m *TouchUserRequest) GetAccount() string

func (*TouchUserRequest) ProtoMessage

func (*TouchUserRequest) ProtoMessage()

func (*TouchUserRequest) Reset

func (m *TouchUserRequest) Reset()

func (*TouchUserRequest) String

func (m *TouchUserRequest) String() string

func (*TouchUserRequest) Validate

func (m *TouchUserRequest) Validate() (err error)

func (*TouchUserRequest) XXX_DiscardUnknown

func (m *TouchUserRequest) XXX_DiscardUnknown()

func (*TouchUserRequest) XXX_Marshal

func (m *TouchUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TouchUserRequest) XXX_Merge

func (m *TouchUserRequest) XXX_Merge(src proto.Message)

func (*TouchUserRequest) XXX_Size

func (m *TouchUserRequest) XXX_Size() int

func (*TouchUserRequest) XXX_Unmarshal

func (m *TouchUserRequest) XXX_Unmarshal(b []byte) error

type TouchUserResponse

type TouchUserResponse struct {
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TouchUserResponse) Descriptor

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

func (*TouchUserResponse) GetUser

func (m *TouchUserResponse) GetUser() *User

func (*TouchUserResponse) ProtoMessage

func (*TouchUserResponse) ProtoMessage()

func (*TouchUserResponse) Reset

func (m *TouchUserResponse) Reset()

func (*TouchUserResponse) String

func (m *TouchUserResponse) String() string

func (*TouchUserResponse) XXX_DiscardUnknown

func (m *TouchUserResponse) XXX_DiscardUnknown()

func (*TouchUserResponse) XXX_Marshal

func (m *TouchUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TouchUserResponse) XXX_Merge

func (m *TouchUserResponse) XXX_Merge(src proto.Message)

func (*TouchUserResponse) XXX_Size

func (m *TouchUserResponse) XXX_Size() int

func (*TouchUserResponse) XXX_Unmarshal

func (m *TouchUserResponse) XXX_Unmarshal(b []byte) error

type UpdateAllMasterKeysRequest

type UpdateAllMasterKeysRequest struct {
	MasterKeys           []*MasterKey `protobuf:"bytes,1,rep,name=master_keys,json=masterKeys,proto3" json:"master_keys,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*UpdateAllMasterKeysRequest) Descriptor

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

func (*UpdateAllMasterKeysRequest) GetMasterKeys

func (m *UpdateAllMasterKeysRequest) GetMasterKeys() []*MasterKey

func (*UpdateAllMasterKeysRequest) ProtoMessage

func (*UpdateAllMasterKeysRequest) ProtoMessage()

func (*UpdateAllMasterKeysRequest) Reset

func (m *UpdateAllMasterKeysRequest) Reset()

func (*UpdateAllMasterKeysRequest) String

func (m *UpdateAllMasterKeysRequest) String() string

func (*UpdateAllMasterKeysRequest) XXX_DiscardUnknown

func (m *UpdateAllMasterKeysRequest) XXX_DiscardUnknown()

func (*UpdateAllMasterKeysRequest) XXX_Marshal

func (m *UpdateAllMasterKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateAllMasterKeysRequest) XXX_Merge

func (m *UpdateAllMasterKeysRequest) XXX_Merge(src proto.Message)

func (*UpdateAllMasterKeysRequest) XXX_Size

func (m *UpdateAllMasterKeysRequest) XXX_Size() int

func (*UpdateAllMasterKeysRequest) XXX_Unmarshal

func (m *UpdateAllMasterKeysRequest) XXX_Unmarshal(b []byte) error

type UpdateAllMasterKeysResponse

type UpdateAllMasterKeysResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateAllMasterKeysResponse) Descriptor

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

func (*UpdateAllMasterKeysResponse) ProtoMessage

func (*UpdateAllMasterKeysResponse) ProtoMessage()

func (*UpdateAllMasterKeysResponse) Reset

func (m *UpdateAllMasterKeysResponse) Reset()

func (*UpdateAllMasterKeysResponse) String

func (m *UpdateAllMasterKeysResponse) String() string

func (*UpdateAllMasterKeysResponse) XXX_DiscardUnknown

func (m *UpdateAllMasterKeysResponse) XXX_DiscardUnknown()

func (*UpdateAllMasterKeysResponse) XXX_Marshal

func (m *UpdateAllMasterKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateAllMasterKeysResponse) XXX_Merge

func (m *UpdateAllMasterKeysResponse) XXX_Merge(src proto.Message)

func (*UpdateAllMasterKeysResponse) XXX_Size

func (m *UpdateAllMasterKeysResponse) XXX_Size() int

func (*UpdateAllMasterKeysResponse) XXX_Unmarshal

func (m *UpdateAllMasterKeysResponse) XXX_Unmarshal(b []byte) error

type UpdateNodeRequest

type UpdateNodeRequest struct {
	Hostname             string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	UpdateIsKeyManaged   bool     `protobuf:"varint,2,opt,name=update_is_key_managed,json=updateIsKeyManaged,proto3" json:"update_is_key_managed,omitempty"`
	IsKeyManaged         bool     `protobuf:"varint,3,opt,name=is_key_managed,json=isKeyManaged,proto3" json:"is_key_managed,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateNodeRequest) Descriptor

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

func (*UpdateNodeRequest) GetHostname

func (m *UpdateNodeRequest) GetHostname() string

func (*UpdateNodeRequest) GetIsKeyManaged

func (m *UpdateNodeRequest) GetIsKeyManaged() bool

func (*UpdateNodeRequest) GetUpdateIsKeyManaged

func (m *UpdateNodeRequest) GetUpdateIsKeyManaged() bool

func (*UpdateNodeRequest) ProtoMessage

func (*UpdateNodeRequest) ProtoMessage()

func (*UpdateNodeRequest) Reset

func (m *UpdateNodeRequest) Reset()

func (*UpdateNodeRequest) String

func (m *UpdateNodeRequest) String() string

func (*UpdateNodeRequest) Validate

func (m *UpdateNodeRequest) Validate() (err error)

func (*UpdateNodeRequest) XXX_DiscardUnknown

func (m *UpdateNodeRequest) XXX_DiscardUnknown()

func (*UpdateNodeRequest) XXX_Marshal

func (m *UpdateNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateNodeRequest) XXX_Merge

func (m *UpdateNodeRequest) XXX_Merge(src proto.Message)

func (*UpdateNodeRequest) XXX_Size

func (m *UpdateNodeRequest) XXX_Size() int

func (*UpdateNodeRequest) XXX_Unmarshal

func (m *UpdateNodeRequest) XXX_Unmarshal(b []byte) error

type UpdateNodeResponse

type UpdateNodeResponse struct {
	Node                 *Node    `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateNodeResponse) Descriptor

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

func (*UpdateNodeResponse) GetNode

func (m *UpdateNodeResponse) GetNode() *Node

func (*UpdateNodeResponse) ProtoMessage

func (*UpdateNodeResponse) ProtoMessage()

func (*UpdateNodeResponse) Reset

func (m *UpdateNodeResponse) Reset()

func (*UpdateNodeResponse) String

func (m *UpdateNodeResponse) String() string

func (*UpdateNodeResponse) XXX_DiscardUnknown

func (m *UpdateNodeResponse) XXX_DiscardUnknown()

func (*UpdateNodeResponse) XXX_Marshal

func (m *UpdateNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateNodeResponse) XXX_Merge

func (m *UpdateNodeResponse) XXX_Merge(src proto.Message)

func (*UpdateNodeResponse) XXX_Size

func (m *UpdateNodeResponse) XXX_Size() int

func (*UpdateNodeResponse) XXX_Unmarshal

func (m *UpdateNodeResponse) XXX_Unmarshal(b []byte) error

type UpdateUserRequest

type UpdateUserRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	UpdateNickname       bool     `protobuf:"varint,2,opt,name=update_nickname,json=updateNickname,proto3" json:"update_nickname,omitempty"`
	Nickname             string   `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
	UpdatePassword       bool     `protobuf:"varint,4,opt,name=update_password,json=updatePassword,proto3" json:"update_password,omitempty"`
	Password             string   `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
	UpdateIsAdmin        bool     `protobuf:"varint,6,opt,name=update_is_admin,json=updateIsAdmin,proto3" json:"update_is_admin,omitempty"`
	IsAdmin              bool     `protobuf:"varint,7,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
	UpdateIsBlocked      bool     `protobuf:"varint,8,opt,name=update_is_blocked,json=updateIsBlocked,proto3" json:"update_is_blocked,omitempty"`
	IsBlocked            bool     `protobuf:"varint,9,opt,name=is_blocked,json=isBlocked,proto3" json:"is_blocked,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateUserRequest) Descriptor

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

func (*UpdateUserRequest) GetAccount

func (m *UpdateUserRequest) GetAccount() string

func (*UpdateUserRequest) GetIsAdmin

func (m *UpdateUserRequest) GetIsAdmin() bool

func (*UpdateUserRequest) GetIsBlocked

func (m *UpdateUserRequest) GetIsBlocked() bool

func (*UpdateUserRequest) GetNickname

func (m *UpdateUserRequest) GetNickname() string

func (*UpdateUserRequest) GetPassword

func (m *UpdateUserRequest) GetPassword() string

func (*UpdateUserRequest) GetUpdateIsAdmin

func (m *UpdateUserRequest) GetUpdateIsAdmin() bool

func (*UpdateUserRequest) GetUpdateIsBlocked

func (m *UpdateUserRequest) GetUpdateIsBlocked() bool

func (*UpdateUserRequest) GetUpdateNickname

func (m *UpdateUserRequest) GetUpdateNickname() bool

func (*UpdateUserRequest) GetUpdatePassword

func (m *UpdateUserRequest) GetUpdatePassword() bool

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) Reset

func (m *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (m *UpdateUserRequest) String() string

func (*UpdateUserRequest) Validate

func (m *UpdateUserRequest) Validate() (err error)

func (*UpdateUserRequest) XXX_DiscardUnknown

func (m *UpdateUserRequest) XXX_DiscardUnknown()

func (*UpdateUserRequest) XXX_Marshal

func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateUserRequest) XXX_Merge

func (m *UpdateUserRequest) XXX_Merge(src proto.Message)

func (*UpdateUserRequest) XXX_Size

func (m *UpdateUserRequest) XXX_Size() int

func (*UpdateUserRequest) XXX_Unmarshal

func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error

type UpdateUserResponse

type UpdateUserResponse struct {
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateUserResponse) Descriptor

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

func (*UpdateUserResponse) GetUser

func (m *UpdateUserResponse) GetUser() *User

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) Reset

func (m *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (m *UpdateUserResponse) String() string

func (*UpdateUserResponse) XXX_DiscardUnknown

func (m *UpdateUserResponse) XXX_DiscardUnknown()

func (*UpdateUserResponse) XXX_Marshal

func (m *UpdateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateUserResponse) XXX_Merge

func (m *UpdateUserResponse) XXX_Merge(src proto.Message)

func (*UpdateUserResponse) XXX_Size

func (m *UpdateUserResponse) XXX_Size() int

func (*UpdateUserResponse) XXX_Unmarshal

func (m *UpdateUserResponse) XXX_Unmarshal(b []byte) error

type User

type User struct {
	Account              string   `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	Nickname             string   `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
	IsAdmin              bool     `protobuf:"varint,4,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
	IsBlocked            bool     `protobuf:"varint,5,opt,name=is_blocked,json=isBlocked,proto3" json:"is_blocked,omitempty"`
	CreatedAt            int64    `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            int64    `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	ViewedAt             int64    `protobuf:"varint,8,opt,name=viewed_at,json=viewedAt,proto3" json:"viewed_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetAccount

func (m *User) GetAccount() string

func (*User) GetCreatedAt

func (m *User) GetCreatedAt() int64

func (*User) GetIsAdmin

func (m *User) GetIsAdmin() bool

func (*User) GetIsBlocked

func (m *User) GetIsBlocked() bool

func (*User) GetNickname

func (m *User) GetNickname() string

func (*User) GetUpdatedAt

func (m *User) GetUpdatedAt() int64

func (*User) GetViewedAt

func (m *User) GetViewedAt() int64

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*User) XXX_Merge

func (m *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

func (m *User) XXX_Unmarshal(b []byte) error

type UserServiceClient

type UserServiceClient interface {
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	TouchUser(ctx context.Context, in *TouchUserRequest, opts ...grpc.CallOption) (*TouchUserResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	AuthenticateUser(ctx context.Context, in *AuthenticateUserRequest, opts ...grpc.CallOption) (*AuthenticateUserResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUserServiceClient

func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient

type UserServiceServer

UserServiceServer is the server API for UserService service.

type Validator

type Validator interface {
	Validate() error
}

type WebOptions

type WebOptions struct {
	// SSHDomain ssh target for display
	SSHDomain string `yaml:"ssh_domain"`

	// Host host to bind for bastion web, default to "127.0.0.1"
	Host string `yaml:"host"`

	// Port port to listen for bastion web, default to 9778
	Port int `yaml:"port"`

	// Dev development mode, will not use BinFS, and output colorful logs
	Dev bool `yaml:"dev"`

	// DaemonEndpoint address of bastion daemon rpc service, default to "127.0.0.1:9777"
	DaemonEndpoint string `yaml:"daemon_endpoint"`
}

WebOptions web options for bastion

func (WebOptions) String

func (o WebOptions) String() string

type WriteReplayResponse

type WriteReplayResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WriteReplayResponse) Descriptor

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

func (*WriteReplayResponse) ProtoMessage

func (*WriteReplayResponse) ProtoMessage()

func (*WriteReplayResponse) Reset

func (m *WriteReplayResponse) Reset()

func (*WriteReplayResponse) String

func (m *WriteReplayResponse) String() string

func (*WriteReplayResponse) XXX_DiscardUnknown

func (m *WriteReplayResponse) XXX_DiscardUnknown()

func (*WriteReplayResponse) XXX_Marshal

func (m *WriteReplayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WriteReplayResponse) XXX_Merge

func (m *WriteReplayResponse) XXX_Merge(src proto.Message)

func (*WriteReplayResponse) XXX_Size

func (m *WriteReplayResponse) XXX_Size() int

func (*WriteReplayResponse) XXX_Unmarshal

func (m *WriteReplayResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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