v1

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 9 Imported by: 0 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_protos_contexts_v1_contexts_proto protoreflect.FileDescriptor

Functions

func RegisterContextsServer

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

Types

type AciEndpoint added in v1.0.2

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 added in v1.0.2

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

Deprecated: Use AciEndpoint.ProtoReflect.Descriptor instead.

func (*AciEndpoint) GetRegion added in v1.0.2

func (x *AciEndpoint) GetRegion() string

func (*AciEndpoint) GetResourceGroup added in v1.0.2

func (x *AciEndpoint) GetResourceGroup() string

func (*AciEndpoint) GetSubscriptionId added in v1.0.2

func (x *AciEndpoint) GetSubscriptionId() string

func (*AciEndpoint) ProtoMessage added in v1.0.2

func (*AciEndpoint) ProtoMessage()

func (*AciEndpoint) ProtoReflect added in v1.0.2

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

func (*AciEndpoint) Reset added in v1.0.2

func (x *AciEndpoint) Reset()

func (*AciEndpoint) String added in v1.0.2

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 added in v1.0.2

func (x *Context) GetAciEndpoint() *AciEndpoint

func (*Context) GetContextType

func (x *Context) GetContextType() string

func (*Context) GetCurrent

func (x *Context) GetCurrent() bool

func (*Context) GetDescription added in v1.0.2

func (x *Context) GetDescription() string

func (*Context) GetDockerEndpoint added in v1.0.2

func (x *Context) GetDockerEndpoint() *DockerEndpoint

func (*Context) GetEcsEndpoint added in v1.0.2

func (x *Context) GetEcsEndpoint() *EcsEndpoint

func (*Context) GetEndpoint added in v1.0.2

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 added in v1.0.2

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

type Context_DockerEndpoint added in v1.0.2

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

type Context_EcsEndpoint added in v1.0.2

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 added in v1.0.2

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

func (*DockerEndpoint) Descriptor deprecated added in v1.0.2

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

Deprecated: Use DockerEndpoint.ProtoReflect.Descriptor instead.

func (*DockerEndpoint) GetHost added in v1.0.2

func (x *DockerEndpoint) GetHost() string

func (*DockerEndpoint) ProtoMessage added in v1.0.2

func (*DockerEndpoint) ProtoMessage()

func (*DockerEndpoint) ProtoReflect added in v1.0.2

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

func (*DockerEndpoint) Reset added in v1.0.2

func (x *DockerEndpoint) Reset()

func (*DockerEndpoint) String added in v1.0.2

func (x *DockerEndpoint) String() string

type EcsEndpoint added in v1.0.2

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 added in v1.0.2

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

Deprecated: Use EcsEndpoint.ProtoReflect.Descriptor instead.

func (*EcsEndpoint) GetFromEnvironment added in v1.0.2

func (x *EcsEndpoint) GetFromEnvironment() bool

func (*EcsEndpoint) GetProfile added in v1.0.2

func (x *EcsEndpoint) GetProfile() string

func (*EcsEndpoint) ProtoMessage added in v1.0.2

func (*EcsEndpoint) ProtoMessage()

func (*EcsEndpoint) ProtoReflect added in v1.0.2

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

func (*EcsEndpoint) Reset added in v1.0.2

func (x *EcsEndpoint) Reset()

func (*EcsEndpoint) String added in v1.0.2

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