Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ListenerAddrKey is the environment variable for the Octant listener address. ListenerAddrKey = "OCTANT_LISTENER_ADDR" AcceptedHostsKey = "OCTANT_ACCEPTED_HOSTS" // PathPrefix is a string for the api path prefix. PathPrefix = "/api/v1" )
Variables ¶
This section is empty.
Functions ¶
func ListenerAddr ¶ added in v0.6.0
func ListenerAddr() string
ListenerAddr returns the default listener address if OCTANT_LISTENER_ADDR is not set.
func RespondWithError ¶
RespondWithError responds with an error message.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is the API for the dashboard client
func New ¶
func New(ctx context.Context, prefix string, clusterClient ClusterClient, moduleManager module.ManagerInterface, actionDispatcher ActionDispatcher, logger log.Logger) *API
New creates an instance of API.
func (*API) ForceUpdate ¶
type ActionDispatcher ¶
type ClusterClient ¶
type ClusterClient interface {
NamespaceClient() (cluster.NamespaceInterface, error)
InfoClient() (cluster.InfoInterface, error)
}
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError is a not found error.
func NewNotFoundError ¶
func NewNotFoundError(path string) *NotFoundError
NewNotFoundError creates an instance of NotFoundError
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error returns the error string.
func (*NotFoundError) NotFound ¶
func (e *NotFoundError) NotFound() bool
NotFound returns true to signify this is a not found error.
Click to show internal directories.
Click to hide internal directories.