示例#1
0
func (o *Options) getKeyFrom(p *policy.Policy) (found bool) {
	if path, found := p.Condition("$key"); found {
		o.key = path.ValueString()
	}
	return
}
示例#2
0
func (o *Options) getBucketFrom(p *policy.Policy) (found bool) {
	if bucket, found := p.Condition("bucket"); found {
		o.bucket = bucket.ValueString()
	}
	return
}