Documentation ¶
Index ¶
- Constants
- type HTTP
- type HTTPOption
- type HTTPRequestOption
- type Loader
- type LocalDirectory
- func (s *LocalDirectory) Delete(_ context.Context, owner client.Object) error
- func (s *LocalDirectory) Load(_ context.Context, owner client.Object) (fs.FS, error)
- func (s *LocalDirectory) ServeHTTP(resp http.ResponseWriter, req *http.Request)
- func (s *LocalDirectory) Store(_ context.Context, owner client.Object, bundle fs.FS) error
- func (s *LocalDirectory) URLFor(_ context.Context, owner client.Object) (string, error)
- type Storage
- type Storer
Constants ¶
View Source
const DefaultBundleCacheDir = "/var/cache/bundles"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
func NewHTTP ¶
func NewHTTP(opts ...HTTPOption) *HTTP
type HTTPOption ¶
type HTTPOption func(*HTTP)
func WithBearerToken ¶
func WithBearerToken(token string) HTTPOption
func WithInsecureSkipVerify ¶
func WithInsecureSkipVerify(v bool) HTTPOption
func WithRootCAs ¶
func WithRootCAs(rootCAs *x509.CertPool) HTTPOption
type HTTPRequestOption ¶
type LocalDirectory ¶
func (*LocalDirectory) ServeHTTP ¶
func (s *LocalDirectory) ServeHTTP(resp http.ResponseWriter, req *http.Request)
type Storage ¶
func WithFallbackLoader ¶
Click to show internal directories.
Click to hide internal directories.