Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Tstruct (0.13 sec)

  1. pkg/apis/core/validation/validation_test.go

    func TestValidateVolumes(t *testing.T) {
    	validInitiatorName := "iqn.2015-02.example.com:init"
    	invalidInitiatorName := "2015-02.example.com:init"
    
    	type verr struct {
    		etype  field.ErrorType
    		field  string
    		detail string
    	}
    
    	testCases := []struct {
    		name string
    		vol  core.Volume
    		errs []verr
    		opts PodValidationOptions
    	}{
    		// EmptyDir and basic volume names
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  2. api/openapi-spec/v3/apis__apps__v1_openapi.json

    field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 810.7K bytes
    - Viewed (0)
Back to top