accessentry

package
v0.171.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDisabledAccessEntryAPI = fmt.Errorf("access entries API is not currently enabled; please enable it using `eksctl utils update-authentication-mode --cluster <> --authentication-mode=API_AND_CONFIG_MAP`")
)

Functions

func IsEnabled

func IsEnabled(authenticationMode ekstypes.AuthenticationMode) bool

IsEnabled reports whether the authenticationMode indicates that the cluster has access entries enabled.

func ValidateAPIServerAccess

func ValidateAPIServerAccess(clusterConfig *api.ClusterConfig) error

ValidateAPIServerAccess validates whether the API server is accessible for clusterConfig, and logs warning messages for operations that might fail later.

Types

type ClusterStateGetter

type ClusterStateGetter interface {
	GetClusterState() *ekstypes.Cluster
}

ClusterStateGetter returns the cluster state.

type Service

type Service struct {
	// ClusterStateGetter returns the cluster state.
	ClusterStateGetter
}

Service is a service for access entries.

func (*Service) IsAWSAuthDisabled

func (s *Service) IsAWSAuthDisabled() bool

IsAWSAuthDisabled reports whether the cluster has authentication mode set to API.

func (*Service) IsEnabled

func (s *Service) IsEnabled() bool

IsEnabled reports whether the cluster has access entries enabled.

Jump to

Keyboard shortcuts

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