Documentation
¶
Index ¶
- func AuthenticationMethodStateTypeChoices() []string
- func AuthenticationMethodTypeChoices() []string
- func SamlCertTypeChoices() []string
- func SamlDigestAlgorithmTypeChoices() []string
- func SamlSignatureAlgorithmTypeChoices() []string
- func SamlVariantTypeChoices() []string
- type AccountAuthenticationHandler
- func (h *AccountAuthenticationHandler) AccountAuthenticationMethodCreate(ctx context.Context, accountId string, in *AccountAuthenticationMethodCreateIn) (*AccountAuthenticationMethodCreateOut, error)
- func (h *AccountAuthenticationHandler) AccountAuthenticationMethodDelete(ctx context.Context, accountId string, accountAuthenticationMethodId string) error
- func (h *AccountAuthenticationHandler) AccountAuthenticationMethodGet(ctx context.Context, accountId string, accountAuthenticationMethodId string) (*AccountAuthenticationMethodGetOut, error)
- func (h *AccountAuthenticationHandler) AccountAuthenticationMethodUpdate(ctx context.Context, accountId string, accountAuthenticationMethodId string, ...) (*AccountAuthenticationMethodUpdateOut, error)
- func (h *AccountAuthenticationHandler) AccountAuthenticationMethodsList(ctx context.Context, accountId string) ([]AuthenticationMethodOut, error)
- type AccountAuthenticationMethodCreateIn
- type AccountAuthenticationMethodCreateOut
- type AccountAuthenticationMethodGetOut
- type AccountAuthenticationMethodUpdateIn
- type AccountAuthenticationMethodUpdateOut
- type AuthenticationMethodOut
- type AuthenticationMethodStateType
- type AuthenticationMethodType
- type Handler
- type LinkedDomainIn
- type SamlCertType
- type SamlDigestAlgorithmType
- type SamlFieldMappingIn
- type SamlFieldMappingOut
- type SamlSignatureAlgorithmType
- type SamlVariantType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticationMethodStateTypeChoices ¶ added in v0.3.0
func AuthenticationMethodStateTypeChoices() []string
func AuthenticationMethodTypeChoices ¶
func AuthenticationMethodTypeChoices() []string
func SamlCertTypeChoices ¶ added in v0.3.0
func SamlCertTypeChoices() []string
func SamlDigestAlgorithmTypeChoices ¶
func SamlDigestAlgorithmTypeChoices() []string
func SamlSignatureAlgorithmTypeChoices ¶
func SamlSignatureAlgorithmTypeChoices() []string
func SamlVariantTypeChoices ¶
func SamlVariantTypeChoices() []string
Types ¶
type AccountAuthenticationHandler ¶
type AccountAuthenticationHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(doer doer) AccountAuthenticationHandler
func (*AccountAuthenticationHandler) AccountAuthenticationMethodCreate ¶
func (h *AccountAuthenticationHandler) AccountAuthenticationMethodCreate(ctx context.Context, accountId string, in *AccountAuthenticationMethodCreateIn) (*AccountAuthenticationMethodCreateOut, error)
func (*AccountAuthenticationHandler) AccountAuthenticationMethodDelete ¶
func (*AccountAuthenticationHandler) AccountAuthenticationMethodGet ¶
func (h *AccountAuthenticationHandler) AccountAuthenticationMethodGet(ctx context.Context, accountId string, accountAuthenticationMethodId string) (*AccountAuthenticationMethodGetOut, error)
func (*AccountAuthenticationHandler) AccountAuthenticationMethodUpdate ¶
func (h *AccountAuthenticationHandler) AccountAuthenticationMethodUpdate(ctx context.Context, accountId string, accountAuthenticationMethodId string, in *AccountAuthenticationMethodUpdateIn) (*AccountAuthenticationMethodUpdateOut, error)
func (*AccountAuthenticationHandler) AccountAuthenticationMethodsList ¶
func (h *AccountAuthenticationHandler) AccountAuthenticationMethodsList(ctx context.Context, accountId string) ([]AuthenticationMethodOut, error)
type AccountAuthenticationMethodCreateIn ¶
type AccountAuthenticationMethodCreateIn struct {
AuthTokenExtendWhenUsed *bool `json:"auth_token_extend_when_used,omitempty"`
AuthTokenMaxAgeSeconds *int `json:"auth_token_max_age_seconds,omitempty"`
AuthenticationMethodName string `json:"authentication_method_name"`
AuthenticationMethodType AuthenticationMethodType `json:"authentication_method_type"`
AutoJoinTeamId string `json:"auto_join_team_id,omitempty"`
AutoJoinUserGroupId string `json:"auto_join_user_group_id,omitempty"`
LinkedDomains *[]LinkedDomainIn `json:"linked_domains,omitempty"`
SamlAssertionSignedEnabled *bool `json:"saml_assertion_signed_enabled,omitempty"`
SamlAuthnRequestsSignedEnabled *bool `json:"saml_authn_requests_signed_enabled,omitempty"`
SamlCertificate string `json:"saml_certificate,omitempty"`
SamlDigestAlgorithm SamlDigestAlgorithmType `json:"saml_digest_algorithm,omitempty"`
SamlEntityId string `json:"saml_entity_id,omitempty"`
SamlFieldMapping *SamlFieldMappingIn `json:"saml_field_mapping,omitempty"`
SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"`
SamlIdpUrl string `json:"saml_idp_url,omitempty"`
SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"`
SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"`
SamlVariant SamlVariantType `json:"saml_variant,omitempty"`
ScimEnabled *bool `json:"scim_enabled,omitempty"`
}
type AccountAuthenticationMethodCreateOut ¶
type AccountAuthenticationMethodCreateOut struct {
AccountId string `json:"account_id"`
AuthTokenExtendWhenUsed *bool `json:"auth_token_extend_when_used,omitempty"`
AuthTokenMaxAgeSeconds *int `json:"auth_token_max_age_seconds,omitempty"`
AuthenticationMethodEnabled bool `json:"authentication_method_enabled"`
AuthenticationMethodId string `json:"authentication_method_id"`
AuthenticationMethodName string `json:"authentication_method_name,omitempty"`
AuthenticationMethodType AuthenticationMethodType `json:"authentication_method_type"`
AutoJoinTeamId string `json:"auto_join_team_id"`
AutoJoinUserGroupId string `json:"auto_join_user_group_id"`
CreateTime time.Time `json:"create_time"`
DeleteTime time.Time `json:"delete_time"`
OrganizationId string `json:"organization_id,omitempty"`
SamlAcsUrl string `json:"saml_acs_url,omitempty"`
SamlAssertionSignedEnabled *bool `json:"saml_assertion_signed_enabled,omitempty"`
SamlAuthnRequestsSignedEnabled *bool `json:"saml_authn_requests_signed_enabled,omitempty"`
SamlCert SamlCertType `json:"saml_cert,omitempty"`
SamlCertificate string `json:"saml_certificate,omitempty"`
SamlCertificateIssuer string `json:"saml_certificate_issuer,omitempty"`
SamlCertificateNotValidAfter string `json:"saml_certificate_not_valid_after,omitempty"`
SamlCertificateNotValidBefore string `json:"saml_certificate_not_valid_before,omitempty"`
SamlCertificateSubject string `json:"saml_certificate_subject,omitempty"`
SamlDigestAlgorithm SamlDigestAlgorithmType `json:"saml_digest_algorithm,omitempty"`
SamlEntityId string `json:"saml_entity_id,omitempty"`
SamlFieldMapping *SamlFieldMappingOut `json:"saml_field_mapping,omitempty"`
SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"`
SamlIdpUrl string `json:"saml_idp_url,omitempty"`
SamlMetadataUrl string `json:"saml_metadata_url,omitempty"`
SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"`
SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"`
SamlSpCertificate string `json:"saml_sp_certificate,omitempty"`
SamlVariant SamlVariantType `json:"saml_variant,omitempty"`
ScimEnabled *bool `json:"scim_enabled,omitempty"`
ScimUrl string `json:"scim_url,omitempty"`
State AuthenticationMethodStateType `json:"state"`
UpdateTime time.Time `json:"update_time"`
}
type AccountAuthenticationMethodGetOut ¶
type AccountAuthenticationMethodGetOut struct {
AccountId string `json:"account_id"`
AuthTokenExtendWhenUsed *bool `json:"auth_token_extend_when_used,omitempty"`
AuthTokenMaxAgeSeconds *int `json:"auth_token_max_age_seconds,omitempty"`
AuthenticationMethodEnabled bool `json:"authentication_method_enabled"`
AuthenticationMethodId string `json:"authentication_method_id"`
AuthenticationMethodName string `json:"authentication_method_name,omitempty"`
AuthenticationMethodType AuthenticationMethodType `json:"authentication_method_type"`
AutoJoinTeamId string `json:"auto_join_team_id"`
AutoJoinUserGroupId string `json:"auto_join_user_group_id"`
CreateTime time.Time `json:"create_time"`
DeleteTime time.Time `json:"delete_time"`
OrganizationId string `json:"organization_id,omitempty"`
SamlAcsUrl string `json:"saml_acs_url,omitempty"`
SamlAssertionSignedEnabled *bool `json:"saml_assertion_signed_enabled,omitempty"`
SamlAuthnRequestsSignedEnabled *bool `json:"saml_authn_requests_signed_enabled,omitempty"`
SamlCert SamlCertType `json:"saml_cert,omitempty"`
SamlCertificate string `json:"saml_certificate,omitempty"`
SamlCertificateIssuer string `json:"saml_certificate_issuer,omitempty"`
SamlCertificateNotValidAfter string `json:"saml_certificate_not_valid_after,omitempty"`
SamlCertificateNotValidBefore string `json:"saml_certificate_not_valid_before,omitempty"`
SamlCertificateSubject string `json:"saml_certificate_subject,omitempty"`
SamlDigestAlgorithm SamlDigestAlgorithmType `json:"saml_digest_algorithm,omitempty"`
SamlEntityId string `json:"saml_entity_id,omitempty"`
SamlFieldMapping *SamlFieldMappingOut `json:"saml_field_mapping,omitempty"`
SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"`
SamlIdpUrl string `json:"saml_idp_url,omitempty"`
SamlMetadataUrl string `json:"saml_metadata_url,omitempty"`
SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"`
SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"`
SamlSpCertificate string `json:"saml_sp_certificate,omitempty"`
SamlVariant SamlVariantType `json:"saml_variant,omitempty"`
ScimEnabled *bool `json:"scim_enabled,omitempty"`
ScimUrl string `json:"scim_url,omitempty"`
State AuthenticationMethodStateType `json:"state"`
UpdateTime time.Time `json:"update_time"`
}
type AccountAuthenticationMethodUpdateIn ¶
type AccountAuthenticationMethodUpdateIn struct {
AuthTokenExtendWhenUsed *bool `json:"auth_token_extend_when_used,omitempty"`
AuthTokenMaxAgeSeconds *int `json:"auth_token_max_age_seconds,omitempty"`
AuthenticationMethodEnabled *bool `json:"authentication_method_enabled,omitempty"`
AuthenticationMethodName string `json:"authentication_method_name,omitempty"`
AutoJoinTeamId string `json:"auto_join_team_id,omitempty"`
AutoJoinUserGroupId string `json:"auto_join_user_group_id,omitempty"`
SamlAssertionSignedEnabled *bool `json:"saml_assertion_signed_enabled,omitempty"`
SamlAuthnRequestsSignedEnabled *bool `json:"saml_authn_requests_signed_enabled,omitempty"`
SamlCertificate string `json:"saml_certificate,omitempty"`
SamlDigestAlgorithm SamlDigestAlgorithmType `json:"saml_digest_algorithm,omitempty"`
SamlEntityId string `json:"saml_entity_id,omitempty"`
SamlFieldMapping *SamlFieldMappingIn `json:"saml_field_mapping,omitempty"`
SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"`
SamlIdpUrl string `json:"saml_idp_url,omitempty"`
SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"`
SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"`
SamlVariant SamlVariantType `json:"saml_variant,omitempty"`
ScimEnabled *bool `json:"scim_enabled,omitempty"`
}
type AccountAuthenticationMethodUpdateOut ¶
type AccountAuthenticationMethodUpdateOut struct {
AccountId string `json:"account_id"`
AuthTokenExtendWhenUsed *bool `json:"auth_token_extend_when_used,omitempty"`
AuthTokenMaxAgeSeconds *int `json:"auth_token_max_age_seconds,omitempty"`
AuthenticationMethodEnabled bool `json:"authentication_method_enabled"`
AuthenticationMethodId string `json:"authentication_method_id"`
AuthenticationMethodName string `json:"authentication_method_name,omitempty"`
AuthenticationMethodType AuthenticationMethodType `json:"authentication_method_type"`
AutoJoinTeamId string `json:"auto_join_team_id"`
AutoJoinUserGroupId string `json:"auto_join_user_group_id"`
CreateTime time.Time `json:"create_time"`
DeleteTime time.Time `json:"delete_time"`
OrganizationId string `json:"organization_id,omitempty"`
SamlAcsUrl string `json:"saml_acs_url,omitempty"`
SamlAssertionSignedEnabled *bool `json:"saml_assertion_signed_enabled,omitempty"`
SamlAuthnRequestsSignedEnabled *bool `json:"saml_authn_requests_signed_enabled,omitempty"`
SamlCert SamlCertType `json:"saml_cert,omitempty"`
SamlCertificate string `json:"saml_certificate,omitempty"`
SamlCertificateIssuer string `json:"saml_certificate_issuer,omitempty"`
SamlCertificateNotValidAfter string `json:"saml_certificate_not_valid_after,omitempty"`
SamlCertificateNotValidBefore string `json:"saml_certificate_not_valid_before,omitempty"`
SamlCertificateSubject string `json:"saml_certificate_subject,omitempty"`
SamlDigestAlgorithm SamlDigestAlgorithmType `json:"saml_digest_algorithm,omitempty"`
SamlEntityId string `json:"saml_entity_id,omitempty"`
SamlFieldMapping *SamlFieldMappingOut `json:"saml_field_mapping,omitempty"`
SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"`
SamlIdpUrl string `json:"saml_idp_url,omitempty"`
SamlMetadataUrl string `json:"saml_metadata_url,omitempty"`
SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"`
SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"`
SamlSpCertificate string `json:"saml_sp_certificate,omitempty"`
SamlVariant SamlVariantType `json:"saml_variant,omitempty"`
ScimEnabled *bool `json:"scim_enabled,omitempty"`
ScimUrl string `json:"scim_url,omitempty"`
State AuthenticationMethodStateType `json:"state"`
UpdateTime time.Time `json:"update_time"`
}
type AuthenticationMethodOut ¶
type AuthenticationMethodOut struct {
AccountId string `json:"account_id"`
AuthTokenExtendWhenUsed *bool `json:"auth_token_extend_when_used,omitempty"`
AuthTokenMaxAgeSeconds *int `json:"auth_token_max_age_seconds,omitempty"`
AuthenticationMethodEnabled bool `json:"authentication_method_enabled"`
AuthenticationMethodId string `json:"authentication_method_id"`
AuthenticationMethodName string `json:"authentication_method_name,omitempty"`
AuthenticationMethodType AuthenticationMethodType `json:"authentication_method_type"`
AutoJoinTeamId string `json:"auto_join_team_id"`
AutoJoinUserGroupId string `json:"auto_join_user_group_id"`
CreateTime time.Time `json:"create_time"`
DeleteTime time.Time `json:"delete_time"`
OrganizationId string `json:"organization_id,omitempty"`
SamlAcsUrl string `json:"saml_acs_url,omitempty"`
SamlAssertionSignedEnabled *bool `json:"saml_assertion_signed_enabled,omitempty"`
SamlAuthnRequestsSignedEnabled *bool `json:"saml_authn_requests_signed_enabled,omitempty"`
SamlCert SamlCertType `json:"saml_cert,omitempty"`
SamlCertificate string `json:"saml_certificate,omitempty"`
SamlCertificateIssuer string `json:"saml_certificate_issuer,omitempty"`
SamlCertificateNotValidAfter string `json:"saml_certificate_not_valid_after,omitempty"`
SamlCertificateNotValidBefore string `json:"saml_certificate_not_valid_before,omitempty"`
SamlCertificateSubject string `json:"saml_certificate_subject,omitempty"`
SamlDigestAlgorithm SamlDigestAlgorithmType `json:"saml_digest_algorithm,omitempty"`
SamlEntityId string `json:"saml_entity_id,omitempty"`
SamlFieldMapping *SamlFieldMappingOut `json:"saml_field_mapping,omitempty"`
SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"`
SamlIdpUrl string `json:"saml_idp_url,omitempty"`
SamlMetadataUrl string `json:"saml_metadata_url,omitempty"`
SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"`
SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"`
SamlSpCertificate string `json:"saml_sp_certificate,omitempty"`
SamlVariant SamlVariantType `json:"saml_variant,omitempty"`
ScimEnabled *bool `json:"scim_enabled,omitempty"`
ScimUrl string `json:"scim_url,omitempty"`
State AuthenticationMethodStateType `json:"state"`
UpdateTime time.Time `json:"update_time"`
}
type AuthenticationMethodStateType ¶ added in v0.3.0
type AuthenticationMethodStateType string
const ( AuthenticationMethodStateTypeActive AuthenticationMethodStateType = "active" AuthenticationMethodStateTypeDeleted AuthenticationMethodStateType = "deleted" AuthenticationMethodStateTypePendingConfiguration AuthenticationMethodStateType = "pending_configuration" )
type AuthenticationMethodType ¶
type AuthenticationMethodType string
const ( AuthenticationMethodTypeInternal AuthenticationMethodType = "internal" AuthenticationMethodTypeSaml AuthenticationMethodType = "saml" )
type Handler ¶
type Handler interface {
// AccountAuthenticationMethodCreate create a new authentication method
// POST /v1/account/{account_id}/authentication
// https://api.aiven.io/doc/#tag/Account/operation/AccountAuthenticationMethodCreate
AccountAuthenticationMethodCreate(ctx context.Context, accountId string, in *AccountAuthenticationMethodCreateIn) (*AccountAuthenticationMethodCreateOut, error)
// AccountAuthenticationMethodDelete delete authentication method
// DELETE /v1/account/{account_id}/authentication/{account_authentication_method_id}
// https://api.aiven.io/doc/#tag/Account/operation/AccountAuthenticationMethodDelete
AccountAuthenticationMethodDelete(ctx context.Context, accountId string, accountAuthenticationMethodId string) error
// AccountAuthenticationMethodGet get details of a single authentication method
// GET /v1/account/{account_id}/authentication/{account_authentication_method_id}
// https://api.aiven.io/doc/#tag/Account/operation/AccountAuthenticationMethodGet
AccountAuthenticationMethodGet(ctx context.Context, accountId string, accountAuthenticationMethodId string) (*AccountAuthenticationMethodGetOut, error)
// AccountAuthenticationMethodUpdate update authentication method
// PUT /v1/account/{account_id}/authentication/{account_authentication_method_id}
// https://api.aiven.io/doc/#tag/Account/operation/AccountAuthenticationMethodUpdate
AccountAuthenticationMethodUpdate(ctx context.Context, accountId string, accountAuthenticationMethodId string, in *AccountAuthenticationMethodUpdateIn) (*AccountAuthenticationMethodUpdateOut, error)
// AccountAuthenticationMethodsList list authentication methods
// GET /v1/account/{account_id}/authentication
// https://api.aiven.io/doc/#tag/Account/operation/AccountAuthenticationMethodsList
AccountAuthenticationMethodsList(ctx context.Context, accountId string) ([]AuthenticationMethodOut, error)
}
type LinkedDomainIn ¶
type LinkedDomainIn struct {
DomainId string `json:"domain_id"`
}
type SamlCertType ¶ added in v0.3.0
type SamlCertType string
const (
SamlCertTypeAdfs SamlCertType = "adfs"
)
type SamlDigestAlgorithmType ¶
type SamlDigestAlgorithmType string
const ( SamlDigestAlgorithmTypeSha1 SamlDigestAlgorithmType = "sha1" SamlDigestAlgorithmTypeSha256 SamlDigestAlgorithmType = "sha256" SamlDigestAlgorithmTypeSha384 SamlDigestAlgorithmType = "sha384" SamlDigestAlgorithmTypeSha512 SamlDigestAlgorithmType = "sha512" )
type SamlFieldMappingIn ¶
type SamlFieldMappingOut ¶
type SamlSignatureAlgorithmType ¶
type SamlSignatureAlgorithmType string
const ( SamlSignatureAlgorithmTypeRsaSha1 SamlSignatureAlgorithmType = "rsa-sha1" SamlSignatureAlgorithmTypeDsaSha1 SamlSignatureAlgorithmType = "dsa-sha1" SamlSignatureAlgorithmTypeRsaSha256 SamlSignatureAlgorithmType = "rsa-sha256" SamlSignatureAlgorithmTypeRsaSha384 SamlSignatureAlgorithmType = "rsa-sha384" SamlSignatureAlgorithmTypeRsaSha512 SamlSignatureAlgorithmType = "rsa-sha512" )
type SamlVariantType ¶
type SamlVariantType string
const (
SamlVariantTypeAdfs SamlVariantType = "adfs"
)
Click to show internal directories.
Click to hide internal directories.