account

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package account is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterAccountServiceHandler

func RegisterAccountServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAccountServiceHandler registers the http handlers for service AccountService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAccountServiceHandlerClient

func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountServiceClient) error

RegisterAccountServiceHandler registers the http handlers for service AccountService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountServiceClient" to call the correct interceptors.

func RegisterAccountServiceHandlerFromEndpoint

func RegisterAccountServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAccountServiceHandlerFromEndpoint is same as RegisterAccountServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)

Types

type Account added in v1.5.0

type Account struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Enabled              bool     `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Capabilities         []string `protobuf:"bytes,3,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
	Tokens               []*Token `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Account) Descriptor added in v1.5.0

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

func (*Account) GetCapabilities added in v1.5.0

func (m *Account) GetCapabilities() []string

func (*Account) GetEnabled added in v1.5.0

func (m *Account) GetEnabled() bool

func (*Account) GetName added in v1.5.0

func (m *Account) GetName() string

func (*Account) GetTokens added in v1.5.0

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

func (*Account) Marshal added in v1.5.0

func (m *Account) Marshal() (dAtA []byte, err error)

func (*Account) MarshalTo added in v1.5.0

func (m *Account) MarshalTo(dAtA []byte) (int, error)

func (*Account) MarshalToSizedBuffer added in v1.5.0

func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Account) ProtoMessage added in v1.5.0

func (*Account) ProtoMessage()

func (*Account) Reset added in v1.5.0

func (m *Account) Reset()

func (*Account) Size added in v1.5.0

func (m *Account) Size() (n int)

func (*Account) String added in v1.5.0

func (m *Account) String() string

func (*Account) Unmarshal added in v1.5.0

func (m *Account) Unmarshal(dAtA []byte) error

func (*Account) XXX_DiscardUnknown added in v1.5.0

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal added in v1.5.0

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

func (*Account) XXX_Merge added in v1.5.0

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

func (*Account) XXX_Size added in v1.5.0

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal added in v1.5.0

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

type AccountServiceClient

type AccountServiceClient interface {
	CanI(ctx context.Context, in *CanIRequest, opts ...grpc.CallOption) (*CanIResponse, error)
	// UpdatePassword updates an account's password to a new value
	UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordResponse, error)
	ListAccounts(ctx context.Context, in *ListAccountRequest, opts ...grpc.CallOption) (*AccountsList, error)
	GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*Account, error)
	CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*CreateTokenResponse, error)
	DeleteToken(ctx context.Context, in *DeleteTokenRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
}

AccountServiceClient is the client API for AccountService service.

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

func NewAccountServiceClient

func NewAccountServiceClient(cc *grpc.ClientConn) AccountServiceClient

type AccountServiceServer

type AccountServiceServer interface {
	CanI(context.Context, *CanIRequest) (*CanIResponse, error)
	// UpdatePassword updates an account's password to a new value
	UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error)
	ListAccounts(context.Context, *ListAccountRequest) (*AccountsList, error)
	GetAccount(context.Context, *GetAccountRequest) (*Account, error)
	CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error)
	DeleteToken(context.Context, *DeleteTokenRequest) (*EmptyResponse, error)
}

AccountServiceServer is the server API for AccountService service.

type AccountsList added in v1.5.0

type AccountsList struct {
	Items                []*Account `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*AccountsList) Descriptor added in v1.5.0

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

func (*AccountsList) GetItems added in v1.5.0

func (m *AccountsList) GetItems() []*Account

func (*AccountsList) Marshal added in v1.5.0

func (m *AccountsList) Marshal() (dAtA []byte, err error)

func (*AccountsList) MarshalTo added in v1.5.0

func (m *AccountsList) MarshalTo(dAtA []byte) (int, error)

func (*AccountsList) MarshalToSizedBuffer added in v1.5.0

func (m *AccountsList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AccountsList) ProtoMessage added in v1.5.0

func (*AccountsList) ProtoMessage()

func (*AccountsList) Reset added in v1.5.0

func (m *AccountsList) Reset()

func (*AccountsList) Size added in v1.5.0

func (m *AccountsList) Size() (n int)

func (*AccountsList) String added in v1.5.0

func (m *AccountsList) String() string

func (*AccountsList) Unmarshal added in v1.5.0

func (m *AccountsList) Unmarshal(dAtA []byte) error

