package
2.1.6
Repository: https://github.com/athenz/garm.git
Documentation: pkg.go.dev

# Functions

NewAthenz creates a new Athenz object that can handle HTTP requests based on the given configuration.
NewLogger creates a Logger based on the input configuration.
NewResolver returns a new resolver using cfg.TLD.Platform.
NewResourceMapper creates a new ResourceMapper for mapping K8s resources to Athenz principals.
NewServer returns a Server interface, which includes Webhook server and health check server structs.
NewTLSConfig returns a *tls.Config struct or error.
NewTokenService returns a TokenService.
NewUserMapper returns a UserMapper instance with given Resolver.
NewX509CertPool returns *x509.CertPool struct or error.

# Constants

CharsetUTF8 represents a UTF-8 charset for HTTP response "charset=UTF-8".
ContentType represents a HTTP header name "Content-Type".
TextPlain represents a HTTP content type "text/plain".

# Variables

ErrContextClosed represents the error that the context is closed.
ErrTokenNotFound represents the error that the token is not found.

# Structs

AKSResolve implementation for Azure AKS platform.
EKSResolve implementation for Amazon EKS platform.
K8SResolve implementation for K8S platform.

# Interfaces

Athenz interface is used to send HTTP requests to Athenz server.
Logger is an intermediate interface to create an actual logger.
Resolver is used to map K8s webhook requests to Athenz requests.
ResourceMapper allows for mapping from an authorization request to Athenz principals.
Server represents a Garm server behaviour.
TokenService represents an interface for user to get the token, and automatically update the token.
UserMapper allows for mapping from Athenz principals to k8s objects.