Documentation ¶
Index ¶
- func NewCheck(image string, opts ...Option) *containerCheck
- type Option
- func WithCertificationProject(id, token string) Option
- func WithDockerConfigJSONFromFile(s string) Option
- func WithInsecureConnection() Option
- func WithManifestListDigest(manifestListDigest string) Option
- func WithPlatform(platform string) Option
- func WithPyxisEnv(env string) Option
- func WithPyxisHost(host string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option = func(*containerCheck)
func WithCertificationProject ¶
WithCertificationProject adds the project's id and pyxis token to the check allowing for the project's metadata to change the certification (if necessary). An example might be the Scratch or Privileged flags on a project allowing for the corresponding policy to be executed.
func WithInsecureConnection ¶
func WithInsecureConnection() Option
WithInsecureConnection allows for preflight to connect to an insecure registry to pull images.
func WithManifestListDigest ¶
WithManifestListDigest signifies that we have a manifest list and should add this digest to any Pyxis calls. This is only valid when submitting to Pyxis. Otherwise, it will be ignored.
func WithPlatform ¶
WithPlatform will define for what platform the image should be pulled. E.g. amd64, s390x.
func WithPyxisEnv ¶
WithPyxisEnv will set the pyxis host for interactions and submission based on the provided value of env. If the selected env is unknown, prod is used. Choose from [prod, uat, qa, stage].
func WithPyxisHost ¶
WithPyxisHost explicitly sets the pyxis host for pyxis interactions. Useful for debugging or testing against a very specific pyxis endpoint. Most callers should use the "WithPyxisEnv" option instead.