func (*AccountsList) XXX_DiscardUnknown added in v1.5.0

func (m *AccountsList) XXX_DiscardUnknown()

func (*AccountsList) XXX_Marshal added in v1.5.0

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

func (*AccountsList) XXX_Merge added in v1.5.0

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

func (*AccountsList) XXX_Size added in v1.5.0

func (m *AccountsList) XXX_Size() int

func (*AccountsList) XXX_Unmarshal added in v1.5.0

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

type CanIRequest added in v1.4.0

type CanIRequest struct {
	Resource             string   `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	Action               string   `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	Subresource          string   `protobuf:"bytes,3,opt,name=subresource,proto3" json:"subresource,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CanIRequest) Descriptor added in v1.4.0

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

func (*CanIRequest) GetAction added in v1.4.0

func (m *CanIRequest) GetAction() string

func (*CanIRequest) GetResource added in v1.4.0

func (m *CanIRequest) GetResource() string

func (*CanIRequest) GetSubresource added in v1.4.0

func (m *CanIRequest) GetSubresource() string

func (*CanIRequest) Marshal added in v1.4.0

func (m *CanIRequest) Marshal() (dAtA []byte, err error)

func (*CanIRequest) MarshalTo added in v1.4.0

func (m *CanIRequest) MarshalTo(dAtA []byte) (int, error)

func (*CanIRequest) MarshalToSizedBuffer added in v1.4.0

func (m *CanIRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CanIRequest) ProtoMessage added in v1.4.0

func (*CanIRequest) ProtoMessage()

func (*CanIRequest) Reset added in v1.4.0

func (m *CanIRequest) Reset()

func (*CanIRequest) Size added in v1.4.0

func (m *CanIRequest) Size() (n int)

func (*CanIRequest) String added in v1.4.0

func (m *CanIRequest) String() string

func (*CanIRequest) Unmarshal added in v1.4.0

func (m *CanIRequest) Unmarshal(dAtA []byte) error

func (*CanIRequest) XXX_DiscardUnknown added in v1.4.0

func (m *CanIRequest) XXX_DiscardUnknown()

func (*CanIRequest) XXX_Marshal added in v1.4.0

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

func (*CanIRequest) XXX_Merge added in v1.4.0

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

func (*CanIRequest) XXX_Size added in v1.4.0

func (m *CanIRequest) XXX_Size() int

func (*CanIRequest) XXX_Unmarshal added in v1.4.0

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

type CanIResponse added in v1.4.0

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

func (*CanIResponse) Descriptor added in v1.4.0

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

func (*CanIResponse) GetValue added in v1.4.0

func (m *CanIResponse) GetValue() string

func (*CanIResponse) Marshal added in v1.4.0

func (m *CanIResponse) Marshal() (dAtA []byte, err error)

func (*CanIResponse) MarshalTo added in v1.4.0

func (m *CanIResponse) MarshalTo(dAtA []byte) (int, error)

func (*CanIResponse) MarshalToSizedBuffer added in v1.4.0

func (m *CanIResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CanIResponse) ProtoMessage added in v1.4.0

func (*CanIResponse) ProtoMessage()

func (*CanIResponse) Reset added in v1.4.0

func (m *CanIResponse) Reset()

func (*CanIResponse) Size added in v1.4.0

func (m *CanIResponse) Size() (n int)

func (*CanIResponse) String added in v1.4.0

func (m *CanIResponse) String() string

func (*CanIResponse) Unmarshal added in v1.4.0

func (m *CanIResponse) Unmarshal(dAtA []byte) error

func (*CanIResponse) XXX_DiscardUnknown added in v1.4.0

func (m *CanIResponse) XXX_DiscardUnknown()

func (*CanIResponse) XXX_Marshal added in v1.4.0

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

func (*CanIResponse) XXX_Merge added in v1.4.0

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

func (*CanIResponse) XXX_Size added in v1.4.0

func (m *CanIResponse) XXX_Size() int

func (*CanIResponse) XXX_Unmarshal added in v1.4.0

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

type CreateTokenRequest added in v1.5.0

type CreateTokenRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// expiresIn represents a duration in seconds
	ExpiresIn            int64    `protobuf:"varint,2,opt,name=expiresIn,proto3" json:"expiresIn,omitempty"`
	Id                   string   `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTokenRequest) Descriptor added in v1.5.0

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

