Documentation
¶
Index ¶
- func DomainStateTypeChoices() []string
- func TierTypeChoices() []string
- func VerificationTypeChoices() []string
- type DomainOut
- type DomainStateType
- type Handler
- type OrganizationAuthDomainLinkIn
- type OrganizationAuthenticationConfigGetOut
- type OrganizationAuthenticationConfigUpdateIn
- type OrganizationAuthenticationConfigUpdateOut
- type OrganizationGetOut
- type OrganizationHandler
- func (h *OrganizationHandler) OrganizationAuthDomainLink(ctx context.Context, organizationId string, authenticationMethodId string, ...) error
- func (h *OrganizationHandler) OrganizationAuthDomainList(ctx context.Context, organizationId string, authenticationMethodId string) ([]DomainOut, error)
- func (h *OrganizationHandler) OrganizationAuthDomainUnlink(ctx context.Context, organizationId string, authenticationMethodId string, ...) error
- func (h *OrganizationHandler) OrganizationAuthenticationConfigGet(ctx context.Context, organizationId string) (*OrganizationAuthenticationConfigGetOut, error)
- func (h *OrganizationHandler) OrganizationAuthenticationConfigUpdate(ctx context.Context, organizationId string, ...) (*OrganizationAuthenticationConfigUpdateOut, error)
- func (h *OrganizationHandler) OrganizationGet(ctx context.Context, organizationId string) (*OrganizationGetOut, error)
- func (h *OrganizationHandler) OrganizationUpdate(ctx context.Context, organizationId string, in *OrganizationUpdateIn) (*OrganizationUpdateOut, error)
- func (h *OrganizationHandler) UserOrganizationCreate(ctx context.Context, in *UserOrganizationCreateIn) (*UserOrganizationCreateOut, error)
- func (h *OrganizationHandler) UserOrganizationsList(ctx context.Context) ([]OrganizationOut, error)
- type OrganizationOut
- type OrganizationUpdateIn
- type OrganizationUpdateOut
- type TierType
- type UserOrganizationCreateIn
- type UserOrganizationCreateOut
- type VerificationType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DomainStateTypeChoices ¶ added in v0.8.0
func DomainStateTypeChoices() []string
func TierTypeChoices ¶
func TierTypeChoices() []string
func VerificationTypeChoices ¶ added in v0.8.0
func VerificationTypeChoices() []string
Types ¶
type DomainOut ¶ added in v0.8.0
type DomainOut struct {
ChallengeToken string `json:"challenge_token"`
CreateTime time.Time `json:"create_time"`
DomainId string `json:"domain_id"`
DomainName string `json:"domain_name"`
LinkedAuthenticationMethodIds []string `json:"linked_authentication_method_ids"`
OrganizationId string `json:"organization_id"`
State DomainStateType `json:"state"`
VerificationType VerificationType `json:"verification_type"`
}
type DomainStateType ¶ added in v0.8.0
type DomainStateType string
const ( DomainStateTypeDeleted DomainStateType = "deleted" DomainStateTypeUnverified DomainStateType = "unverified" DomainStateTypeVerified DomainStateType = "verified" )
type Handler ¶
type Handler interface {
// OrganizationAuthDomainLink link a domain to an organization's identity provider
// PUT /v1/organization/{organization_id}/authentication-methods/{authentication_method_id}/domains
// https://api.aiven.io/doc/#tag/Authentication_Methods/operation/OrganizationAuthDomainLink
OrganizationAuthDomainLink(ctx context.Context, organizationId string, authenticationMethodId string, in *OrganizationAuthDomainLinkIn) error
// OrganizationAuthDomainList list domains linked to an organization's identity provider
// GET /v1/organization/{organization_id}/authentication-methods/{authentication_method_id}/domains
// https://api.aiven.io/doc/#tag/Authentication_Methods/operation/OrganizationAuthDomainList
OrganizationAuthDomainList(ctx context.Context, organizationId string, authenticationMethodId string) ([]DomainOut, error)
// OrganizationAuthDomainUnlink unlink domain from authentication method
// DELETE /v1/organization/{organization_id}/authentication-methods/{authentication_method_id}/domains/{domain_id}
// https://api.aiven.io/doc/#tag/Authentication_Methods/operation/OrganizationAuthDomainUnlink
OrganizationAuthDomainUnlink(ctx context.Context, organizationId string, authenticationMethodId string, domainId string) error
// OrganizationAuthenticationConfigGet retrieve authentication configuration
// GET /v1/organization/{organization_id}/config/authentication
// https://api.aiven.io/doc/#tag/Organizations/operation/OrganizationAuthenticationConfigGet
OrganizationAuthenticationConfigGet(ctx context.Context, organizationId string) (*OrganizationAuthenticationConfigGetOut, error)
// OrganizationAuthenticationConfigUpdate update authentication configuration
// PATCH /v1/organization/{organization_id}/config/authentication
// https://api.aiven.io/doc/#tag/Organizations/operation/OrganizationAuthenticationConfigUpdate
OrganizationAuthenticationConfigUpdate(ctx context.Context, organizationId string, in *OrganizationAuthenticationConfigUpdateIn) (*OrganizationAuthenticationConfigUpdateOut, error)
// OrganizationGet get information about an organization
// GET /v1/organization/{organization_id}
// https://api.aiven.io/doc/#tag/Organizations/operation/OrganizationGet
OrganizationGet(ctx context.Context, organizationId string) (*OrganizationGetOut, error)
// OrganizationUpdate update organization's details
// PATCH /v1/organization/{organization_id}
// https://api.aiven.io/doc/#tag/Organizations/operation/OrganizationUpdate
OrganizationUpdate(ctx context.Context, organizationId string, in *OrganizationUpdateIn) (*OrganizationUpdateOut, error)
// UserOrganizationCreate create an organization
// POST /v1/organizations
// https://api.aiven.io/doc/#tag/Organizations/operation/UserOrganizationCreate
UserOrganizationCreate(ctx context.Context, in *UserOrganizationCreateIn) (*UserOrganizationCreateOut, error)
// UserOrganizationsList list organizations the user belongs to
// GET /v1/organizations
// https://api.aiven.io/doc/#tag/Organizations/operation/UserOrganizationsList
UserOrganizationsList(ctx context.Context) ([]OrganizationOut, error)
}
type OrganizationAuthDomainLinkIn ¶ added in v0.8.0
type OrganizationAuthDomainLinkIn struct {
DomainId string `json:"domain_id"`
}
type OrganizationAuthenticationConfigGetOut ¶
type OrganizationAuthenticationConfigGetOut struct {
OauthEnabled *bool `json:"oauth_enabled,omitempty"`
PasswordAuthEnabled *bool `json:"password_auth_enabled,omitempty"`
PersonalTokensEnabled *bool `json:"personal_tokens_enabled,omitempty"`
PersonalTokensRequireAllowedAuthMethod *bool `json:"personal_tokens_require_allowed_auth_method,omitempty"`
SamlAllowExternal *bool `json:"saml_allow_external,omitempty"`
SamlEnabled *bool `json:"saml_enabled,omitempty"`
TwoFactorRequired *bool `json:"two_factor_required,omitempty"`
}
type OrganizationAuthenticationConfigUpdateIn ¶
type OrganizationAuthenticationConfigUpdateIn struct {
OauthEnabled *bool `json:"oauth_enabled,omitempty"`
PasswordAuthEnabled *bool `json:"password_auth_enabled,omitempty"`
PersonalTokensEnabled *bool `json:"personal_tokens_enabled,omitempty"`
PersonalTokensRequireAllowedAuthMethod *bool `json:"personal_tokens_require_allowed_auth_method,omitempty"`
SamlAllowExternal *bool `json:"saml_allow_external,omitempty"`
SamlEnabled *bool `json:"saml_enabled,omitempty"`
TwoFactorRequired *bool `json:"two_factor_required,omitempty"`
}
type OrganizationAuthenticationConfigUpdateOut ¶
type OrganizationAuthenticationConfigUpdateOut struct {
OauthEnabled *bool `json:"oauth_enabled,omitempty"`
PasswordAuthEnabled *bool `json:"password_auth_enabled,omitempty"`
PersonalTokensEnabled *bool `json:"personal_tokens_enabled,omitempty"`
PersonalTokensRequireAllowedAuthMethod *bool `json:"personal_tokens_require_allowed_auth_method,omitempty"`
SamlAllowExternal *bool `json:"saml_allow_external,omitempty"`
SamlEnabled *bool `json:"saml_enabled,omitempty"`
TwoFactorRequired *bool `json:"two_factor_required,omitempty"`
}
type OrganizationGetOut ¶
type OrganizationGetOut struct {
AccountId string `json:"account_id"`
CreateTime time.Time `json:"create_time"`
DefaultGovernanceUserGroupId string `json:"default_governance_user_group_id,omitempty"`
OrganizationId string `json:"organization_id"`
OrganizationName string `json:"organization_name"`
Tier TierType `json:"tier"`
UpdateTime time.Time `json:"update_time"`
}
type OrganizationHandler ¶
type OrganizationHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(doer doer) OrganizationHandler
func (*OrganizationHandler) OrganizationAuthDomainLink ¶ added in v0.8.0
func (h *OrganizationHandler) OrganizationAuthDomainLink(ctx context.Context, organizationId string, authenticationMethodId string, in *OrganizationAuthDomainLinkIn) error
func (*OrganizationHandler) OrganizationAuthDomainList ¶ added in v0.8.0
func (*OrganizationHandler) OrganizationAuthDomainUnlink ¶ added in v0.8.0
func (*OrganizationHandler) OrganizationAuthenticationConfigGet ¶
func (h *OrganizationHandler) OrganizationAuthenticationConfigGet(ctx context.Context, organizationId string) (*OrganizationAuthenticationConfigGetOut, error)
func (*OrganizationHandler) OrganizationAuthenticationConfigUpdate ¶
func (h *OrganizationHandler) OrganizationAuthenticationConfigUpdate(ctx context.Context, organizationId string, in *OrganizationAuthenticationConfigUpdateIn) (*OrganizationAuthenticationConfigUpdateOut, error)
func (*OrganizationHandler) OrganizationGet ¶
func (h *OrganizationHandler) OrganizationGet(ctx context.Context, organizationId string) (*OrganizationGetOut, error)
func (*OrganizationHandler) OrganizationUpdate ¶
func (h *OrganizationHandler) OrganizationUpdate(ctx context.Context, organizationId string, in *OrganizationUpdateIn) (*OrganizationUpdateOut, error)
func (*OrganizationHandler) UserOrganizationCreate ¶
func (h *OrganizationHandler) UserOrganizationCreate(ctx context.Context, in *UserOrganizationCreateIn) (*UserOrganizationCreateOut, error)
func (*OrganizationHandler) UserOrganizationsList ¶
func (h *OrganizationHandler) UserOrganizationsList(ctx context.Context) ([]OrganizationOut, error)
type OrganizationOut ¶
type OrganizationOut struct {
AccountId string `json:"account_id"`
CreateTime time.Time `json:"create_time"`
DefaultGovernanceUserGroupId string `json:"default_governance_user_group_id,omitempty"`
OrganizationId string `json:"organization_id"`
OrganizationName string `json:"organization_name"`
Tier TierType `json:"tier"`
UpdateTime time.Time `json:"update_time"`
}
type OrganizationUpdateIn ¶
type OrganizationUpdateOut ¶
type OrganizationUpdateOut struct {
AccountId string `json:"account_id"`
CreateTime time.Time `json:"create_time"`
DefaultGovernanceUserGroupId string `json:"default_governance_user_group_id,omitempty"`
OrganizationId string `json:"organization_id"`
OrganizationName string `json:"organization_name"`
Tier TierType `json:"tier"`
UpdateTime time.Time `json:"update_time"`
}
type UserOrganizationCreateOut ¶
type UserOrganizationCreateOut struct {
AccountId string `json:"account_id"`
CreateTime time.Time `json:"create_time"`
DefaultGovernanceUserGroupId string `json:"default_governance_user_group_id,omitempty"`
OrganizationId string `json:"organization_id"`
OrganizationName string `json:"organization_name"`
Tier TierType `json:"tier"`
UpdateTime time.Time `json:"update_time"`
}
type VerificationType ¶ added in v0.8.0
type VerificationType string
const ( VerificationTypeDns VerificationType = "dns" VerificationTypeHttp VerificationType = "http" )
Click to show internal directories.
Click to hide internal directories.