{"modulePath":"github.com/save-abandoned-projects/libgitops","version":"v0.0.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package runtime\n\n\\+k8s:deepcopy-gen=package\n\n## Constants\n\n```go\nconst DefaultNamespace = \"default\"\n```\nDefaultNamespace describes the default namespace name used for the system.\n\n## Types\n\n```go\ntype IdentifierFactory interface {\n\tIdentify(o interface{}) (id Identifyable, ok bool)\n}\n```\n\n```go\nvar (\n\t// Metav1Identifier identifies an object using its metav1.ObjectMeta Name and Namespace\n\tMetav1NameIdentifier IdentifierFactory = Metav1NameIdentifierFactory{}\n\t// ObjectUIDIdentifier identifies an object using its libgitops/pkg/runtime.ObjectMeta UID field\n\tObjectUIDIdentifier IdentifierFactory = ObjectUIDIdentifierFactory{}\n)\n```\n\n```go\ntype Identifyable interface {\n\t// GetIdentifier can return e.g. a \"namespace/name\" combination, which is not guaranteed\n\t// to be unique world-wide, or alternatively a random SHA for instance\n\tGetIdentifier() string\n}\n```\nIdentifyable is an object which can be identified\n\n```go\nfunc NewIdentifier(str string) Identifyable\n```\n\n```go\ntype Metav1NameIdentifierFactory struct{}\n```\n\n```go\nfunc (in *Metav1NameIdentifierFactory) DeepCopy() *Metav1NameIdentifierFactory\n```\nDeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metav1NameIdentifierFactory.\n\n```go\nfunc (in *Metav1NameIdentifierFactory) DeepCopyInto(out *Metav1NameIdentifierFactory)\n```\nDeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.\n\n```go\nfunc (id Metav1NameIdentifierFactory) Identify(o interface{}) (Identifyable, bool)\n```\n\n```go\ntype Object interface {\n\truntime.Object\n\tmetav1.ObjectMetaAccessor\n\tmetav1.Object\n}\n```\nObject is an union of the Object interfaces that are accessible for a type that embeds both metav1.TypeMeta and metav1.ObjectMeta.\n\n```go\ntype ObjectUIDIdentifierFactory struct{}\n```\n\n```go\nfunc (in *ObjectUIDIdentifierFactory) DeepCopy() *ObjectUIDIdentifierFactory\n```\nDeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectUIDIdentifierFactory.\n\n```go\nfunc (in *ObjectUIDIdentifierFactory) DeepCopyInto(out *ObjectUIDIdentifierFactory)\n```\nDeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.\n\n```go\nfunc (id ObjectUIDIdentifierFactory) Identify(o interface{}) (Identifyable, bool)\n```\n\n```go\ntype PartialObject interface {\n\tObject\n\n\t// IsPartialObject is a dummy function for signalling that this is a partially-loaded object\n\t// i.e. only TypeMeta and ObjectMeta are stored in memory.\n\tIsPartialObject()\n}\n```\nPartialObject is a partially-decoded object, where only metadata has been loaded.\n\n```go\nfunc NewPartialObject(frame []byte) (PartialObject, error)\n```\nThis constructor ensures the PartialObjectImpl fields are not nil. TODO: Make this multi-document-aware?\n\n```go\ntype PartialObjectImpl struct {\n\tmetav1.TypeMeta   `json:\",inline\"`\n\tmetav1.ObjectMeta `json:\"metadata\"`\n}\n```\nPartialObjectImpl is a struct implementing PartialObject, used for unmarshalling unknown objects into this intermediate type where .Name, .UID, .Kind and .APIVersion become easily available +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object\n\n```go\nfunc (in *PartialObjectImpl) DeepCopy() *PartialObjectImpl\n```\nDeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartialObjectImpl.\n\n```go\nfunc (in *PartialObjectImpl) DeepCopyInto(out *PartialObjectImpl)\n```\nDeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.\n\n```go\nfunc (in *PartialObjectImpl) DeepCopyObject() pkgruntime.Object\n```\nDeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new pkgruntime.Object.\n\n```go\nfunc (po *PartialObjectImpl) IsPartialObject()\n```\n\n","path":"github.com/save-abandoned-projects/libgitops/pkg/runtime","name":"runtime","synopsis":"+k8s:deepcopy-gen=package","isRedistributable":true}
