v1

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_cli_server_protos_contexts_v1_contexts_proto protoreflect.FileDescriptor

Functions

func RegisterContextsServer

func RegisterContextsServer(s *grpc.Server, srv ContextsServer)

Types

type AciEndpoint

type AciEndpoint struct {
	Region         string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
	ResourceGroup  string `protobuf:"bytes,2,opt,name=resource_group,json=resourceGroup,proto3" json:"resource_group,omitempty"`
	SubscriptionId string `protobuf:"bytes,3,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AciEndpoint) Descriptor deprecated

func (*AciEndpoint) Descriptor() ([]byte, []int)

Deprecated: Use AciEndpoint.ProtoReflect.Descriptor instead.

func (*AciEndpoint) GetRegion

func (x *AciEndpoint) GetRegion() string

func (*AciEndpoint) GetResourceGroup

func (x *AciEndpoint) GetResourceGroup() string

func (*AciEndpoint) GetSubscriptionId

func (x *AciEndpoint) GetSubscriptionId() string

func (*AciEndpoint) ProtoMessage

func (*AciEndpoint) ProtoMessage()

func (*AciEndpoint) ProtoReflect

func (x *AciEndpoint) ProtoReflect() protoreflect.Message

func (*AciEndpoint) Reset

func (x *AciEndpoint) Reset()

func (*AciEndpoint) String

func (x *AciEndpoint) String() string

type Context

type Context struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ContextType string `protobuf:"bytes,2,opt,name=contextType,proto3" json:"contextType,omitempty"`
	Current     bool   `protobuf:"varint,3,opt,name=current,proto3" json:"current,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Types that are assignable to Endpoint:
	//	*Context_DockerEndpoint
	//	*Context_AciEndpoint
	//	*Context_EcsEndpoint
	Endpoint isContext_Endpoint `protobuf_oneof:"Endpoint"`
	// contains filtered or unexported fields
}

func (*Context) Descriptor deprecated

func (*Context) Descriptor() ([]byte, []int)

Deprecated: Use Context.ProtoReflect.Descriptor instead.

func (*Context) GetAciEndpoint

func (x *Context) GetAciEndpoint() *AciEndpoint

func (*Context) GetContextType

func (x *Context) GetContextType() string

func (*Context) GetCurrent

func (x *Context) GetCurrent() bool

func (*Context) GetDescription

func (x *Context) GetDescription() string

func (*Context) GetDockerEndpoint

func (x *Context) GetDockerEndpoint() *DockerEndpoint

func (*Context) GetEcsEndpoint

func (x *Context) GetEcsEndpoint() *EcsEndpoint

func (*Context) GetEndpoint

func (m *Context) GetEndpoint() isContext_Endpoint

func (*Context) GetName

func (x *Context) GetName() string

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) ProtoReflect

func (x *Context) ProtoReflect() protoreflect.Message

func (*Context) Reset

func (x *Context) Reset()

func (*Context) String

func (x *Context) String() string

type Context_AciEndpoint

type Context_AciEndpoint struct {
	AciEndpoint *AciEndpoint `protobuf:"bytes,6,opt,name=aci_endpoint,json=aciEndpoint,proto3,oneof"`
}

type Context_DockerEndpoint

type Context_DockerEndpoint struct {
	DockerEndpoint *DockerEndpoint `protobuf:"bytes,5,opt,name=docker_endpoint,json=dockerEndpoint,proto3,oneof"`
}

type Context_EcsEndpoint

type Context_EcsEndpoint struct {
	EcsEndpoint *EcsEndpoint `protobuf:"bytes,7,opt,name=ecs_endpoint,json=ecsEndpoint,proto3,oneof"`
}

type ContextsClient

type ContextsClient interface {
	// Sets the current request for all calls
	SetCurrent(ctx context.Context, in *SetCurrentRequest, opts ...grpc.CallOption) (*SetCurrentResponse, error)
	// Returns the list of existing contexts
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
}

ContextsClient is the client API for Contexts service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewContextsClient

func NewContextsClient(cc grpc.ClientConnInterface) ContextsClient

type ContextsServer

