Documentation ¶
Index ¶
- Constants
- Variables
- func CreateGithubIDPBuilder(ctx context.Context, state *GithubIdentityProvider) (*cmv1.GithubIdentityProviderBuilder, error)
- func CreateGitlabIDPBuilder(ctx context.Context, state *GitlabIdentityProvider) (*cmv1.GitlabIdentityProviderBuilder, error)
- func CreateGoogleIDPBuilder(ctx context.Context, mappingMethod string, state *GoogleIdentityProvider) (*cmv1.GoogleIdentityProviderBuilder, error)
- func CreateHTPasswdIDPBuilder(ctx context.Context, state *HTPasswdIdentityProvider) *cmv1.HTPasswdIdentityProviderBuilder
- func CreateLDAPIDPBuilder(ctx context.Context, state *LDAPIdentityProvider) (*cmv1.LDAPIdentityProviderBuilder, error)
- func CreateOpenIDIDPBuilder(ctx context.Context, state *OpenIDIdentityProvider) (*cmv1.OpenIDIdentityProviderBuilder, error)
- func New() resource.Resource
- type GithubIdentityProvider
- type GitlabIdentityProvider
- type GoogleIdentityProvider
- type HTPasswdIdentityProvider
- type HTPasswdUser
- type IdentityProviderResource
- func (r *IdentityProviderResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *IdentityProviderResource) Create(ctx context.Context, request resource.CreateRequest, ...)
- func (r *IdentityProviderResource) Delete(ctx context.Context, request resource.DeleteRequest, ...)
- func (r *IdentityProviderResource) ImportState(ctx context.Context, request resource.ImportStateRequest, ...)
- func (r *IdentityProviderResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *IdentityProviderResource) Read(ctx context.Context, request resource.ReadRequest, ...)
- func (r *IdentityProviderResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *IdentityProviderResource) Update(ctx context.Context, request resource.UpdateRequest, ...)
- func (r *IdentityProviderResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type IdentityProviderState
- type LDAPIdentityProvider
- type LDAPIdentityProviderAttributes
- type OpenIDIdentityProvider
- type OpenIDIdentityProviderClaims
Constants ¶
View Source
const (
HTPasswdMinPassLength = 14
)
Variables ¶
View Source
var ( HTPasswdPassRegexAscii = regexp.MustCompile(`^[\x20-\x7E]+$`) HTPasswdPassRegexHasUpper = regexp.MustCompile(`[A-Z]`) HTPasswdPassRegexHasLower = regexp.MustCompile(`[a-z]`) HTPasswdPassRegexHasNumOrSymbol = regexp.MustCompile(`[^a-zA-Z]`) HTPasswdPasswordValidators = []validator.String{ stringvalidator.LengthAtLeast(HTPasswdMinPassLength), stringvalidator.RegexMatches(HTPasswdPassRegexAscii, "password should use ASCII-standard characters only"), stringvalidator.RegexMatches(HTPasswdPassRegexHasUpper, "password must contain uppercase characters"), stringvalidator.RegexMatches(HTPasswdPassRegexHasLower, "password must contain lowercase characters"), stringvalidator.RegexMatches(HTPasswdPassRegexHasNumOrSymbol, "password must contain numbers or symbols"), } HTPasswdUsernameValidators = []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile(`^[^/:%]*$`), "username may not contain the characters: '/:%'"), } )
View Source
var LDAPAttrDefaultEmail []string = []string{"mail"}
View Source
var LDAPAttrDefaultID []string = []string{"dn"}
View Source
var LDAPAttrDefaultName []string = []string{"cn"}
View Source
var LDAPAttrDefaultPrefferedUsername []string = []string{"uid"}
Functions ¶
func CreateGithubIDPBuilder ¶
func CreateGithubIDPBuilder(ctx context.Context, state *GithubIdentityProvider) (*cmv1.GithubIdentityProviderBuilder, error)
func CreateGitlabIDPBuilder ¶
func CreateGitlabIDPBuilder(ctx context.Context, state *GitlabIdentityProvider) (*cmv1.GitlabIdentityProviderBuilder, error)
func CreateGoogleIDPBuilder ¶
func CreateGoogleIDPBuilder(ctx context.Context, mappingMethod string, state *GoogleIdentityProvider) (*cmv1.GoogleIdentityProviderBuilder, error)
func CreateHTPasswdIDPBuilder ¶
func CreateHTPasswdIDPBuilder(ctx context.Context, state *HTPasswdIdentityProvider) *cmv1.HTPasswdIdentityProviderBuilder
func CreateLDAPIDPBuilder ¶
func CreateLDAPIDPBuilder(ctx context.Context, state *LDAPIdentityProvider) (*cmv1.LDAPIdentityProviderBuilder, error)
func CreateOpenIDIDPBuilder ¶
func CreateOpenIDIDPBuilder(ctx context.Context, state *OpenIDIdentityProvider) (*cmv1.OpenIDIdentityProviderBuilder, error)
Types ¶
type GithubIdentityProvider ¶
type GitlabIdentityProvider ¶
type GoogleIdentityProvider ¶
type HTPasswdIdentityProvider ¶
type HTPasswdIdentityProvider struct {
Users []HTPasswdUser `tfsdk:"users"`
}
type HTPasswdUser ¶
type IdentityProviderResource ¶
type IdentityProviderResource struct {
// contains filtered or unexported fields
}
func (*IdentityProviderResource) Configure ¶
func (r *IdentityProviderResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*IdentityProviderResource) Create ¶
func (r *IdentityProviderResource) Create(ctx context.Context, request resource.CreateRequest, response *resource.CreateResponse)
func (*IdentityProviderResource) Delete ¶
func (r *IdentityProviderResource) Delete(ctx context.Context, request resource.DeleteRequest, response *resource.DeleteResponse)
func (*IdentityProviderResource) ImportState ¶
func (r *IdentityProviderResource) ImportState(ctx context.Context, request resource.ImportStateRequest, response *resource.ImportStateResponse)
func (*IdentityProviderResource) Metadata ¶
func (r *IdentityProviderResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*IdentityProviderResource) Read ¶
func (r *IdentityProviderResource) Read(ctx context.Context, request resource.ReadRequest, response *resource.ReadResponse)
func (*IdentityProviderResource) Schema ¶
func (r *IdentityProviderResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*IdentityProviderResource) Update ¶
func (r *IdentityProviderResource) Update(ctx context.Context, request resource.UpdateRequest, response *resource.UpdateResponse)
func (*IdentityProviderResource) ValidateConfig ¶
func (r *IdentityProviderResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type IdentityProviderState ¶
type IdentityProviderState struct { Cluster types.String `tfsdk:"cluster"` ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` MappingMethod types.String `tfsdk:"mapping_method"` HTPasswd *HTPasswdIdentityProvider `tfsdk:"htpasswd"` Gitlab *GitlabIdentityProvider `tfsdk:"gitlab"` Github *GithubIdentityProvider `tfsdk:"github"` Google *GoogleIdentityProvider `tfsdk:"google"` LDAP *LDAPIdentityProvider `tfsdk:"ldap"` OpenID *OpenIDIdentityProvider `tfsdk:"openid"` }
type LDAPIdentityProvider ¶
type OpenIDIdentityProvider ¶
type OpenIDIdentityProvider struct { CA types.String `tfsdk:"ca"` Claims *OpenIDIdentityProviderClaims `tfsdk:"claims"` ClientID types.String `tfsdk:"client_id"` ClientSecret types.String `tfsdk:"client_secret"` ExtraScopes types.List `tfsdk:"extra_scopes"` ExtraAuthorizeParameters types.Map `tfsdk:"extra_authorize_parameters"` Issuer types.String `tfsdk:"issuer"` }
Click to show internal directories.
Click to hide internal directories.