Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockBundle ¶
MockBundle sets a bundle named file on the test server containing the given policies.
func MockOCIBundle ¶ added in v0.41.0
MockOCIBundle prepares the server to allow serving "/v2" OCI responses from the supplied policies Ref parameter must be in the form of <registry>/<org>/<repo>:<tag> that will be used in detecting future calls
func RawBundles ¶ added in v0.61.0
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides a mock HTTP server for testing the SDK and integrations.
func MustNewServer ¶
MustNewServer returns a new Server for test purposes or panics if an error occurs.
Click to show internal directories.
Click to hide internal directories.