Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Example_interface (0.17 sec)

  1. src/encoding/gob/example_interface_test.go

    	Hypotenuse() float64
    }
    
    // This example shows how to encode an interface value. The key
    // distinction from regular types is to register the concrete type that
    // implements the interface.
    func Example_interface() {
    	var network bytes.Buffer // Stand-in for the network.
    
    	// We must register the concrete type for the encoder and decoder (which would
    	// normally be on a separate machine from the encoder). On each end, this tells the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 02 00:13:47 UTC 2016
    - 2.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/example.go

    	"k8s.io/klog/v2"
    )
    
    // ExamplesGetter has a method to return a ExampleInterface.
    // A group's client should implement this interface.
    type ExamplesGetter interface {
    	Examples(namespace string) ExampleInterface
    }
    
    // ExampleInterface has methods to work with Example resources.
    type ExampleInterface interface {
    	Create(ctx context.Context, example *v1.Example, opts metav1.CreateOptions) (*v1.Example, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_cr_client.go

    	rest "k8s.io/client-go/rest"
    	testing "k8s.io/client-go/testing"
    )
    
    type FakeCrV1 struct {
    	*testing.Fake
    }
    
    func (c *FakeCrV1) Examples(namespace string) v1.ExampleInterface {
    	return &FakeExamples{c, namespace}
    }
    
    // RESTClient returns a RESTClient that is used to communicate
    // with API server by this client implementation.
    func (c *FakeCrV1) RESTClient() rest.Interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 08 09:52:48 UTC 2018
    - 1.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/cr_client.go

    }
    
    // CrV1Client is used to interact with features provided by the cr.example.apiextensions.k8s.io group.
    type CrV1Client struct {
    	restClient rest.Interface
    }
    
    func (c *CrV1Client) Examples(namespace string) ExampleInterface {
    	return newExamples(c, namespace)
    }
    
    // NewForConfig creates a new CrV1Client for the given config.
    // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 04:39:39 UTC 2021
    - 3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_example.go

    	labels "k8s.io/apimachinery/pkg/labels"
    	types "k8s.io/apimachinery/pkg/types"
    	watch "k8s.io/apimachinery/pkg/watch"
    	testing "k8s.io/client-go/testing"
    )
    
    // FakeExamples implements ExampleInterface
    type FakeExamples struct {
    	Fake *FakeCrV1
    	ns   string
    }
    
    var examplesResource = v1.SchemeGroupVersion.WithResource("examples")
    
    var examplesKind = v1.SchemeGroupVersion.WithKind("Example")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top