agent

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 NewClient

func NewClient(serverURL string) (*Client, error)

NewClient creates Client.

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

func (c *Client) UpdateServerURL(serverURL string) error

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.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run starts the slack agent server.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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