Documentation
¶
Index ¶
- func NewCheck(image string, opts ...Option) *containerCheck
- type Option
- func WithCertificationComponent(id, token string) Option
- func WithCertificationProject(id, token string) Optiondeprecated
- func WithDockerConfigJSONFromFile(s string) Option
- func WithInsecureConnection() Option
- func WithKonflux() 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 WithCertificationComponent ¶
WithCertificationComponent adds the component's id and pyxis token to the check allowing for the copmonent'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 WithCertificationProject
deprecated
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.
Deprecated: Use WithCertificationComponent instead
func WithInsecureConnection ¶
func WithInsecureConnection() Option
WithInsecureConnection allows for preflight to connect to an insecure registry to pull images.
func WithKonflux ¶
func WithKonflux() Option
WithKonflux signifies that we are running on the konflux platform
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.