func (*CreateTokenRequest) GetExpiresIn added in v1.5.0

func (m *CreateTokenRequest) GetExpiresIn() int64

func (*CreateTokenRequest) GetId added in v1.5.3

func (m *CreateTokenRequest) GetId() string

func (*CreateTokenRequest) GetName added in v1.5.0

func (m *CreateTokenRequest) GetName() string

func (*CreateTokenRequest) Marshal added in v1.5.0

func (m *CreateTokenRequest) Marshal() (dAtA []byte, err error)

func (*CreateTokenRequest) MarshalTo added in v1.5.0

func (m *CreateTokenRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateTokenRequest) MarshalToSizedBuffer added in v1.5.0

func (m *CreateTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateTokenRequest) ProtoMessage added in v1.5.0

func (*CreateTokenRequest) ProtoMessage()

func (*CreateTokenRequest) Reset added in v1.5.0

func (m *CreateTokenRequest) Reset()

func (*CreateTokenRequest) Size added in v1.5.0

func (m *CreateTokenRequest) Size() (n int)

func (*CreateTokenRequest) String added in v1.5.0

func (m *CreateTokenRequest) String() string

func (*CreateTokenRequest) Unmarshal added in v1.5.0

func (m *CreateTokenRequest) Unmarshal(dAtA []byte) error

func (*CreateTokenRequest) XXX_DiscardUnknown added in v1.5.0

func (m *CreateTokenRequest) XXX_DiscardUnknown()

func (*CreateTokenRequest) XXX_Marshal added in v1.5.0

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

func (*CreateTokenRequest) XXX_Merge added in v1.5.0

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

func (*CreateTokenRequest) XXX_Size added in v1.5.0

func (m *CreateTokenRequest) XXX_Size() int

func (*CreateTokenRequest) XXX_Unmarshal added in v1.5.0

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

type CreateTokenResponse added in v1.5.0

