{"modulePath":"github.com/operator-framework/operator-lifecycle-manager","version":"v0.46.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testobj\n\n## Functions\n\n```go\nfunc GetUnstructured(scheme *runtime.Scheme, obj runtime.Object) *unstructured.Unstructured\n```\nGetUnstructured gets an Unstructured for the given object and panics if it fails.\n\n```go\nfunc MarshalJSON(obj runtime.Object) (marshaled []byte)\n```\nMarshalJSON marshals an object to JSON and panics if it can't.\n\n```go\nfunc NamespacedName(obj runtime.Object) types.NamespacedName\n```\nNamespacedName returns the namespaced name of the given object and panics if it can't access the object's meta.\n\n```go\nfunc StripLabel(key string, objs ...runtime.Object) (stripped []runtime.Object)\n```\nStripLabel removes the label with the given key from each object given and panics if it can't access an object's meta.\n\n```go\nfunc WithItems(list runtime.Object, items ...runtime.Object) runtime.Object\n```\nWithItems sets the items of the list given and panics if it fails.\n\n```go\nfunc WithLabel(key, value string, objs ...runtime.Object) (labelled []runtime.Object)\n```\nWithLabel sets the given key/value pair on the labels of each object given and panics if it can't access an object's meta.\n\n```go\nfunc WithName(name string, obj runtime.Object) runtime.Object\n```\nWithName sets the name of the given object and panics if it can't access the object's meta.\n\n## Types\n\n```go\ntype FixtureFiller interface {\n\t// NewFixture populates a given fixture.\n\tFill(fixture RuntimeMetaObject) RuntimeMetaObject\n}\n```\nFixtureFiller knows how to fill fixtures.\n\n```go\ntype FixtureFillerConfig struct {\n\t// contains filtered or unexported fields\n}\n```\nFixtureFillerConfig holds the configuration needed to build a FixtureFiller.\n\n```go\ntype FixtureFillerFunc func(fixture RuntimeMetaObject) RuntimeMetaObject\n```\nFixtureFillerFunc is a function that implements FixtureFiller.\n\n```go\nfunc (f FixtureFillerFunc) Fill(fixture RuntimeMetaObject) RuntimeMetaObject\n```\nFill invokes a FixtureFillerFunc on a fixture.\n\n```go\ntype FixtureFillerOption func(*FixtureFillerConfig)\n```\nFixtureFillerOption represents a configuration option for building a FixtureFiller.\n\n```go\nfunc WithFixture(fixture RuntimeMetaObject) FixtureFillerOption\n```\nWithFixture configures a FixtureFiller to copy the contents of the given fixture to fixtures of the same type.\n\n```go\nfunc WithFixtureFile(fixture RuntimeMetaObject, file string) FixtureFillerOption\n```\nWithFixtureFile configures a FixtureFiller to use a file to populate fixtures of a given type.\n\n```go\ntype PrototypeFiller struct {\n\t// contains filtered or unexported fields\n}\n```\nPrototypeFiller is a Filler that copies existing fields from a prototypical instance of a fixture.\n\n```go\nfunc (p *PrototypeFiller) Fill(fixture RuntimeMetaObject) RuntimeMetaObject\n```\nFill populates a fixture by copying a prototypical fixture. Panics if a given fixture is not the same type as the prototype.\n\n```go\ntype RuntimeMetaObject interface {\n\truntime.Object\n\tmetav1.Object\n}\n```\nRuntimeMetaObject is an object with both runtime and metadata level info.\n\n```go\nfunc WithLabels(labels map[string]string, obj RuntimeMetaObject) RuntimeMetaObject\n```\nWithLabels sets the labels of an object and returns the updated result.\n\n```go\nfunc WithNamespace(namespace string, obj runtime.Object) RuntimeMetaObject\n```\nWithNamespace sets the namespace of the given object and panics if it can't access the object's meta.\n\n```go\nfunc WithNamespacedName(name *types.NamespacedName, obj runtime.Object) RuntimeMetaObject\n```\nWithNamespacedName sets the namespace and name of the given object.\n\n```go\nfunc WithOwner(owner, obj RuntimeMetaObject) RuntimeMetaObject\n```\nWithOwner appends the an owner to an object and returns a panic if it fails.\n\n```go\ntype TypedFixtureFiller struct {\n\t// contains filtered or unexported fields\n}\n```\nTypedFixtureFiller is a set of fillers keyed by fixture type.\n\n```go\nfunc NewFixtureFiller(options ...FixtureFillerOption) *TypedFixtureFiller\n```\nNewFixtureFiller builds and returns a new FixtureFiller.\n\n```go\nfunc (t *TypedFixtureFiller) Fill(fixture RuntimeMetaObject) RuntimeMetaObject\n```\nFill populates a fixture if an associated filler has been defined for its type. Panics if there's no filler defined for the fixture type.\n\n","path":"github.com/operator-framework/operator-lifecycle-manager/pkg/lib/testobj","name":"testobj","synopsis":"","isRedistributable":true}