type ContextsServer interface {
	// Sets the current request for all calls
	SetCurrent(context.Context, *SetCurrentRequest) (*SetCurrentResponse, error)
	// Returns the list of existing contexts
	List(context.Context, *ListRequest) (*ListResponse, error)
}

ContextsServer is the server API for Contexts service.

type DockerEndpoint

type DockerEndpoint struct {
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

func (*DockerEndpoint) Descriptor deprecated

func (*DockerEndpoint) Descriptor() ([]byte, []int)

Deprecated: Use DockerEndpoint.ProtoReflect.Descriptor instead.

func (*DockerEndpoint) GetHost

func (x *DockerEndpoint) GetHost() string

func (*DockerEndpoint) ProtoMessage

func (*DockerEndpoint) ProtoMessage()

func (*DockerEndpoint) ProtoReflect

func (x *DockerEndpoint) ProtoReflect() protoreflect.Message

func (*DockerEndpoint) Reset

func (x *DockerEndpoint) Reset()

func (*DockerEndpoint) String

func (x *DockerEndpoint) String() string

type EcsEndpoint

type EcsEndpoint struct {
	Profile         string `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	FromEnvironment bool   `protobuf:"varint,2,opt,name=from_environment,json=fromEnvironment,proto3" json:"from_environment,omitempty"`
	// contains filtered or unexported fields
}

func (*EcsEndpoint) Descriptor deprecated

func (*EcsEndpoint) Descriptor() ([]byte, []int)

Deprecated: Use EcsEndpoint.ProtoReflect.Descriptor instead.

func (*EcsEndpoint) GetFromEnvironment

func (x *EcsEndpoint) GetFromEnvironment() bool

func (*EcsEndpoint) GetProfile

func (x *EcsEndpoint) GetProfile() string

func (*EcsEndpoint) ProtoMessage

func (*EcsEndpoint) ProtoMessage()

func (*EcsEndpoint) ProtoReflect

func (x *EcsEndpoint) ProtoReflect() protoreflect.Message

func (*EcsEndpoint) Reset

func (x *EcsEndpoint) Reset()

func (*EcsEndpoint) String

func (x *EcsEndpoint) String() string

type ListRequest

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

func (*ListRequest) Descriptor deprecated

func (*ListRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

func (x *ListRequest) ProtoReflect() protoreflect.Message

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {
	Contexts []*Context `protobuf:"bytes,1,rep,name=contexts,proto3" json:"contexts,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

func (*ListResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetContexts

func (x *ListResponse) GetContexts() []*Context

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

func (x *ListResponse) ProtoReflect() protoreflect.Message

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type SetCurrentRequest

type SetCurrentRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*SetCurrentRequest) Descriptor deprecated

func (*SetCurrentRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetCurrentRequest.ProtoReflect.Descriptor instead.

func (*SetCurrentRequest) GetName

func (x *SetCurrentRequest) GetName() string

func (*SetCurrentRequest) ProtoMessage

func (*SetCurrentRequest) ProtoMessage()

func (*SetCurrentRequest) ProtoReflect

func (x *SetCurrentRequest) ProtoReflect() protoreflect.Message

func (*SetCurrentRequest) Reset

func (x *SetCurrentRequest) Reset()

func (*SetCurrentRequest) String

func (x *SetCurrentRequest) String() string

type SetCurrentResponse

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

func (*SetCurrentResponse) Descriptor deprecated

func (*SetCurrentResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetCurrentResponse.ProtoReflect.Descriptor instead.

func (*SetCurrentResponse) ProtoMessage

func (*SetCurrentResponse) ProtoMessage()

func (*SetCurrentResponse) ProtoReflect

func (x *SetCurrentResponse) ProtoReflect() protoreflect.Message

func (*SetCurrentResponse) Reset

func (x *SetCurrentResponse) Reset()

func (*SetCurrentResponse) String

func (x *SetCurrentResponse) String() string

type UnimplementedContextsServer

type UnimplementedContextsServer struct {
}

UnimplementedContextsServer can be embedded to have forward compatible implementations.

func (*UnimplementedContextsServer) List

func (*UnimplementedContextsServer) SetCurrent

Jump to

Keyboard shortcuts

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