Documentation
¶
Index ¶
- type EtcdClusterClient
- func (c *EtcdClusterClient) CreateOrUpdate(ctx context.Context, group, name string, etcdcluster *cloud.EtcdCluster) (*cloud.EtcdCluster, error)
- func (c *EtcdClusterClient) Delete(ctx context.Context, group, name string) error
- func (c *EtcdClusterClient) Get(ctx context.Context, group, name string) (*[]cloud.EtcdCluster, error)
- type EtcdServer
- type EtcdServerProperties
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdClusterClient ¶
type EtcdClusterClient struct {
// contains filtered or unexported fields
}
Client structure
func NewEtcdClusterClient ¶
func NewEtcdClusterClient(cloudFQDN string, authorizer auth.Authorizer) (*EtcdClusterClient, error)
NewClient method returns new client
func (*EtcdClusterClient) CreateOrUpdate ¶
func (c *EtcdClusterClient) CreateOrUpdate(ctx context.Context, group, name string, etcdcluster *cloud.EtcdCluster) (*cloud.EtcdCluster, error)
CreateOrUpdate methods invokes create or update on the client
func (*EtcdClusterClient) Delete ¶
func (c *EtcdClusterClient) Delete(ctx context.Context, group, name string) error
Delete methods invokes delete of the etcdcluster resource
func (*EtcdClusterClient) Get ¶
func (c *EtcdClusterClient) Get(ctx context.Context, group, name string) (*[]cloud.EtcdCluster, error)
Get methods invokes the client Get method
type EtcdServer ¶
type EtcdServer struct {
autorest.Response `json:"-"`
// ID - READ-ONLY; The Azure Resource Manager resource ID for the key cluster.
ID *string `json:"id,omitempty"`
// Name - READ-ONLY; The name of the key cluster.
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; The resource type of the key cluster.
Type *string `json:"type,omitempty"`
// Version
Version *string `json:"version,omitempty"`
// Location - The supported Azure location where the key cluster should be created.
Location *string `json:"location,omitempty"`
// Tags - The tags that will be assigned to the key cluster.
Tags map[string]*string `json:"tags"`
// Properties - Properties of the cluster
*EtcdServerProperties `json:"properties,omitempty"`
}
Server defines the structure of a server
type EtcdServerProperties ¶
type EtcdServerProperties struct {
// ClusterName
ClusterName *string `json:"clustername"`
// FQDN address that can be used to talk to the server
Fqdn *string `json:"fqdn"`
// Client port that ETCD listens on for client communication
ClientPort uint32 `json:"clientPort"`
// State - State
Statuses map[string]*string `json:"statuses"`
}
Click to show internal directories.
Click to hide internal directories.