archon

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2017 The Archon Authors. 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

This section is empty.

Functions

This section is empty.

Types

type ArchonClient

type ArchonClient struct {
	// contains filtered or unexported fields
}

StorageV1beta1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group.

func New

New creates a new StorageV1beta1Client for the given RESTClient.

func NewForConfig

func NewForConfig(c *restclient.Config) (*ArchonClient, error)

NewForConfig creates a new StorageV1beta1Client for the given config.

func NewForConfigOrDie

func NewForConfigOrDie(c *restclient.Config) *ArchonClient

NewForConfigOrDie creates a new StorageV1beta1Client for the given config and panics if there is an error in the config.

func (*ArchonClient) InstanceGroups

func (c *ArchonClient) InstanceGroups(namespace string) InstanceGroupInterface

func (*ArchonClient) Instances

func (c *ArchonClient) Instances(namespace string) InstanceInterface

func (*ArchonClient) Networks

func (c *ArchonClient) Networks(namespace string) NetworkInterface

func (*ArchonClient) RESTClient

func (c *ArchonClient) RESTClient() restclient.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*ArchonClient) ReservedInstances added in v0.3.0

func (c *ArchonClient) ReservedInstances(namespace string) ReservedInstanceInterface

func (*ArchonClient) Users

func (c *ArchonClient) Users(namespace string) UserInterface

type DirectDefaultingCodecFactory added in v0.3.0

type DirectDefaultingCodecFactory struct {
	serializer.CodecFactory
}

DirectDefaultingCodecFactory provides DirectDefaultDecoder

func (DirectDefaultingCodecFactory) DecoderToVersion added in v0.3.0

DecoderToVersion returns an decoder that does not do conversion. gv is ignored.

type DirectDefaultingDecoder added in v0.3.0

type DirectDefaultingDecoder struct {
	runtime.Decoder
}

func (DirectDefaultingDecoder) Decode added in v0.3.0

Decode does not do conversion. It removes the gvk during deserialization. Plus it sets defaults on obj.

type InstanceGroupInterface

InstanceGroupInterface has methods to work with InstanceGroup resources.

type InstanceGroupsGetter

type InstanceGroupsGetter interface {
	InstanceGroups(namespace string) InstanceGroupInterface
}

InstanceGroupsGetter has a method to return a InstanceGroupInterface. A group's client should implement this interface.

type InstanceInterface

type InstanceInterface interface {
	Create(*cluster.Instance) (*cluster.Instance, error)
	Update(*cluster.Instance) (*cluster.Instance, error)
	UpdateStatus(*cluster.Instance) (*cluster.Instance, error)
	Delete(name string) error
	Get(name string) (*cluster.Instance, error)
	List(metav1.ListOptions) (*cluster.InstanceList, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cluster.Instance, err error)
	Watch(metav1.ListOptions) (watch.Interface, error)
}

InstanceInterface has methods to work with Instance resources.

type InstancesGetter

type InstancesGetter interface {
	Instances(namespace string) InstanceInterface
}

InstancesGetter has a method to return a InstanceInterface. A group's client should implement this interface.

type NetworkInterface

type NetworkInterface interface {
	Create(*cluster.Network) (*cluster.Network, error)
	Update(*cluster.Network) (*cluster.Network, error)
	Delete(name string) error
	Get(name string) (*cluster.Network, error)
	List() (*cluster.NetworkList, error)
	Watch() (watch.Interface, error)
}

NetworkInterface has methods to work with Network resources.

type NetworksGetter

type NetworksGetter interface {
	Networks(namespace string) NetworkInterface
}

NetworksGetter has a method to return a NetworkInterface. A group's client should implement this interface.

type ReservedInstanceInterface added in v0.3.0

type ReservedInstanceInterface interface {
	Create(*cluster.ReservedInstance) (*cluster.ReservedInstance, error)
	Update(*cluster.ReservedInstance) (*cluster.ReservedInstance, error)
	UpdateStatus(*cluster.ReservedInstance) (*cluster.ReservedInstance, error)
	Delete(name string) error
	Get(name string) (*cluster.ReservedInstance, error)
	List(metav1.ListOptions) (*cluster.ReservedInstanceList, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cluster.ReservedInstance, err error)
	Watch(metav1.ListOptions) (watch.Interface, error)
}

ReservedInstanceInterface has methods to work with ReservedInstance resources.

type ReservedInstancesGetter added in v0.3.0

type ReservedInstancesGetter interface {
	ReservedInstances(namespace string) ReservedInstanceInterface
}

ReservedInstancesGetter has a method to return a ReservedInstanceInterface. A group's client should implement this interface.

type UserInterface

type UserInterface interface {
	Create(*cluster.User) (*cluster.User, error)
	Update(*cluster.User) (*cluster.User, error)
	Delete(name string) error
	Get(name string) (*cluster.User, error)
	List() (*cluster.UserList, error)
	Watch() (watch.Interface, error)
}

UserInterface has methods to work with User resources.

type UsersGetter

type UsersGetter interface {
	Users(namespace string) UserInterface
}

UsersGetter has a method to return a UserInterface. A group's client should implement this interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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