Documentation
¶
Index ¶
- Constants
- func CreateJimService() pb.JimServer
- type Config
- type ConfigElement
- type JimServiceImpl
- func (j JimServiceImpl) Decrypt(req *pb.DecryptRequest, stream pb.Jim_DecryptServer) error
- func (j JimServiceImpl) GetState(ctx context.Context, request *pb.StateRequest) (*pb.StateReply, error)
- func (j JimServiceImpl) List(ctx context.Context, request *pb.ListRequest) (*pb.ListReply, error)
- func (j JimServiceImpl) LoadConfigFile(ctx context.Context, request *pb.LoadRequest) (*pb.LoadReply, error)
- func (j JimServiceImpl) Match(ctx context.Context, request *pb.MatchRequest) (*pb.MatchReply, error)
- func (j JimServiceImpl) MatchN(ctx context.Context, request *pb.MatchNRequest) (*pb.MatchNReply, error)
- type ServerEntry
Constants ¶
View Source
const ( ReadServerState = iota WriteCloseState WriteState )
Variables ¶
This section is empty.
Functions ¶
func CreateJimService ¶
CreateJimService creates a new grpc server instance
Types ¶
type ConfigElement ¶
type ConfigElement struct { Group string Env string Tag string Server ServerEntry }
ConfigElement is the main structure used within the server
func (ConfigElement) String ¶
func (c ConfigElement) String() string
type JimServiceImpl ¶
type JimServiceImpl struct {
// contains filtered or unexported fields
}
func (JimServiceImpl) Decrypt ¶
func (j JimServiceImpl) Decrypt(req *pb.DecryptRequest, stream pb.Jim_DecryptServer) error
func (JimServiceImpl) GetState ¶
func (j JimServiceImpl) GetState(ctx context.Context, request *pb.StateRequest) (*pb.StateReply, error)
func (JimServiceImpl) List ¶
func (j JimServiceImpl) List(ctx context.Context, request *pb.ListRequest) (*pb.ListReply, error)
func (JimServiceImpl) LoadConfigFile ¶
func (j JimServiceImpl) LoadConfigFile(ctx context.Context, request *pb.LoadRequest) (*pb.LoadReply, error)
func (JimServiceImpl) Match ¶
func (j JimServiceImpl) Match(ctx context.Context, request *pb.MatchRequest) (*pb.MatchReply, error)
func (JimServiceImpl) MatchN ¶
func (j JimServiceImpl) MatchN(ctx context.Context, request *pb.MatchNRequest) (*pb.MatchNReply, error)
todo remove, no longer required?
type ServerEntry ¶
ServerEntry holds all the information necessary to connect to a server via ssh
Click to show internal directories.
Click to hide internal directories.