sourcepkg

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	ID     string
	Weight int64
	Label  string
	Flag   bool
	Number *uint32
	// Labels []string
	Meta map[string]interface{}
	Work []Workload

	O *core.Other
	I inner.Inner

	F1 Workload  // for testing struct-to-struct
	F2 *Workload // for testing ptr-to-ptr
	F3 *Workload // for testing ptr-to-struct
	F4 Workload  // for testing struct-to-ptr

	S1 []string  // for testing struct-to-struct for basic slices
	S2 []*string // for testing ptr-to-ptr for basic slices
	S3 []*string // for testing ptr-to-struct for basic slices
	S4 []string  // for testing struct-to-ptr for basic slices

	S5 []Workload  // for testing struct-to-struct for struct slices
	S6 []*Workload // for testing ptr-to-ptr for struct slices
	S7 []*Workload // for testing ptr-to-struct for struct slices
	S8 []Workload  // for testing struct-to-ptr for struct slices

	S9  []string
	S10 StringSlice

	S11 []Workload
	S12 WorkloadSlice
	S13 WorkloadSlice

	M1 map[string]string  // for testing struct-to-string for basic map values
	M2 map[string]*string // for testing ptr-to-ptr for basic map values
	M3 map[string]*string // for testing ptr-to-string for basic map values
	M4 map[string]string  // for testing struct-to-ptr for basic map values

	M5 map[string]Workload
	M6 map[string]*Workload
	M7 map[string]*Workload
	M8 map[string]Workload
}

Node source structure for e2e testing mog.

mog annotation:

name=Core target=github.com/hashicorp/mog/internal/e2e/core.ClusterNode output=node_gen.go

type StringSlice

type StringSlice []string

type Workload

type Workload struct {
	ID string
	// mog: func-to=int func-from=int32
	Value int32
}

mog annotation:

name=Core target=github.com/hashicorp/mog/internal/e2e/core.Workload output=node_gen.go

type WorkloadSlice

type WorkloadSlice []Workload

Jump to

Keyboard shortcuts

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