api

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterControlPlane = "control-plane"

ClusterControlPlane is the cluster name the tkestack control-planes like tke-platform-api will use to report audit events

View Source
const GroupName = "audit.tkestack.io"

GroupName is the api group name for audit.

View Source
const Version = "v1"

Version is the api version for audit.

Variables

This section is empty.

Functions

func IgnoredAuthPathPrefixes

func IgnoredAuthPathPrefixes() []string

IgnoredAuthPathPrefixes returns a list of path prefixes that does not need to go through the built-in authentication and authorization middleware of apiserver.

func RegisterRoute

func RegisterRoute(container *restful.Container, cfg *auditconfig.AuditConfiguration) error

RegisterRoute is used to register prefix path routing matches for all configured backend components.

Types

type Pagination

type Pagination struct {
	ResultStatus `json:",inline"`
	Total        int            `json:"total"`
	Items        []*types.Event `json:"items"`
}

type ResultStatus

type ResultStatus struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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