cr

package
v0.1.2-0...-0d018a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrustDomainIndexFunc

func TrustDomainIndexFunc(obj interface{}) ([]string, error)

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

func (c *CRUtil) GetLatestTimestamp() string

GetLatestTimestamp - get the latest etag from all AthenzDomain CRs in the store (used initially)

func (*CRUtil) IsTrustDomain

func (c *CRUtil) IsTrustDomain(domainName string) bool

IsTrustDomain looks up the trust domain index to determine if the given domain serves as a trust for a delegated role

func (*CRUtil) RemoveAthenzDomain

func (c *CRUtil) RemoveAthenzDomain(domain string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL