Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDecodeYAML = errors.New("unable to decode YAML into seccomp, selinux or apparmor profile")
ErrDecodeYAML is the error returned if no matching type could be decoded on artifact pull.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct {
// contains filtered or unexported fields
}
Artifact is the main structure of this package.
type PullResult ¶
type PullResult struct {
// contains filtered or unexported fields
}
PullResult is the type returned by Pull.
func (*PullResult) ApparmorProfile ¶
func (p *PullResult) ApparmorProfile() *apparmorprofileapi.AppArmorProfile
ApparmorProfile returns the apparmor profile of the PullResult.
func (*PullResult) Content ¶
func (p *PullResult) Content() []byte
Content returns the raw byte content of the profile.
func (*PullResult) SeccompProfile ¶
func (p *PullResult) SeccompProfile() *seccompprofileapi.SeccompProfile
SeccompProfile returns the seccomp profile of the PullResult.
func (*PullResult) SelinuxProfile ¶
func (p *PullResult) SelinuxProfile() *selinuxprofileapi.SelinuxProfile
SelinuxProfile returns the selinux profile of the PullResult.
func (*PullResult) Type ¶
func (p *PullResult) Type() PullResultType
Type returns the PullResultType of the PullResult.
type PullResultType ¶
type PullResultType string
PullResultType are the different types returned for a PullResult.
const ( // PullResultTypeSeccompProfile is referencing a seccomp profile. PullResultTypeSeccompProfile PullResultType = "SeccompProfile" // PullResultTypeSelinuxProfile is referencing a SELinux profile. PullResultTypeSelinuxProfile PullResultType = "SelinuxProfile" // PullResultTypeApparmorProfile is referencing a AppArmor profile. PullResultTypeApparmorProfile PullResultType = "ApparmorProfile" )
Click to show internal directories.
Click to hide internal directories.