Documentation
¶
Overview ¶
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.
Package pubkey represents the public key updater fetching logic and the interface ¶
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 ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrFetchAthenzPubkey "Fetch athenz pubkey error" ErrFetchAthenzPubkey = errors.New("Fetch athenz pubkey error") // ErrEmptyAthenzPubkey "Athenz pubkey not initialized" ErrEmptyAthenzPubkey = errors.New("Athenz pubkey not initialized") )
Functions ¶
This section is empty.
Types ¶
type AthenzConfig ¶
type AthenzConfig struct { ZMSPubKeys *sync.Map //map[string]authcore.Verifier ZTSPubKeys *sync.Map //map[string]authcore.Verifier }
AthenzConfig represent the cache of Athenz config.
type Daemon ¶
type Daemon interface { Start(ctx context.Context) <-chan error Update(context.Context) error GetProvider() Provider }
Daemon represent the daemon to retrieve public key data.
type Option ¶
type Option func(*pubkeyd) error
Option represents a functional options pattern interface
func WithAthenzURL ¶
WithAthenzURL represents a AthenzURL functional option
func WithErrRetryInterval ¶
WithErrRetryInterval represents a ErrRetryInterval functional option
func WithEtagExpTime ¶
WithEtagExpTime represents a EtagExpTime functional option
func WithEtagFlushDuration ¶
WithEtagFlushDuration represents a EtagFlushDur functional option
func WithHTTPClient ¶
WithHTTPClient represents a HTTPClient functional option
func WithRefreshDuration ¶
WithRefreshDuration represents a RefreshDuration functional option
func WithSysAuthDomain ¶
WithSysAuthDomain represents a SysAuthDomain functional option
type SysAuthConfig ¶
type SysAuthConfig struct { Modified string `json:"modified"` Name string `json:"name"` PublicKeys []*PublicKey `json:"publicKeys"` }
SysAuthConfig represent the system authority config data structure