Documentation ¶
Index ¶
- func TrustDomainIndexFunc(obj interface{}) ([]string, error)
- type CRUtil
- func (c *CRUtil) CreateUpdateAthenzDomain(domain string, domainData *zms.SignedDomain) (cr *athenz_domain.AthenzDomain, err error)
- func (c *CRUtil) GetCRByName(domain string) (*athenz_domain.AthenzDomain, bool, error)
- func (c *CRUtil) GetLatestTimestamp() string
- func (c *CRUtil) IsTrustDomain(domainName string) bool
- func (c *CRUtil) RemoveAthenzDomain(domain string) error
- func (c *CRUtil) UpdateErrorStatus(obj *athenz_domain.AthenzDomain)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TrustDomainIndexFunc ¶
TrustDomainIndexFunc returns the list of trust domains as defined by the delegated roles in an Athenz domain
Types ¶
type CRUtil ¶
type CRUtil struct { CrIndexInformer cache.SharedIndexInformer // contains filtered or unexported fields }
CRUtil - cr resource struct
func NewCRUtil ¶
func NewCRUtil(athenzClientset athenzClientset.Interface, crIndexInformer cache.SharedIndexInformer) *CRUtil
NewCRUtil - create new cr resource object
func (*CRUtil) CreateUpdateAthenzDomain ¶
func (c *CRUtil) CreateUpdateAthenzDomain(domain string, domainData *zms.SignedDomain) (cr *athenz_domain.AthenzDomain, err error)
CreateUpdateAthenzDomain - create AthenzDomain Custom Resource with data from Athenz
func (*CRUtil) GetCRByName ¶
func (c *CRUtil) GetCRByName(domain string) (*athenz_domain.AthenzDomain, bool, error)
GetCRByName - get AthenzDomain CR by domain
func (*CRUtil) GetLatestTimestamp ¶
GetLatestTimestamp - get the latest etag from all AthenzDomain CRs in the store (used initially)
func (*CRUtil) IsTrustDomain ¶
IsTrustDomain looks up the trust domain index to determine if the given domain serves as a trust for a delegated role
func (*CRUtil) RemoveAthenzDomain ¶
RemoveAthenzDomain - delete AthenzDomain CR from Cluster
func (*CRUtil) UpdateErrorStatus ¶
func (c *CRUtil) UpdateErrorStatus(obj *athenz_domain.AthenzDomain)
UpdateErrorStatus - add error status field in CR when zms call returns error