Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcmPerm ¶
type AcmPerm string
func NewAcmPerm ¶
func (*AcmPerm) MarshalJSON ¶
func (*AcmPerm) UnmarshalJSON ¶
type AcmV1Config ¶
type AcmV1Config struct { Enable bool `rfc7951:"vyatta-system-acm-configd-v1:enable,emptyleaf" json:"enabled"` LogReq bool `rfc7951:"vyatta-system-acm-configd-v1:log-requests,emptyleaf" json:"log-requests"` CreateDefault Action `rfc7951:"vyatta-system-acm-configd-v1:create-default" json:"create-default"` ReadDefault Action `rfc7951:"vyatta-system-acm-configd-v1:read-default" json:"read-default"` UpdateDefault Action `rfc7951:"vyatta-system-acm-configd-v1:update-default" json:"update-default"` DeleteDefault Action `rfc7951:"vyatta-system-acm-configd-v1:delete-default" json:"delete-default"` RpcDefault Action `rfc7951:"vyatta-system-acm-configd-v1:rpc-default" json:"rpc-default"` NotificationDefault Action `rfc7951:"vyatta-system-acm-configd-v1:notification-default" json:"notification-default"` Ruleset struct { Rule []*AcmV1Rule `rfc7951:"rule"` } `rfc7951:"vyatta-system-acm-configd-v1:ruleset" json:"-"` RpcRuleset struct { Rule []*AcmV1RpcRule `rfc7951:"rule"` } `rfc7951:"vyatta-system-acm-configd-v1:rpc-ruleset" json:"-"` NotificationRuleset struct { Rule []*AcmV1NotificationRule `rfc7951:"rule"` } `rfc7951:"vyatta-system-acm-configd-v1:notification-ruleset" json:"-"` }
type AcmV1NotificationRule ¶
type AcmV1RpcRule ¶
type AcmV1Rule ¶
type AcmV1Rule struct { RuleNumber uint32 `rfc7951:"tagnode" json:"-"` Path *string `rfc7951:"path" json:"path"` Action Action `rfc7951:"action" json:"action"` Groups []string `rfc7951:"group" json:"groups"` Log bool `rfc7951:"log,emptyleaf" json:"log"` Operation AcmPerm `rfc7951:"operation" json:"perm"` }
type AcmdConfig ¶
type AcmdConfig struct { System struct { Acm struct { *AcmV1Config } `rfc7951:"vyatta-system-acm-v1:acm,omitempty"` } `rfc7951:"vyatta-system-v1:system"` }
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) Check ¶
func (c *Config) Check(cfg *AcmdConfig) error
func (*Config) Get ¶
func (c *Config) Get() *AcmdConfig
func (*Config) Set ¶
func (c *Config) Set(cfg *AcmdConfig) error
type Policy ¶
type Rule ¶
type Rule struct { Action string RuleAttributes }
func (*Rule) MarshalXML ¶
This is required to allow a dynamic Action for each rule allow/deny
type RuleAttributes ¶
type RuleAttributes struct { RcvType string `xml:"receive_type,attr,omitempty"` RcvInterface string `xml:"receive_interface,attr,omitempty"` RcvMember string `xml:"receive_member,attr,omitempty"` SendType string `xml:"send_type,attr,omitempty"` SendInterface string `xml:"send_interface,attr,omitempty"` SendMember string `xml:"send_member,attr,omitempty"` }
Click to show internal directories.
Click to hide internal directories.