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