type CreateTokenResponse struct {
	Token                string   `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 added in v1.5.0

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

func (*CreateTokenResponse) GetToken added in v1.5.0

func (m *CreateTokenResponse) GetToken() string

func (*CreateTokenResponse) Marshal added in v1.5.0

func (m *CreateTokenResponse) Marshal() (dAtA []byte, err error)

func (*CreateTokenResponse) MarshalTo added in v1.5.0

func (m *CreateTokenResponse) MarshalTo(dAtA []byte) (int, error)

func (*CreateTokenResponse) MarshalToSizedBuffer added in v1.5.0

func (m *CreateTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateTokenResponse) ProtoMessage added in v1.5.0

func (*CreateTokenResponse) ProtoMessage()

func (*CreateTokenResponse) Reset added in v1.5.0

func (m *CreateTokenResponse) Reset()

func (*CreateTokenResponse) Size added in v1.5.0

func (m *CreateTokenResponse) Size() (n int)

func (*CreateTokenResponse) String added in v1.5.0

func (m *CreateTokenResponse) String() string

func (*CreateTokenResponse) Unmarshal added in v1.5.0

func (m *CreateTokenResponse) Unmarshal(dAtA []byte) error

func (*CreateTokenResponse) XXX_DiscardUnknown added in v1.5.0

func (m *CreateTokenResponse) XXX_DiscardUnknown()

func (*CreateTokenResponse) XXX_Marshal added in v1.5.0

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

func (*CreateTokenResponse) XXX_Merge added in v1.5.0

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

func (*CreateTokenResponse) XXX_Size added in v1.5.0

func (m *CreateTokenResponse) XXX_Size() int

func (*CreateTokenResponse) XXX_Unmarshal added in v1.5.0

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

type DeleteTokenRequest added in v1.5.0

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

func (*DeleteTokenRequest) Descriptor added in v1.5.0

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

func (*DeleteTokenRequest) GetId added in v1.5.0

func (m *DeleteTokenRequest) GetId() string

func (*DeleteTokenRequest) GetName added in v1.5.0

func (m *DeleteTokenRequest) GetName() string

func (*DeleteTokenRequest) Marshal added in v1.5.0

func (m *DeleteTokenRequest) Marshal() (dAtA []byte, err error)

func (*DeleteTokenRequest) MarshalTo added in v1.5.0

func (m *DeleteTokenRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeleteTokenRequest) MarshalToSizedBuffer added in v1.5.0

func (m *DeleteTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteTokenRequest) ProtoMessage added in v1.5.0

func (*DeleteTokenRequest) ProtoMessage()

func (*DeleteTokenRequest) Reset added in v1.5.0

func (m *DeleteTokenRequest) Reset()

func (*DeleteTokenRequest) Size added in v1.5.0

func (m *DeleteTokenRequest) Size() (n int)

func (*DeleteTokenRequest) String added in v1.5.0

func (m *DeleteTokenRequest) String() string

func (*DeleteTokenRequest) Unmarshal added in v1.5.0

func (m *DeleteTokenRequest) Unmarshal(dAtA []byte) error

func (*DeleteTokenRequest) XXX_DiscardUnknown added in v1.5.0

func (m *DeleteTokenRequest) XXX_DiscardUnknown()

func (*DeleteTokenRequest) XXX_Marshal added in v1.5.0

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

func (*DeleteTokenRequest) XXX_Merge added in v1.5.0

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

func (*DeleteTokenRequest) XXX_Size added in v1.5.0

func (m *DeleteTokenRequest) XXX_Size() int

func (*DeleteTokenRequest) XXX_Unmarshal added in v1.5.0

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

type EmptyResponse added in v1.5.0

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

func (*EmptyResponse) Descriptor added in v1.5.0

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

func (*EmptyResponse) Marshal added in v1.5.0

func (m *EmptyResponse) Marshal() (dAtA []byte, err error)

func (*EmptyResponse) MarshalTo added in v1.5.0

func (m *EmptyResponse) MarshalTo(dAtA []byte) (int, error)

func (*EmptyResponse) MarshalToSizedBuffer added in v1.5.0

func (m *EmptyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EmptyResponse) ProtoMessage added in v1.5.0

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) Reset added in v1.5.0

func (m *EmptyResponse) Reset()

func (*EmptyResponse) Size added in v1.5.0

func (m *EmptyResponse) Size() (n int)

func (*EmptyResponse) String added in v1.5.0

func (m *EmptyResponse) String() string

func (*EmptyResponse) Unmarshal added in v1.5.0

func (m *EmptyResponse) Unmarshal(dAtA []byte) error

func (*EmptyResponse) XXX_DiscardUnknown added in v1.5.0

func (m *EmptyResponse) XXX_DiscardUnknown()

func (*EmptyResponse) XXX_Marshal added in v1.5.0

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

func (*EmptyResponse) XXX_Merge added in v1.5.0

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

func (*EmptyResponse) XXX_Size added in v1.5.0

func (m *EmptyResponse) XXX_Size() int

func (*EmptyResponse) XXX_Unmarshal added in v1.5.0

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

type GetAccountRequest added in v1.5.0

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

func (*GetAccountRequest) Descriptor added in v1.5.0

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

func (*GetAccountRequest) GetName added in v1.5.0

func (m *GetAccountRequest) GetName() string

func (*GetAccountRequest) Marshal added in v1.5.0

func (m *GetAccountRequest) Marshal() (dAtA []byte, err error)

func (*GetAccountRequest) MarshalTo added in v1.5.0

func (m *GetAccountRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetAccountRequest) MarshalToSizedBuffer added in v1.5.0

func (m *GetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetAccountRequest) ProtoMessage added in v1.5.0

func (*GetAccountRequest) ProtoMessage()

func (*GetAccountRequest) Reset added in v1.5.0

func (m *GetAccountRequest) Reset()

func (*GetAccountRequest) Size added in v1.5.0

func (m *GetAccountRequest) Size() (n int)

func (*GetAccountRequest) String added in v1.5.0

func (m *GetAccountRequest) String() string

func (*GetAccountRequest) Unmarshal added in v1.5.0

func (m *GetAccountRequest) Unmarshal(dAtA []byte) error

func (*GetAccountRequest) XXX_DiscardUnknown added in v1.5.0

func (m *GetAccountRequest) XXX_DiscardUnknown()

func (*GetAccountRequest) XXX_Marshal added in v1.5.0

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

func (*GetAccountRequest) XXX_Merge added in v1.5.0

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

func (*GetAccountRequest) XXX_Size added in v1.5.0

func (m *GetAccountRequest) XXX_Size() int

func (*GetAccountRequest) XXX_Unmarshal added in v1.5.0

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

type ListAccountRequest added in v1.5.0

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

func (*ListAccountRequest) Descriptor added in v1.5.0

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

func (*ListAccountRequest) Marshal added in v1.5.0

func (m *ListAccountRequest) Marshal() (dAtA []byte, err error)

func (*ListAccountRequest) MarshalTo added in v1.5.0

func (m *ListAccountRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListAccountRequest) MarshalToSizedBuffer added in v1.5.0

func (m *ListAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListAccountRequest) ProtoMessage added in v1.5.0

func (*ListAccountRequest) ProtoMessage()

func (*ListAccountRequest) Reset added in v1.5.0

func (m *ListAccountRequest) Reset()

func (*ListAccountRequest) Size added in v1.5.0

func (m *ListAccountRequest) Size() (n int)

func (*ListAccountRequest) String added in v1.5.0

func (m *ListAccountRequest) String() string

func (*ListAccountRequest) Unmarshal added in v1.5.0

func (m *ListAccountRequest) Unmarshal(dAtA []byte) error

func (*ListAccountRequest) XXX_DiscardUnknown added in v1.5.0

func (m *ListAccountRequest) XXX_DiscardUnknown()

func (*ListAccountRequest) XXX_Marshal added in v1.5.0

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

func (*ListAccountRequest) XXX_Merge added in v1.5.0

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

func (*ListAccountRequest) XXX_Size added in v1.5.0

func (m *ListAccountRequest) XXX_Size() int

func (*ListAccountRequest) XXX_Unmarshal added in v1.5.0

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

type Token added in v1.5.0

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

func (*Token) Descriptor added in v1.5.0

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

func (*Token) GetExpiresAt added in v1.5.0

func (m *Token) GetExpiresAt() int64

func (*Token) GetId added in v1.5.0

func (m *Token) GetId() string

func (*Token) GetIssuedAt added in v1.5.0

func (m *Token) GetIssuedAt() int64

func (*Token) Marshal added in v1.5.0

func (m *Token) Marshal() (dAtA []byte, err error)

func (*Token) MarshalTo added in v1.5.0

func (m *Token) MarshalTo(dAtA []byte) (int, error)

func (*Token) MarshalToSizedBuffer added in v1.5.0

func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Token) ProtoMessage added in v1.5.0

func (*Token) ProtoMessage()

func (*Token) Reset added in v1.5.0

func (m *Token) Reset()

func (*Token) Size added in v1.5.0

func (m *Token) Size() (n int)

func (*Token) String added in v1.5.0

func (m *Token) String() string

func (*Token) Unmarshal added in v1.5.0

func (m *Token) Unmarshal(dAtA []byte) error

func (*Token) XXX_DiscardUnknown added in v1.5.0

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal added in v1.5.0

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

func (*Token) XXX_Merge added in v1.5.0

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

func (*Token) XXX_Size added in v1.5.0

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal added in v1.5.0

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

type TokensList added in v1.5.0

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

func (*TokensList) Descriptor added in v1.5.0

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

func (*TokensList) GetItems added in v1.5.0

func (m *TokensList) GetItems() []*Token

func (*TokensList) Marshal added in v1.5.0

func (m *TokensList) Marshal() (dAtA []byte, err error)

func (*TokensList) MarshalTo added in v1.5.0

func (m *TokensList) MarshalTo(dAtA []byte) (int, error)

func (*TokensList) MarshalToSizedBuffer added in v1.5.0

func (m *TokensList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TokensList) ProtoMessage added in v1.5.0

func (*TokensList) ProtoMessage()

func (*TokensList) Reset added in v1.5.0

func (m *TokensList) Reset()

func (*TokensList) Size added in v1.5.0

func (m *TokensList) Size() (n int)

func (*TokensList) String added in v1.5.0

func (m *TokensList) String() string

func (*TokensList) Unmarshal added in v1.5.0

func (m *TokensList) Unmarshal(dAtA []byte) error

func (*TokensList) XXX_DiscardUnknown added in v1.5.0

func (m *TokensList) XXX_DiscardUnknown()

func (*TokensList) XXX_Marshal added in v1.5.0

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

func (*TokensList) XXX_Merge added in v1.5.0

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

func (*TokensList) XXX_Size added in v1.5.0

func (m *TokensList) XXX_Size() int

func (*TokensList) XXX_Unmarshal added in v1.5.0

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

type UnimplementedAccountServiceServer added in v1.4.0

type UnimplementedAccountServiceServer struct {
}

UnimplementedAccountServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAccountServiceServer) CanI added in v1.4.0

func (*UnimplementedAccountServiceServer) CreateToken added in v1.5.0

func (*UnimplementedAccountServiceServer) DeleteToken added in v1.5.0

func (*UnimplementedAccountServiceServer) GetAccount added in v1.5.0

func (*UnimplementedAccountServiceServer) ListAccounts added in v1.5.0

func (*UnimplementedAccountServiceServer) UpdatePassword added in v1.4.0

type UpdatePasswordRequest

type UpdatePasswordRequest struct {
	NewPassword          string   `protobuf:"bytes,1,opt,name=newPassword,proto3" json:"newPassword,omitempty"`
	CurrentPassword      string   `protobuf:"bytes,2,opt,name=currentPassword,proto3" json:"currentPassword,omitempty"`
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdatePasswordRequest) Descriptor

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

func (*UpdatePasswordRequest) GetCurrentPassword

func (m *UpdatePasswordRequest) GetCurrentPassword() string

func (*UpdatePasswordRequest) GetName added in v1.5.0

func (m *UpdatePasswordRequest) GetName() string

func (*UpdatePasswordRequest) GetNewPassword

func (m *UpdatePasswordRequest) GetNewPassword() string

func (*UpdatePasswordRequest) Marshal

func (m *UpdatePasswordRequest) Marshal() (dAtA []byte, err error)

func (*UpdatePasswordRequest) MarshalTo

func (m *UpdatePasswordRequest) MarshalTo(dAtA []byte) (int, error)

func (*UpdatePasswordRequest) MarshalToSizedBuffer added in v1.4.0

func (m *UpdatePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdatePasswordRequest) ProtoMessage

func (*UpdatePasswordRequest) ProtoMessage()

func (*UpdatePasswordRequest) Reset

func (m *UpdatePasswordRequest) Reset()

func (*UpdatePasswordRequest) Size

func (m *UpdatePasswordRequest) Size() (n int)

func (*UpdatePasswordRequest) String

func (m *UpdatePasswordRequest) String() string

func (*UpdatePasswordRequest) Unmarshal

func (m *UpdatePasswordRequest) Unmarshal(dAtA []byte) error

func (*UpdatePasswordRequest) XXX_DiscardUnknown

func (m *UpdatePasswordRequest) XXX_DiscardUnknown()

func (*UpdatePasswordRequest) XXX_Marshal

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

func (*UpdatePasswordRequest) XXX_Merge

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

func (*UpdatePasswordRequest) XXX_Size

func (m *UpdatePasswordRequest) XXX_Size() int

func (*UpdatePasswordRequest) XXX_Unmarshal

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

type UpdatePasswordResponse

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

func (*UpdatePasswordResponse) Descriptor

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

func (*UpdatePasswordResponse) Marshal

func (m *UpdatePasswordResponse) Marshal() (dAtA []byte, err error)

func (*UpdatePasswordResponse) MarshalTo

func (m *UpdatePasswordResponse) MarshalTo(dAtA []byte) (int, error)

func (*UpdatePasswordResponse) MarshalToSizedBuffer added in v1.4.0

func (m *UpdatePasswordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdatePasswordResponse) ProtoMessage

func (*UpdatePasswordResponse) ProtoMessage()

func (*UpdatePasswordResponse) Reset

func (m *UpdatePasswordResponse) Reset()

func (*UpdatePasswordResponse) Size

func (m *UpdatePasswordResponse) Size() (n int)

func (*UpdatePasswordResponse) String

func (m *UpdatePasswordResponse) String() string

func (*UpdatePasswordResponse) Unmarshal

func (m *UpdatePasswordResponse) Unmarshal(dAtA []byte) error

func (*UpdatePasswordResponse) XXX_DiscardUnknown

func (m *UpdatePasswordResponse) XXX_DiscardUnknown()

func (*UpdatePasswordResponse) XXX_Marshal

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

func (*UpdatePasswordResponse) XXX_Merge

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

func (*UpdatePasswordResponse) XXX_Size

func (m *UpdatePasswordResponse) XXX_Size() int

func (*UpdatePasswordResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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