etcdcluster

package
v1.2.112 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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"`
}

type Service

type Service interface {
	Get(context.Context, string, string) (*[]cloud.EtcdCluster, error)
	CreateOrUpdate(context.Context, string, string, *cloud.EtcdCluster) (*cloud.EtcdCluster, error)
	Delete(context.Context, string, string) error
}

Service interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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