Documentation ¶
Index ¶
- type Loader
- type NamespaceLoader
- type RSPLoader
- func (self *RSPLoader) ClearCache()
- func (self *RSPLoader) GetByReferences(refs []*v1.ObjectReference) []rspapi.ResourceSigningProfile
- func (self *RSPLoader) GetData(doK8sApiCall bool) ([]rspapi.ResourceSigningProfile, bool)
- func (self *RSPLoader) GetDefaultProfile() (rspapi.ResourceSigningProfile, error)
- func (self *RSPLoader) Load(doK8sApiCall bool) bool
- func (self *RSPLoader) MergeDefaultProfiles(data []rspapi.ResourceSigningProfile) ([]rspapi.ResourceSigningProfile, error)
- func (self *RSPLoader) UpdateStatus(rsp *rspapi.ResourceSigningProfile, reqc *common.ReqContext, errMsg string) error
- type ResSigLoader
- type RuleItem
- type RuleTable
- type SignPolicyLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader struct { SignPolicy *SignPolicyLoader RSP *RSPLoader Namespace *NamespaceLoader ResourceSignature *ResSigLoader }
type NamespaceLoader ¶
type NamespaceLoader struct { Client *v1client.CoreV1Client Data []v1.Namespace // contains filtered or unexported fields }
func NewNamespaceLoader ¶
func NewNamespaceLoader() *NamespaceLoader
func (*NamespaceLoader) ClearCache ¶
func (self *NamespaceLoader) ClearCache()
func (*NamespaceLoader) GetData ¶
func (self *NamespaceLoader) GetData(doK8sApiCall bool) ([]v1.Namespace, bool)
func (*NamespaceLoader) Load ¶
func (self *NamespaceLoader) Load(doK8sApiCall bool) bool
type RSPLoader ¶
type RSPLoader struct { Client *rspclient.ApisV1alpha1Client Data []rspapi.ResourceSigningProfile // contains filtered or unexported fields }
func NewRSPLoader ¶
func NewRSPLoader(verifierNamespace, profileNamespace, requestNamespace string, commonProfile *rspapi.ResourceSigningProfileSpec) *RSPLoader
func (*RSPLoader) ClearCache ¶
func (self *RSPLoader) ClearCache()
func (*RSPLoader) GetByReferences ¶
func (self *RSPLoader) GetByReferences(refs []*v1.ObjectReference) []rspapi.ResourceSigningProfile
func (*RSPLoader) GetData ¶
func (self *RSPLoader) GetData(doK8sApiCall bool) ([]rspapi.ResourceSigningProfile, bool)
func (*RSPLoader) GetDefaultProfile ¶
func (self *RSPLoader) GetDefaultProfile() (rspapi.ResourceSigningProfile, error)
func (*RSPLoader) MergeDefaultProfiles ¶
func (self *RSPLoader) MergeDefaultProfiles(data []rspapi.ResourceSigningProfile) ([]rspapi.ResourceSigningProfile, error)
func (*RSPLoader) UpdateStatus ¶
func (self *RSPLoader) UpdateStatus(rsp *rspapi.ResourceSigningProfile, reqc *common.ReqContext, errMsg string) error
type ResSigLoader ¶
type ResSigLoader struct { Client *rsigclient.ApisV1alpha1Client Data *rsigapi.ResourceSignatureList // contains filtered or unexported fields }
func NewResSigLoader ¶
func NewResSigLoader(signatureNamespace, requestNamespace string) *ResSigLoader
func (*ResSigLoader) GetData ¶
func (self *ResSigLoader) GetData(reqc *common.ReqContext, doK8sApiCall bool) *rsigapi.ResourceSignatureList
func (*ResSigLoader) Load ¶
func (self *ResSigLoader) Load(reqc *common.ReqContext, doK8sApiCall bool)
type RuleItem ¶
type RuleItem struct { Profile rspapi.ResourceSigningProfile `json:"profile,omitempty"` TargetNamespaces []string `json:"targetNamespaces,omitempty"` }
type RuleTable ¶
type RuleTable struct { Items []RuleItem `json:"items,omitempty"` Namespaces []string `json:"namespaces,omitempty"` VerifierNamespace string `json:"verifierNamespace,omitempty"` }
func NewRuleTable ¶
func (*RuleTable) CheckIfProtected ¶
func (*RuleTable) CheckIfTargetNamespace ¶
type SignPolicyLoader ¶
type SignPolicyLoader struct { Client *spolclient.ApisV1alpha1Client Data *spolapi.SignPolicy // contains filtered or unexported fields }
func NewSignPolicyLoader ¶
func NewSignPolicyLoader(verifierNamespace string) *SignPolicyLoader
func (*SignPolicyLoader) GetData ¶
func (self *SignPolicyLoader) GetData(doK8sApiCall bool) *spolapi.SignPolicy
func (*SignPolicyLoader) Load ¶
func (self *SignPolicyLoader) Load(doK8sApiCall bool)
Click to show internal directories.
Click to hide internal directories.