properties

package
v3.0.0-...-76fd240 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFile

func LoadFile(filename string) (b *[]byte)

func SaveFile

func SaveFile(filename string, x interface{})

Types

type PropSum

type PropSum struct {
	Behaviors map[string][]UsedBehavior
}

type Propsv

type Propsv struct {
	PapiClient papi.PAPI
	CacheDir   string
	// contains filtered or unexported fields
}

func NewPropertyService

func NewPropertyService(p papi.PAPI, cache string) (ps *Propsv)

func (*Propsv) FindBehaviors

func (ps *Propsv) FindBehaviors(r *papi.Rules) (propsum *PropSum)

func (*Propsv) GetProperties

func (p *Propsv) GetProperties(ctx context.Context, params papi.GetPropertiesRequest) (*papi.GetPropertiesResponse, error)

func (*Propsv) GetPropertyVersionHostnames

func (ps *Propsv) GetPropertyVersionHostnames(params papi.GetPropertyVersionHostnamesRequest) (pr *papi.GetPropertyVersionHostnamesResponse, err error)

func (*Propsv) GetRuleTree

func (ps *Propsv) GetRuleTree(params papi.GetRuleTreeRequest) (tree *papi.GetRuleTreeResponse)

type UsedBehavior

type UsedBehavior struct {
	Behavior *papi.RuleBehavior
	Criteria [][]papi.RuleBehavior
}

Jump to

Keyboard shortcuts

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