Documentation ¶
Overview ¶
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Google LLC ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Google LLC ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
Scheme = runtime.NewScheme()
)
Functions ¶
func GV ¶
func GV() *schema.GroupVersion
func IPAddressPoolGVR ¶
func IPAddressPoolGVR() schema.GroupVersionResource
func L2AdvertisementGVR ¶
func L2AdvertisementGVR() schema.GroupVersionResource
Types ¶
type Clientset ¶
type Clientset struct {
// contains filtered or unexported fields
}
Clientset is a client for the metallb crds.
func NewForConfig ¶
NewForConfig returns a new Clientset based on c.
func (*Clientset) IPAddressPool ¶
func (c *Clientset) IPAddressPool(namespace string) IPAddressPoolInterface
func (*Clientset) L2Advertisement ¶
func (c *Clientset) L2Advertisement(namespace string) L2AdvertisementInterface
func (*Clientset) SetDynamicClient ¶
SetDynamicClient is only exposed for integration testing.
type IPAddressPoolInterface ¶
type IPAddressPoolInterface interface { List(ctx context.Context, opts metav1.ListOptions) (*metallbv1.IPAddressPoolList, error) Get(ctx context.Context, name string, opts metav1.GetOptions) (*metallbv1.IPAddressPool, error) Create(ctx context.Context, pool *metallbv1.IPAddressPool, opts metav1.CreateOptions) (*metallbv1.IPAddressPool, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) Unstructured(ctx context.Context, name string, opts metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error) Update(ctx context.Context, obj *unstructured.Unstructured, opts metav1.UpdateOptions) (*metallbv1.IPAddressPool, error) }
IPAddressPoolInterface provides access to the IPAddressPool CRD.
type Interface ¶
type Interface interface { IPAddressPool(namespace string) IPAddressPoolInterface L2Advertisement(namespace string) L2AdvertisementInterface }
Interface is the clientset interface for Metallb.
type L2AdvertisementInterface ¶
type L2AdvertisementInterface interface { List(ctx context.Context, opts metav1.ListOptions) (*metallbv1.L2AdvertisementList, error) Get(ctx context.Context, name string, opts metav1.GetOptions) (*metallbv1.L2Advertisement, error) Create(ctx context.Context, pool *metallbv1.L2Advertisement, opts metav1.CreateOptions) (*metallbv1.L2Advertisement, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) Unstructured(ctx context.Context, name string, opts metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error) Update(ctx context.Context, obj *unstructured.Unstructured, opts metav1.UpdateOptions) (*metallbv1.L2Advertisement, error) }
L2AdvertisementInterface provides access to the L2Advertisement CRD.