Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthOptions ¶
type AuthOptions struct { AssetsPath string IDTokenTimeout time.Duration InitTenantType string InitTenantID string InitIDPAdmins []string LdapConfigFile string CloudIndustryConfigFile string InitClientID string InitClientSecret string InitClientRedirectUris []string PasswordGrantConnID string }
AuthOptions contains configuration items related to auth attributes.
func NewAuthOptions ¶
func NewAuthOptions() *AuthOptions
NewAuthOptions creates a AuthOptions object with default parameters.
func (*AuthOptions) AddFlags ¶
func (o *AuthOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags for console to the specified FlagSet object.
func (*AuthOptions) ApplyFlags ¶
func (o *AuthOptions) ApplyFlags() []error
ApplyFlags parsing parameters from the command line or configuration file to the options instance.
type AuthorizationOptions ¶
type AuthorizationOptions struct { CasbinModelFile string CasbinReloadInterval time.Duration Debug bool PolicyFile string WebhookConfigFile string WebhookVersion string WebhookCacheAuthorizedTTL time.Duration }
AuthorizationOptions contains configuration items related to authorization.
func NewAuthorizationOptions ¶
func NewAuthorizationOptions() *AuthorizationOptions
NewAuthorizationOptions creates a AuthorizationOptions object with default parameters.
func (*AuthorizationOptions) AddFlags ¶
func (o *AuthorizationOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to authenticate for a specific APIServer to the specified FlagSet
func (*AuthorizationOptions) ApplyFlags ¶
func (o *AuthorizationOptions) ApplyFlags() []error
ApplyFlags parsing parameters from the command line or configuration file to the options instance.
type Options ¶
type Options struct { Log *log.Options SecureServing *apiserveroptions.SecureServingOptions Debug *apiserveroptions.DebugOptions Generic *apiserveroptions.GenericOptions Authentication *apiserveroptions.AuthenticationWithAPIOptions Authorization *AuthorizationOptions ETCD *storageoptions.ETCDStorageOptions Auth *AuthOptions Audit *genericapiserveroptions.AuditOptions }
Options is the main context object for the TKE auth.
func NewOptions ¶
NewOptions creates a new Options with a default config.
func (*Options) AddFlags ¶
AddFlags adds flags for a specific server to the specified FlagSet object.
func (*Options) ApplyFlags ¶
ApplyFlags parsing parameters from the command line or configuration file to the options instance.