deepcopy

package
v0.2.0-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2019 License: Apache-2.0 Imports: 14 Imported by: 8

Documentation

Overview

Package deepcopy generates DeepCopy, DeepCopyInto, and DeepCopyObject implementations for types.

It's ported from k8s.io/code-generator's / k8s.io/gengo's deepcopy-gen, but it's scoped specifically to runtime.Object and skips support for deepcopying interfaces, which aren't handled in CRDs anyway.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	HeaderFile string `marker:",optional"`
	Year       string `marker:",optional"`
}

Generator generates code code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.

func (Generator) Generate

func (d Generator) Generate(ctx *genall.GenerationContext) error

func (Generator) RegisterMarkers

func (Generator) RegisterMarkers(into *markers.Registry) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL