Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kernel ¶
type Kernel interface { // RoleForIp fetches the IAM role that is supposed to be used by a Pod with the provided IP. // Returns nil if no IAM role is assigned. RoleForIp(context.Context, iam4kube.IP) (*core_v1.Pod, *iam4kube.IamRole, error) // CredentialsForIp fetches credentials for the IAM role that is assigned to a Pod with the provided IP. // Returns nil if no IAM role is assigned. CredentialsForIp(context.Context, iam4kube.IP, string) (*core_v1.Pod, *iam4kube.Credentials, error) }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(logger *zap.Logger, addr, availabilityZone string, kernel Kernel, registry prometheus.Registerer, recorder record.EventRecorder) (*Server, error)
Click to show internal directories.
Click to hide internal directories.