Documentation
¶
Overview ¶
Package providerd represents the policy updater daemon.
Copyright (C) 2018 Yahoo Japan Corporation Athenz team.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (C) 2018 Yahoo Japan Corporation Athenz team.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (C) 2018 Yahoo Japan Corporation Athenz team.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (C) 2018 Yahoo Japan Corporation Athenz team.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- type Option
- func AthenzDomains(domains ...string) Option
- func AthenzURL(url string) Option
- func CacheExp(exp time.Duration) Option
- func PolicyEtagExpTime(t string) Option
- func PolicyEtagFlushDur(t string) Option
- func PolicyExpireMargin(t string) Option
- func PolicyRefreshDuration(t string) Option
- func PubkeyEtagExpTime(t string) Option
- func PubkeyEtagFlushDur(t string) Option
- func PubkeyRefreshDuration(t string) Option
- func PubkeySysAuthDomain(domain string) Option
- func Transport(t *http.Transport) Option
- type Providerd
Constants ¶
This section is empty.
Variables ¶
var ( // ErrRoleTokenInvalid "Access denied due to invalid RoleToken" ErrRoleTokenInvalid = role.ErrRoleTokenInvalid // ErrRoleTokenExpired "Access denied due to expired RoleToken" ErrRoleTokenExpired = role.ErrRoleTokenExpired // ErrDomainMismatch "Access denied due to domain mismatch between Resource and RoleToken" ErrDomainMismatch = policy.ErrDomainMismatch // ErrDomainNotFound "Access denied due to domain not found in library cache" ErrDomainNotFound = policy.ErrDomainNotFound // ErrDomainExpired "Access denied due to expired domain policy file" ErrDomainExpired = policy.ErrDomainExpired // ErrNoMatch "Access denied due to no match to any of the assertions defined in domain policy file" ErrNoMatch = policy.ErrNoMatch // ErrInvalidPolicyResource "Access denied due to invalie/empty policy resources" ErrInvalidPolicyResource = policy.ErrInvalidPolicyResource // ErrDenyByPolicy "Access Check was explicitly denied" ErrDenyByPolicy = policy.ErrDenyByPolicy // ErrFetchPolicy "Error fetching athenz policy" ErrFetchPolicy = policy.ErrFetchPolicy // ErrInvalidParameters "Access denied due to invalid/empty action/resource values" ErrInvalidParameters = errors.New("Access denied due to invalid/empty action/resource values") )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*provider) error
Option represents a functional options pattern interface
func AthenzDomains ¶
AthenzDomains represents a AthenzDomains functional option
func PolicyEtagExpTime ¶
PolicyEtagExpTime represents a PolicyEtagExpTime functional option
func PolicyEtagFlushDur ¶
PolicyEtagFlushDur represents a PolicyEtagFlushDur functional option
func PolicyExpireMargin ¶
PolicyExpireMargin represents a PolicyExpireMargin functional option
func PolicyRefreshDuration ¶
PolicyRefreshDuration represents a PolicyRefreshDuration functional option
func PubkeyEtagExpTime ¶
PubkeyEtagExpTime represents a PubkeyEtagExpTime functional option
func PubkeyEtagFlushDur ¶
PubkeyEtagFlushDur represents a PubkeyEtagFlushDur functional option
func PubkeyRefreshDuration ¶
PubkeyRefreshDuration represents a PubkeyRefreshDuration functional option
func PubkeySysAuthDomain ¶
PubkeySysAuthDomain represents a PubkeySysAuthDomain functional option
Directories
¶
Path | Synopsis |
---|---|
Package pubkey represents the public key updater fetching logic and the interface Copyright (C) 2018 Yahoo Japan Corporation Athenz team.
|
Package pubkey represents the public key updater fetching logic and the interface Copyright (C) 2018 Yahoo Japan Corporation Athenz team. |
Package role represents the processing logic of role token.
|
Package role represents the processing logic of role token. |