Documentation ¶
Index ¶
- func AuthorizeForChart(w http.ResponseWriter, req *http.Request, authzer authorizer.Authorizer, ...) (passed bool, err error)
- func AuthorizeForChartGroup(w http.ResponseWriter, req *http.Request, authzer authorizer.Authorizer, ...) (passed bool, err error)
- func ChartNameVersionFromFile(file string) (name, version string, ok bool)
- func WithAuthorization(handler http.Handler, opts *Options) (http.Handler, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeForChart ¶ added in v1.4.0
func AuthorizeForChart(w http.ResponseWriter, req *http.Request, authzer authorizer.Authorizer, verb string, cg registryv1.ChartGroup, chartName string) (passed bool, err error)
AuthorizeForChart check if chart resource is authorized
func AuthorizeForChartGroup ¶ added in v1.4.0
func AuthorizeForChartGroup(w http.ResponseWriter, req *http.Request, authzer authorizer.Authorizer, verb string, cg registryv1.ChartGroup) (passed bool, err error)
AuthorizeForChartGroup check if chartgroup resource is authorized
func ChartNameVersionFromFile ¶
ChartNameVersionFromFile returns chart name and version from chart filename.
Types ¶
type Options ¶
type Options struct { AdminUsername string ExternalScheme string LoopbackConfig *restclient.Config Authorizer authorizer.Authorizer }
Click to show internal directories.
Click to hide internal directories.