Versions in this module Expand all Collapse all v0 v0.4.1 Sep 6, 2017 Changes in this version + const ActivationTypeActivate + const ActivationTypeDeactivate + const ErrBehaviorNotFound + const ErrCriteriaNotFound + const ErrInvalidPath + const ErrInvalidRules + const ErrRuleNotFound + const NetworkProduction + const NetworkStaging + const StatusAborted + const StatusActive + const StatusDeactivated + const StatusFailed + const StatusInactive + const StatusNew + const StatusPending + const StatusPendingDeactivation + const StatusZone1 + const StatusZone2 + const StatusZone3 + var Config edgegrid.Config + var ErrorMap = map[int]error + func Init(config edgegrid.Config) + func PrintRules(rules *Rules) error + type Activation struct + AcknowledgeWarnings []string + ActivationID string + ActivationType ActivationValue + ComplianceRecord *ActivationComplianceRecord + FastPush bool + IgnoreHTTPErrors bool + Network NetworkValue + Note string + NotifyEmails []string + PropertyID string + PropertyName string + PropertyVersion int + Status StatusValue + StatusChange chan bool + SubmitDate string + UpdateDate string + func NewActivation(parent *Activations) *Activation + func (activation *Activation) Cancel(property *Property) error + func (activation *Activation) GetActivation(property *Property) (time.Duration, error) + func (activation *Activation) Init() + func (activation *Activation) PollStatus(property *Property) bool + func (activation *Activation) Save(property *Property, acknowledgeWarnings bool) error + type ActivationComplianceRecord struct + NoncomplianceReason string + type ActivationValue string + type Activations struct + AccountID string + Activations struct{ ... } + ContractID string + GroupID string + func NewActivations() *Activations + func (activations *Activations) GetActivations(property *Property) error + func (activations *Activations) GetLatestActivation(network NetworkValue, status StatusValue) (*Activation, error) + func (activations *Activations) GetLatestProductionActivation(status StatusValue) (*Activation, error) + func (activations *Activations) GetLatestStagingActivation(status StatusValue) (*Activation, error) + type AvailableBehavior struct + Name string + SchemaLink string + func NewAvailableBehavior(parent *AvailableBehaviors) *AvailableBehavior + func (behavior *AvailableBehavior) GetSchema() (*gojsonschema.Schema, error) + type AvailableBehaviors struct + Behaviors struct{ ... } + ContractID string + GroupID string + ProductID string + RuleFormat string + func GetAvailableBehaviors(property *Property) (*AvailableBehaviors, error) + func NewAvailableBehaviors() *AvailableBehaviors + func (availableBehaviors *AvailableBehaviors) GetAvailableBehaviors(property *Property) error + func (availableBehaviors *AvailableBehaviors) PostUnmarshalJSON() error + type AvailableCriteria struct + AvailableCriteria struct{ ... } + ContractID string + GroupID string + ProductID string + RuleFormat string + func GetAvailableCriteria(property *Property) (*AvailableCriteria, error) + func NewAvailableCriteria() *AvailableCriteria + func (availableCriteria *AvailableCriteria) GetAvailableCriteria(property *Property) error + type Behavior struct + Name string + Options *OptionValue + func NewBehavior(parent *Rule) *Behavior + type ClientSettings struct + RuleFormat string + func NewClientSettings() *ClientSettings + func (clientSettings *ClientSettings) GetClientSettings() error + func (clientSettings *ClientSettings) Save() error + type ClonePropertyFrom struct + CloneFromVersionEtag string + CopyHostnames bool + PropertyID string + Version int + func NewClonePropertyFrom() *ClonePropertyFrom + type CnameTypeValue string + const CnameTypeEdgeHostname + type Contract struct + ContractID string + ContractTypeName string + func NewContract(parent *Contracts) *Contract + func (contract *Contract) GetContract() error + func (contract *Contract) GetProducts() (*Products, error) + type Contracts struct + AccountID string + Contracts struct{ ... } + func GetContracts() (*Contracts, error) + func NewContracts() *Contracts + func (contracts *Contracts) GetContracts() error + func (contracts *Contracts) PostUnmarshalJSON() error + type CpCode struct + CpcodeID string + CpcodeName string + CreatedDate time.Time + ProductID string + ProductIDs []string + func NewCpCode(parent *CpCodes) *CpCode + func (cpcode *CpCode) GetCpCode() error + func (cpcode *CpCode) ID() int + func (cpcode *CpCode) Save() error + type CpCodes struct + AccountID string + Contract *Contract + ContractID string + CpCodes struct{ ... } + Group *Group + GroupID string + func GetCpCodes(contract *Contract, group *Group) (*CpCodes, error) + func NewCpCodes(contract *Contract, group *Group) *CpCodes + func (cpcodes *CpCodes) AddCpCode(cpcode *CpCode) + func (cpcodes *CpCodes) FindCpCode(nameOrId string) (*CpCode, error) + func (cpcodes *CpCodes) GetCpCodes() error + func (cpcodes *CpCodes) NewCpCode() *CpCode + func (cpcodes *CpCodes) PostUnmarshalJSON() error + type Criteria struct + Name string + Options *OptionValue + func NewCriteria(parent *Rule) *Criteria + type EdgeHostname struct + DomainPrefix string + DomainSuffix string + EdgeHostnameDomain string + EdgeHostnameID string + IPVersionBehavior string + MapDetailsMapDomain string + MapDetailsSerialNumber int + MapDetailsSlotNumber int + ProductID string + Secure bool + Status StatusValue + StatusChange chan bool + func NewEdgeHostname(edgeHostnames *EdgeHostnames) *EdgeHostname + func (edgeHostname *EdgeHostname) GetEdgeHostname(options string) error + func (edgeHostname *EdgeHostname) Init() + func (edgeHostname *EdgeHostname) PollStatus(options string) bool + func (edgeHostname *EdgeHostname) Save(options string) error + type EdgeHostnames struct + AccountID string + ContractID string + EdgeHostnames struct{ ... } + GroupID string + func GetEdgeHostnames(contract *Contract, group *Group, options string) (*EdgeHostnames, error) + func NewEdgeHostnames() *EdgeHostnames + func (edgeHostnames *EdgeHostnames) AddEdgeHostname(edgeHostname *EdgeHostname) + func (edgeHostnames *EdgeHostnames) FindEdgeHostname(edgeHostname *EdgeHostname) (*EdgeHostname, error) + func (edgeHostnames *EdgeHostnames) GetEdgeHostnames(contract *Contract, group *Group, options string) error + func (edgeHostnames *EdgeHostnames) NewEdgeHostname() *EdgeHostname + func (edgeHostnames *EdgeHostnames) PostUnmarshalJSON() error + type Group struct + ContractIDs []string + GroupID string + GroupName string + ParentGroupID string + func NewGroup(parent *Groups) *Group + func (group *Group) GetCpCodes(contract *Contract) (*CpCodes, error) + func (group *Group) GetEdgeHostnames(contract *Contract, options string) (*EdgeHostnames, error) + func (group *Group) GetGroup() + func (group *Group) GetProperties(contract *Contract) (*Properties, error) + func (group *Group) NewProperty(contract *Contract) (*Property, error) + type Groups struct + AccountID string + AccountName string + Groups struct{ ... } + func GetGroups() (*Groups, error) + func NewGroups() *Groups + func (groups *Groups) AddGroup(newGroup *Group) + func (groups *Groups) FindGroup(name string) (*Group, error) + func (groups *Groups) GetGroups() error + func (groups *Groups) PostUnmarshalJSON() error + type Hostname struct + CnameFrom string + CnameTo string + CnameType CnameTypeValue + EdgeHostnameID string + func NewHostname(parent *Hostnames) *Hostname + type Hostnames struct + AccountID string + ContractID string + Etag string + GroupID string + Hostnames struct{ ... } + PropertyID string + PropertyVersion int + func NewHostnames() *Hostnames + func (hostnames *Hostnames) GetHostnames(version *Version) error + func (hostnames *Hostnames) NewHostname() *Hostname + func (hostnames *Hostnames) PostUnmarshalJSON() error + func (hostnames *Hostnames) Save() error + type NetworkValue string + type OptionValue client.JSONBody + type Product struct + ProductID string + ProductName string + func NewProduct(parent *Products) *Product + type Products struct + AccountID string + ContractID string + Products struct{ ... } + func GetProducts(contract *Contract) (*Products, error) + func NewProducts() *Products + func (products *Products) GetProducts(contract *Contract) error + func (products *Products) PostUnmarshalJSON() error + type Properties struct + Properties struct{ ... } + func GetProperties(contract *Contract, group *Group) (*Properties, error) + func NewProperties() *Properties + func (properties *Properties) AddProperty(newProperty *Property) + func (properties *Properties) FindProperty(name string) (*Property, error) + func (properties *Properties) GetProperties(contract *Contract, group *Group) error + func (properties *Properties) NewProperty(contract *Contract, group *Group) *Property + func (properties *Properties) PostUnmarshalJSON() error + type Property struct + AccountID string + CloneFrom *ClonePropertyFrom + Contract *Contract + ContractID string + Group *Group + GroupID string + LatestVersion int + Note string + ProductID string + ProductionVersion int + PropertyID string + PropertyName string + StagingVersion int + func NewProperty(parent *Properties) *Property + func (property *Property) Activate(activation *Activation, acknowledgeWarnings bool) error + func (property *Property) Delete() error + func (property *Property) GetActivations() (*Activations, error) + func (property *Property) GetAvailableBehaviors() (*AvailableBehaviors, error) + func (property *Property) GetHostnames(version *Version) (*Hostnames, error) + func (property *Property) GetLatestVersion(activatedOn NetworkValue) (*Version, error) + func (property *Property) GetProperty() error + func (property *Property) GetRules() (*Rules, error) + func (property *Property) GetRulesDigest() (string, error) + func (property *Property) GetVersions() (*Versions, error) + func (property *Property) PostUnmarshalJSON() error + func (property *Property) PreMarshalJSON() error + func (property *Property) Save() error + type Rule struct + Behaviors []*Behavior + Children []*Rule + Comments string + Criteria []*Criteria + CriteriaLocked bool + CriteriaMustSatisfy RuleCriteriaMustSatisfyValue + Depth int + Name string + Options struct{ ... } + UUID string + func NewRule(parent *Rules) *Rule + func (rule *Rule) AddBehavior(behavior *Behavior) + func (rule *Rule) AddChildRule(child *Rule) + func (rule *Rule) AddCriteria(criteria *Criteria) + func (rule *Rule) GetChildren(depth int, limit int) []*Rule + type RuleCriteriaMustSatisfyValue string + const RuleCriteriaMustSatisfyAll + const RuleCriteriaMustSatisfyAny + type RuleErrors struct + BehaviorName string + Detail string + Instance string + Title string + Type string + func NewRuleErrors() *RuleErrors + type RuleFormats struct + RuleFormats struct{ ... } + func NewRuleFormats() *RuleFormats + func (ruleFormats *RuleFormats) GetLatest() (string, error) + func (ruleFormats *RuleFormats) GetRuleFormats() error + func (ruleFormats *RuleFormats) GetSchema(product string, ruleFormat string) (*gojsonschema.Schema, error) + type Rules struct + AccountID string + ContractID string + Errors []*RuleErrors + Etag string + GroupID string + PropertyID string + PropertyVersion int + RuleFormat string + Rules *Rule + func NewRules() *Rules + func (rules *Rules) AddBehaviorOptions(path string, newOptions OptionValue) error + func (rules *Rules) AddChildBehavior(path string, behavior *Behavior) error + func (rules *Rules) AddChildCriteria(path string, criteria *Criteria) error + func (rules *Rules) AddChildRule(path string, rule *Rule) error + func (rules *Rules) AddCriteriaOptions(path string, newOptions OptionValue) error + func (rules *Rules) FindBehavior(path string) (*Behavior, error) + func (rules *Rules) FindCriteria(path string) (*Criteria, error) + func (rules *Rules) FindParentRule(path string) (*Rule, error) + func (rules *Rules) FindRule(path string) (*Rule, error) + func (rules *Rules) Freeze(format string) error + func (rules *Rules) GetAllRules() []*Rule + func (rules *Rules) GetRules(property *Property) error + func (rules *Rules) GetRulesDigest(property *Property) (string, error) + func (rules *Rules) PostUnmarshalJSON() error + func (rules *Rules) PreMarshalJSON() error + func (rules *Rules) Save() error + func (rules *Rules) SetBehaviorOptions(path string, newOptions OptionValue) error + func (rules *Rules) SetChildBehavior(path string, behavior *Behavior) error + func (rules *Rules) SetChildCriteria(path string, criteria *Criteria) error + func (rules *Rules) SetChildRule(path string, rule *Rule) error + func (rules *Rules) SetCriteriaOptions(path string, newOptions OptionValue) error + type StatusValue string + type Version struct + CreateFromVersion int + CreateFromVersionEtag string + Etag string + Note string + ProductID string + ProductionStatus StatusValue + PropertyVersion int + StagingStatus StatusValue + UpdatedByUser string + UpdatedDate time.Time + func NewVersion(parent *Versions) *Version + func (version *Version) GetVersion(property *Property, getVersion int) error + func (version *Version) HasBeenActivated(activatedOn NetworkValue) (bool, error) + func (version *Version) Save() error + type Versions struct + AccountID string + ContractID string + GroupID string + PropertyID string + PropertyName string + RuleFormat string + Versions struct{ ... } + func GetVersions(property *Property) (*Versions, error) + func NewVersions() *Versions + func (versions *Versions) AddVersion(version *Version) + func (versions *Versions) GetLatestVersion(activatedOn NetworkValue) (*Version, error) + func (versions *Versions) GetVersions(property *Property) error + func (versions *Versions) NewVersion(createFromVersion *Version, useEtagStrict bool) *Version + func (versions *Versions) PostUnmarshalJSON() error