model

package
v0.0.0-...-860e413 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Org

type Org struct {
	es_models.ObjectRoot

	State   OrgState
	Name    string
	Domains []*OrgDomain

	DomainPolicy *iam_model.DomainPolicy
}

func (*Org) AddIAMDomain

func (o *Org) AddIAMDomain(iamDomain string)

func (*Org) GetDomain

func (o *Org) GetDomain(domain *OrgDomain) (int, *OrgDomain)

func (*Org) GetPrimaryDomain

func (o *Org) GetPrimaryDomain() *OrgDomain

func (*Org) IsActive

func (o *Org) IsActive() bool

type OrgDomain

type OrgDomain struct {
	es_models.ObjectRoot
	Domain         string
	Primary        bool
	Verified       bool
	ValidationType OrgDomainValidationType
	ValidationCode *crypto.CryptoValue
}

func NewOrgDomain

func NewOrgDomain(orgID, domain string) *OrgDomain

func (*OrgDomain) GenerateVerificationCode

func (domain *OrgDomain) GenerateVerificationCode(codeGenerator crypto.Generator) (string, error)

func (*OrgDomain) IsValid

func (domain *OrgDomain) IsValid() bool

type OrgDomainValidationType

type OrgDomainValidationType int32
const (
	OrgDomainValidationTypeUnspecified OrgDomainValidationType = iota
	OrgDomainValidationTypeHTTP
	OrgDomainValidationTypeDNS
)

func (OrgDomainValidationType) CheckType

func (OrgDomainValidationType) IsDNS

func (t OrgDomainValidationType) IsDNS() bool

type OrgState

type OrgState int32
const (
	OrgStateActive OrgState = iota
	OrgStateInactive
)

Jump to

Keyboard shortcuts

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