Documentation ¶
Index ¶
- func New(name, bindAddr, botKey, token, tlsFile, caFile string, allowedOUs []string, ...) (riker.Bot, error)
- type ErrorLoadingCert
- type SlackBot
- func (b *SlackBot) ChatSend(msg, channel string)
- func (b *SlackBot) CommandStream(reg *botpb.Registration, stream botpb.Riker_CommandStreamServer) error
- func (b *SlackBot) HealthZ() error
- func (b *SlackBot) NewRedShirt(ctx context.Context, cap *botpb.Capability) (*botpb.Registration, error)
- func (b *SlackBot) NextCommand(ctx context.Context, reg *botpb.Registration) (*botpb.Message, error)
- func (b *SlackBot) Run()
- func (b *SlackBot) Send(ctx context.Context, msg *botpb.Message) (*botpb.SendResponse, error)
- func (b *SlackBot) SendStream(stream botpb.Riker_SendStreamServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorLoadingCert ¶
type ErrorLoadingCert struct {
// contains filtered or unexported fields
}
ErrorLoadingCert Is returned when some failure to read/parse/load cert is encountered
func (ErrorLoadingCert) Error ¶
func (e ErrorLoadingCert) Error() string
Error implements the error interface for this type
type SlackBot ¶
SlackBot is the slack adaptor for riker. It implments the riker.Bot interface for bridging redshirts to chat platforms
func (*SlackBot) CommandStream ¶
func (b *SlackBot) CommandStream(reg *botpb.Registration, stream botpb.Riker_CommandStreamServer) error
CommandStream is the call a client makes to setup a Push stream from riker -> client
func (*SlackBot) NewRedShirt ¶
func (b *SlackBot) NewRedShirt(ctx context.Context, cap *botpb.Capability) (*botpb.Registration, error)
NewRedShirt implements the riker protobuf server
func (*SlackBot) NextCommand ¶
func (b *SlackBot) NextCommand(ctx context.Context, reg *botpb.Registration) (*botpb.Message, error)
NextCommand is the call a client makes to pull the next command from rikers command buffer
func (*SlackBot) SendStream ¶
func (b *SlackBot) SendStream(stream botpb.Riker_SendStreamServer) error
SendStream is the call a client makes to send a stream message back to riker
Click to show internal directories.
Click to hide internal directories.