Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for Slack agent.
func (*Client) PostResult ¶
func (c *Client) PostResult(ctx context.Context, channel, result string, extend bool, namespaceName, podName string, info *runner.JobInfo) error
PostResult sends a result of CI job to server.
func (*Client) UpdateServerURL ¶ added in v0.4.2
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server receives requests from clients and communicates with Slack.
func NewServer ¶
func NewServer(logger logr.Logger, listenAddr string, defaultChannel string, appToken, botToken string, devMode bool, verbose bool) (*Server, error)
NewServer creates slack agent server.
Click to show internal directories.
Click to hide internal directories.