proto

package
v1.50.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Main_RunCommand_FullMethodName   = "/proto.Main/RunCommand"
	Main_PostInstall_FullMethodName  = "/proto.Main/PostInstall"
	Main_PreUninstall_FullMethodName = "/proto.Main/PreUninstall"
)
View Source
const (
	CoreCLIHelper_Echo_FullMethodName                         = "/proto.CoreCLIHelper/Echo"
	CoreCLIHelper_SendAnalytics_FullMethodName                = "/proto.CoreCLIHelper/SendAnalytics"
	CoreCLIHelper_KeychainGetPassword_FullMethodName          = "/proto.CoreCLIHelper/KeychainGetPassword"
	CoreCLIHelper_KeychainSetPassword_FullMethodName          = "/proto.CoreCLIHelper/KeychainSetPassword"
	CoreCLIHelper_KeychainDeletePassword_FullMethodName       = "/proto.CoreCLIHelper/KeychainDeletePassword"
	CoreCLIHelper_KeychainFindCredentials_FullMethodName      = "/proto.CoreCLIHelper/KeychainFindCredentials"
	CoreCLIHelper_RunPeerPlugin_FullMethodName                = "/proto.CoreCLIHelper/RunPeerPlugin"
	CoreCLIHelper_ResolveCredentials_FullMethodName           = "/proto.CoreCLIHelper/ResolveCredentials"
	CoreCLIHelper_ResolveCredentialsForAnyMode_FullMethodName = "/proto.CoreCLIHelper/ResolveCredentialsForAnyMode"
	CoreCLIHelper_SwitchContext_FullMethodName                = "/proto.CoreCLIHelper/SwitchContext"
)

Variables

View Source
var CoreCLIHelper_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.CoreCLIHelper",
	HandlerType: (*CoreCLIHelperServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Echo",
			Handler:    _CoreCLIHelper_Echo_Handler,
		},
		{
			MethodName: "SendAnalytics",
			Handler:    _CoreCLIHelper_SendAnalytics_Handler,
		},
		{
			MethodName: "KeychainGetPassword",
			Handler:    _CoreCLIHelper_KeychainGetPassword_Handler,
		},
		{
			MethodName: "KeychainSetPassword",
			Handler:    _CoreCLIHelper_KeychainSetPassword_Handler,
		},
		{
			MethodName: "KeychainDeletePassword",
			Handler:    _CoreCLIHelper_KeychainDeletePassword_Handler,
		},
		{
			MethodName: "KeychainFindCredentials",
			Handler:    _CoreCLIHelper_KeychainFindCredentials_Handler,
		},
		{
			MethodName: "RunPeerPlugin",
			Handler:    _CoreCLIHelper_RunPeerPlugin_Handler,
		},
		{
			MethodName: "ResolveCredentials",
			Handler:    _CoreCLIHelper_ResolveCredentials_Handler,
		},
		{
			MethodName: "ResolveCredentialsForAnyMode",
			Handler:    _CoreCLIHelper_ResolveCredentialsForAnyMode_Handler,
		},
		{
			MethodName: "SwitchContext",
			Handler:    _CoreCLIHelper_SwitchContext_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/plugins/proto/main.proto",
}

CoreCLIHelper_ServiceDesc is the grpc.ServiceDesc for CoreCLIHelper service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_pkg_plugins_proto_main_proto protoreflect.FileDescriptor
View Source
var Main_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Main",
	HandlerType: (*MainServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RunCommand",
			Handler:    _Main_RunCommand_Handler,
		},
		{
			MethodName: "PostInstall",
			Handler:    _Main_PostInstall_Handler,
		},
		{
			MethodName: "PreUninstall",
			Handler:    _Main_PreUninstall_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/plugins/proto/main.proto",
}

Main_ServiceDesc is the grpc.ServiceDesc for Main service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterCoreCLIHelperServer added in v1.37.4

func RegisterCoreCLIHelperServer(s grpc.ServiceRegistrar, srv CoreCLIHelperServer)

func RegisterMainServer

func RegisterMainServer(s grpc.ServiceRegistrar, srv MainServer)

Types

type AdditionalInfo

type AdditionalInfo struct {
	IsTerminal         *IsTerminal         `protobuf:"bytes,1,opt,name=is_terminal,json=isTerminal,proto3" json:"is_terminal,omitempty"`
	TerminalDimensions *TerminalDimensions `protobuf:"bytes,2,opt,name=terminal_dimensions,json=terminalDimensions,proto3" json:"terminal_dimensions,omitempty"`
	// api_base_url, dashboard_base_url, and access_base_url carry the
	// --api-base/--dashboard-base/--access-base values the user explicitly passed
	// to the CLI, so a plugin can target the same non-default environment
	// (e.g. QA/dev) as the CLI that launched it. Each is empty when the user
	// didn't pass the corresponding flag; a plugin should fall back to its own
	// default in that case rather than treating an empty string as a host.
	ApiBaseUrl       string `protobuf:"bytes,3,opt,name=api_base_url,json=apiBaseUrl,proto3" json:"api_base_url,omitempty"`
	DashboardBaseUrl string `protobuf:"bytes,4,opt,name=dashboard_base_url,json=dashboardBaseUrl,proto3" json:"dashboard_base_url,omitempty"`
	AccessBaseUrl    string `protobuf:"bytes,5,opt,name=access_base_url,json=accessBaseUrl,proto3" json:"access_base_url,omitempty"`
	// contains filtered or unexported fields
}

func (*AdditionalInfo) Descriptor deprecated

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

Deprecated: Use AdditionalInfo.ProtoReflect.Descriptor instead.

func (*AdditionalInfo) GetAccessBaseUrl added in v1.50.7

func (x *AdditionalInfo) GetAccessBaseUrl() string

func (*AdditionalInfo) GetApiBaseUrl added in v1.50.7

func (x *AdditionalInfo) GetApiBaseUrl() string

func (*AdditionalInfo) GetDashboardBaseUrl added in v1.50.7

func (x *AdditionalInfo) GetDashboardBaseUrl() string

func (*AdditionalInfo) GetIsTerminal

func (x *AdditionalInfo) GetIsTerminal() *IsTerminal

func (*AdditionalInfo) GetTerminalDimensions added in v1.40.3

func (x *AdditionalInfo) GetTerminalDimensions() *TerminalDimensions

func (*AdditionalInfo) ProtoMessage

func (*AdditionalInfo) ProtoMessage()

func (*AdditionalInfo) ProtoReflect

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

func (*AdditionalInfo) Reset

func (x *AdditionalInfo) Reset()

func (*AdditionalInfo) String

func (x *AdditionalInfo) String() string

type CoreCLIHelperClient added in v1.37.4

type CoreCLIHelperClient interface {
	Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
	SendAnalytics(ctx context.Context, in *SendAnalyticsRequest, opts ...grpc.CallOption) (*SendAnalyticsResponse, error)
	KeychainGetPassword(ctx context.Context, in *KeychainGetPasswordRequest, opts ...grpc.CallOption) (*KeychainGetPasswordResponse, error)
	KeychainSetPassword(ctx context.Context, in *KeychainSetPasswordRequest, opts ...grpc.CallOption) (*KeychainSetPasswordResponse, error)
	KeychainDeletePassword(ctx context.Context, in *KeychainDeletePasswordRequest, opts ...grpc.CallOption) (*KeychainDeletePasswordResponse, error)
	// Deprecated: Do not use.
	// Deprecated: KeychainFindCredentials always returns an empty list. Use KeychainGetPassword to retrieve an individual password instead.
	KeychainFindCredentials(ctx context.Context, in *KeychainFindCredentialsRequest, opts ...grpc.CallOption) (*KeychainFindCredentialsResponse, error)
	RunPeerPlugin(ctx context.Context, in *RunPeerPluginRequest, opts ...grpc.CallOption) (*RunPeerPluginResponse, error)
	ResolveCredentials(ctx context.Context, in *ResolveCredentialsRequest, opts ...grpc.CallOption) (*ResolveCredentialsResponse, error)
	// Resolves credentials for the requested mode, but if that doesn't match the
	// OAuth active context, resolves credentials for whichever mode is actually
	// active instead of failing.
	ResolveCredentialsForAnyMode(ctx context.Context, in *ResolveCredentialsRequest, opts ...grpc.CallOption) (*ResolveCredentialsResponse, error)
	// SwitchContext switches the active authorized account/mode context, the
	// same way `stripe switch context` does. If account_id is empty, shows an
	// interactive picker.
	SwitchContext(ctx context.Context, in *SwitchContextRequest, opts ...grpc.CallOption) (*SwitchContextResponse, error)
}

CoreCLIHelperClient is the client API for CoreCLIHelper service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewCoreCLIHelperClient added in v1.37.4

func NewCoreCLIHelperClient(cc grpc.ClientConnInterface) CoreCLIHelperClient

type CoreCLIHelperServer added in v1.37.4

type CoreCLIHelperServer interface {
	Echo(context.Context, *EchoRequest) (*EchoResponse, error)
	SendAnalytics(context.Context, *SendAnalyticsRequest) (*SendAnalyticsResponse, error)
	KeychainGetPassword(context.Context, *KeychainGetPasswordRequest) (*KeychainGetPasswordResponse, error)
	KeychainSetPassword(context.Context, *KeychainSetPasswordRequest) (*KeychainSetPasswordResponse, error)
	KeychainDeletePassword(context.Context, *KeychainDeletePasswordRequest) (*KeychainDeletePasswordResponse, error)
	// Deprecated: Do not use.
	// Deprecated: KeychainFindCredentials always returns an empty list. Use KeychainGetPassword to retrieve an individual password instead.
	KeychainFindCredentials(context.Context, *KeychainFindCredentialsRequest) (*KeychainFindCredentialsResponse, error)
	RunPeerPlugin(context.Context, *RunPeerPluginRequest) (*RunPeerPluginResponse, error)
	ResolveCredentials(context.Context, *ResolveCredentialsRequest) (*ResolveCredentialsResponse, error)
	// Resolves credentials for the requested mode, but if that doesn't match the
	// OAuth active context, resolves credentials for whichever mode is actually
	// active instead of failing.
	ResolveCredentialsForAnyMode(context.Context, *ResolveCredentialsRequest) (*ResolveCredentialsResponse, error)
	// SwitchContext switches the active authorized account/mode context, the
	// same way `stripe switch context` does. If account_id is empty, shows an
	// interactive picker.
	SwitchContext(context.Context, *SwitchContextRequest) (*SwitchContextResponse, error)
	// contains filtered or unexported methods
}

CoreCLIHelperServer is the server API for CoreCLIHelper service. All implementations must embed UnimplementedCoreCLIHelperServer for forward compatibility.

type EchoRequest added in v1.37.4

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

func (*EchoRequest) Descriptor deprecated added in v1.37.4

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

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) GetInput added in v1.37.4

func (x *EchoRequest) GetInput() string

func (*EchoRequest) ProtoMessage added in v1.37.4

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) ProtoReflect added in v1.37.4

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

func (*EchoRequest) Reset added in v1.37.4

func (x *EchoRequest) Reset()

func (*EchoRequest) String added in v1.37.4

func (x *EchoRequest) String() string

type EchoResponse added in v1.37.4

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

func (*EchoResponse) Descriptor deprecated added in v1.37.4

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

Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.

func (*EchoResponse) GetOutput added in v1.37.4

func (x *EchoResponse) GetOutput() string

func (*EchoResponse) ProtoMessage added in v1.37.4

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) ProtoReflect added in v1.37.4

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

func (*EchoResponse) Reset added in v1.37.4

func (x *EchoResponse) Reset()

func (*EchoResponse) String added in v1.37.4

func (x *EchoResponse) String() string

type IsTerminal

type IsTerminal struct {
	Stdin  bool `protobuf:"varint,1,opt,name=stdin,proto3" json:"stdin,omitempty"`
	Stdout bool `protobuf:"varint,2,opt,name=stdout,proto3" json:"stdout,omitempty"`
	Stderr bool `protobuf:"varint,3,opt,name=stderr,proto3" json:"stderr,omitempty"`
	// contains filtered or unexported fields
}

func (*IsTerminal) Descriptor deprecated

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

Deprecated: Use IsTerminal.ProtoReflect.Descriptor instead.

func (*IsTerminal) GetStderr

func (x *IsTerminal) GetStderr() bool

func (*IsTerminal) GetStdin

func (x *IsTerminal) GetStdin() bool

func (*IsTerminal) GetStdout

func (x *IsTerminal) GetStdout() bool

func (*IsTerminal) ProtoMessage

func (*IsTerminal) ProtoMessage()

func (*IsTerminal) ProtoReflect

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

func (*IsTerminal) Reset

func (x *IsTerminal) Reset()

func (*IsTerminal) String

func (x *IsTerminal) String() string

type KeychainDeletePasswordRequest added in v1.38.0

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

func (*KeychainDeletePasswordRequest) Descriptor deprecated added in v1.38.0

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

Deprecated: Use KeychainDeletePasswordRequest.ProtoReflect.Descriptor instead.

func (*KeychainDeletePasswordRequest) GetKey added in v1.38.0

func (*KeychainDeletePasswordRequest) ProtoMessage added in v1.38.0

func (*KeychainDeletePasswordRequest) ProtoMessage()

func (*KeychainDeletePasswordRequest) ProtoReflect added in v1.38.0

func (*KeychainDeletePasswordRequest) Reset added in v1.38.0

func (x *KeychainDeletePasswordRequest) Reset()

func (*KeychainDeletePasswordRequest) String added in v1.38.0

type KeychainDeletePasswordResponse added in v1.38.0

type KeychainDeletePasswordResponse struct {
	Deleted bool `protobuf:"varint,1,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*KeychainDeletePasswordResponse) Descriptor deprecated added in v1.38.0

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

Deprecated: Use KeychainDeletePasswordResponse.ProtoReflect.Descriptor instead.

func (*KeychainDeletePasswordResponse) GetDeleted added in v1.38.0

func (x *KeychainDeletePasswordResponse) GetDeleted() bool

func (*KeychainDeletePasswordResponse) ProtoMessage added in v1.38.0

func (*KeychainDeletePasswordResponse) ProtoMessage()

func (*KeychainDeletePasswordResponse) ProtoReflect added in v1.38.0

func (*KeychainDeletePasswordResponse) Reset added in v1.38.0

func (x *KeychainDeletePasswordResponse) Reset()

func (*KeychainDeletePasswordResponse) String added in v1.38.0

type KeychainFindCredentialsRequest deprecated added in v1.38.0

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

Deprecated: KeychainFindCredentials always returns an empty list. Use KeychainGetPassword to retrieve an individual password instead.

Deprecated: Marked as deprecated in pkg/plugins/proto/main.proto.

func (*KeychainFindCredentialsRequest) Descriptor deprecated added in v1.38.0

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

Deprecated: Use KeychainFindCredentialsRequest.ProtoReflect.Descriptor instead.

func (*KeychainFindCredentialsRequest) ProtoMessage added in v1.38.0

func (*KeychainFindCredentialsRequest) ProtoMessage()

func (*KeychainFindCredentialsRequest) ProtoReflect added in v1.38.0

func (*KeychainFindCredentialsRequest) Reset added in v1.38.0

func (x *KeychainFindCredentialsRequest) Reset()

func (*KeychainFindCredentialsRequest) String added in v1.38.0

type KeychainFindCredentialsResponse deprecated added in v1.38.0

type KeychainFindCredentialsResponse struct {
	Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: KeychainFindCredentials always returns an empty list. Use KeychainGetPassword to retrieve an individual password instead.

Deprecated: Marked as deprecated in pkg/plugins/proto/main.proto.

func (*KeychainFindCredentialsResponse) Descriptor deprecated added in v1.38.0

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

Deprecated: Use KeychainFindCredentialsResponse.ProtoReflect.Descriptor instead.

func (*KeychainFindCredentialsResponse) GetKeys added in v1.38.0

func (x *KeychainFindCredentialsResponse) GetKeys() []string

func (*KeychainFindCredentialsResponse) ProtoMessage added in v1.38.0

func (*KeychainFindCredentialsResponse) ProtoMessage()

func (*KeychainFindCredentialsResponse) ProtoReflect added in v1.38.0

func (*KeychainFindCredentialsResponse) Reset added in v1.38.0

func (*KeychainFindCredentialsResponse) String added in v1.38.0

type KeychainGetPasswordRequest added in v1.38.0

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

func (*KeychainGetPasswordRequest) Descriptor deprecated added in v1.38.0

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

Deprecated: Use KeychainGetPasswordRequest.ProtoReflect.Descriptor instead.

func (*KeychainGetPasswordRequest) GetKey added in v1.38.0

func (x *KeychainGetPasswordRequest) GetKey() string

func (*KeychainGetPasswordRequest) ProtoMessage added in v1.38.0

func (*KeychainGetPasswordRequest) ProtoMessage()

func (*KeychainGetPasswordRequest) ProtoReflect added in v1.38.0

func (*KeychainGetPasswordRequest) Reset added in v1.38.0

func (x *KeychainGetPasswordRequest) Reset()

func (*KeychainGetPasswordRequest) String added in v1.38.0

func (x *KeychainGetPasswordRequest) String() string

type KeychainGetPasswordResponse added in v1.38.0

type KeychainGetPasswordResponse struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Found bool   `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

func (*KeychainGetPasswordResponse) Descriptor deprecated added in v1.38.0

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

Deprecated: Use KeychainGetPasswordResponse.ProtoReflect.Descriptor instead.

func (*KeychainGetPasswordResponse) GetFound added in v1.38.0

func (x *KeychainGetPasswordResponse) GetFound() bool

func (*KeychainGetPasswordResponse) GetValue added in v1.38.0

func (x *KeychainGetPasswordResponse) GetValue() string

func (*KeychainGetPasswordResponse) ProtoMessage added in v1.38.0

func (*KeychainGetPasswordResponse) ProtoMessage()

func (*KeychainGetPasswordResponse) ProtoReflect added in v1.38.0

func (*KeychainGetPasswordResponse) Reset added in v1.38.0

func (x *KeychainGetPasswordResponse) Reset()

func (*KeychainGetPasswordResponse) String added in v1.38.0

func (x *KeychainGetPasswordResponse) String() string

type KeychainSetPasswordRequest added in v1.38.0

type KeychainSetPasswordRequest struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*KeychainSetPasswordRequest) Descriptor deprecated added in v1.38.0

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

Deprecated: Use KeychainSetPasswordRequest.ProtoReflect.Descriptor instead.

func (*KeychainSetPasswordRequest) GetKey added in v1.38.0

func (x *KeychainSetPasswordRequest) GetKey() string

func (*KeychainSetPasswordRequest) GetValue added in v1.38.0

func (x *KeychainSetPasswordRequest) GetValue() string

func (*KeychainSetPasswordRequest) ProtoMessage added in v1.38.0

func (*KeychainSetPasswordRequest) ProtoMessage()

func (*KeychainSetPasswordRequest) ProtoReflect added in v1.38.0

func (*KeychainSetPasswordRequest) Reset added in v1.38.0

func (x *KeychainSetPasswordRequest) Reset()

func (*KeychainSetPasswordRequest) String added in v1.38.0

func (x *KeychainSetPasswordRequest) String() string

type KeychainSetPasswordResponse added in v1.38.0

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

func (*KeychainSetPasswordResponse) Descriptor deprecated added in v1.38.0

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

Deprecated: Use KeychainSetPasswordResponse.ProtoReflect.Descriptor instead.

func (*KeychainSetPasswordResponse) ProtoMessage added in v1.38.0

func (*KeychainSetPasswordResponse) ProtoMessage()

func (*KeychainSetPasswordResponse) ProtoReflect added in v1.38.0

func (*KeychainSetPasswordResponse) Reset added in v1.38.0

func (x *KeychainSetPasswordResponse) Reset()

func (*KeychainSetPasswordResponse) String added in v1.38.0

func (x *KeychainSetPasswordResponse) String() string

type MainClient

type MainClient interface {
	RunCommand(ctx context.Context, in *RunCommandRequest, opts ...grpc.CallOption) (*RunCommandResponse, error)
	// PostInstall is called best-effort after `stripe plugins install` or
	// `stripe plugins upgrade` successfully downloads the plugin binary.
	PostInstall(ctx context.Context, in *PostInstallRequest, opts ...grpc.CallOption) (*PostInstallResponse, error)
	// PreUninstall is called best-effort by `stripe plugins uninstall` before
	// the plugin's files are removed from disk.
	PreUninstall(ctx context.Context, in *PreUninstallRequest, opts ...grpc.CallOption) (*PreUninstallResponse, error)
}

MainClient is the client API for Main service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMainClient

func NewMainClient(cc grpc.ClientConnInterface) MainClient

type MainServer

type MainServer interface {
	RunCommand(context.Context, *RunCommandRequest) (*RunCommandResponse, error)
	// PostInstall is called best-effort after `stripe plugins install` or
	// `stripe plugins upgrade` successfully downloads the plugin binary.
	PostInstall(context.Context, *PostInstallRequest) (*PostInstallResponse, error)
	// PreUninstall is called best-effort by `stripe plugins uninstall` before
	// the plugin's files are removed from disk.
	PreUninstall(context.Context, *PreUninstallRequest) (*PreUninstallResponse, error)
	// contains filtered or unexported methods
}

MainServer is the server API for Main service. All implementations must embed UnimplementedMainServer for forward compatibility.

type PostInstallRequest added in v1.50.7

type PostInstallRequest struct {
	AdditionalInfo  *AdditionalInfo `protobuf:"bytes,1,opt,name=additional_info,json=additionalInfo,proto3" json:"additional_info,omitempty"`
	Version         string          `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	PreviousVersion string          `protobuf:"bytes,3,opt,name=previous_version,json=previousVersion,proto3" json:"previous_version,omitempty"`
	CoreCliHelperId uint32          `protobuf:"varint,4,opt,name=core_cli_helper_id,json=coreCliHelperId,proto3" json:"core_cli_helper_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PostInstallRequest) Descriptor deprecated added in v1.50.7

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

Deprecated: Use PostInstallRequest.ProtoReflect.Descriptor instead.

func (*PostInstallRequest) GetAdditionalInfo added in v1.50.7

func (x *PostInstallRequest) GetAdditionalInfo() *AdditionalInfo

func (*PostInstallRequest) GetCoreCliHelperId added in v1.50.7

func (x *PostInstallRequest) GetCoreCliHelperId() uint32

func (*PostInstallRequest) GetPreviousVersion added in v1.50.7

func (x *PostInstallRequest) GetPreviousVersion() string

func (*PostInstallRequest) GetVersion added in v1.50.7

func (x *PostInstallRequest) GetVersion() string

func (*PostInstallRequest) ProtoMessage added in v1.50.7

func (*PostInstallRequest) ProtoMessage()

func (*PostInstallRequest) ProtoReflect added in v1.50.7

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

func (*PostInstallRequest) Reset added in v1.50.7

func (x *PostInstallRequest) Reset()

func (*PostInstallRequest) String added in v1.50.7

func (x *PostInstallRequest) String() string

type PostInstallResponse added in v1.50.7

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

func (*PostInstallResponse) Descriptor deprecated added in v1.50.7

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

Deprecated: Use PostInstallResponse.ProtoReflect.Descriptor instead.

func (*PostInstallResponse) ProtoMessage added in v1.50.7

func (*PostInstallResponse) ProtoMessage()

func (*PostInstallResponse) ProtoReflect added in v1.50.7

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

func (*PostInstallResponse) Reset added in v1.50.7

func (x *PostInstallResponse) Reset()

func (*PostInstallResponse) String added in v1.50.7

func (x *PostInstallResponse) String() string

type PreUninstallRequest added in v1.50.7

type PreUninstallRequest struct {
	AdditionalInfo  *AdditionalInfo `protobuf:"bytes,1,opt,name=additional_info,json=additionalInfo,proto3" json:"additional_info,omitempty"`
	Version         string          `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	CoreCliHelperId uint32          `protobuf:"varint,3,opt,name=core_cli_helper_id,json=coreCliHelperId,proto3" json:"core_cli_helper_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PreUninstallRequest) Descriptor deprecated added in v1.50.7

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

Deprecated: Use PreUninstallRequest.ProtoReflect.Descriptor instead.

func (*PreUninstallRequest) GetAdditionalInfo added in v1.50.7

func (x *PreUninstallRequest) GetAdditionalInfo() *AdditionalInfo

func (*PreUninstallRequest) GetCoreCliHelperId added in v1.50.7

func (x *PreUninstallRequest) GetCoreCliHelperId() uint32

func (*PreUninstallRequest) GetVersion added in v1.50.7

func (x *PreUninstallRequest) GetVersion() string

func (*PreUninstallRequest) ProtoMessage added in v1.50.7

func (*PreUninstallRequest) ProtoMessage()

func (*PreUninstallRequest) ProtoReflect added in v1.50.7

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

func (*PreUninstallRequest) Reset added in v1.50.7

func (x *PreUninstallRequest) Reset()

func (*PreUninstallRequest) String added in v1.50.7

func (x *PreUninstallRequest) String() string

type PreUninstallResponse added in v1.50.7

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

func (*PreUninstallResponse) Descriptor deprecated added in v1.50.7

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

Deprecated: Use PreUninstallResponse.ProtoReflect.Descriptor instead.

func (*PreUninstallResponse) ProtoMessage added in v1.50.7

func (*PreUninstallResponse) ProtoMessage()

func (*PreUninstallResponse) ProtoReflect added in v1.50.7

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

func (*PreUninstallResponse) Reset added in v1.50.7

func (x *PreUninstallResponse) Reset()

func (*PreUninstallResponse) String added in v1.50.7

func (x *PreUninstallResponse) String() string

type ResolveCredentialsRequest added in v1.50.1

type ResolveCredentialsRequest struct {
	Livemode bool `protobuf:"varint,1,opt,name=livemode,proto3" json:"livemode,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveCredentialsRequest) Descriptor deprecated added in v1.50.1

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

Deprecated: Use ResolveCredentialsRequest.ProtoReflect.Descriptor instead.

func (*ResolveCredentialsRequest) GetLivemode added in v1.50.1

func (x *ResolveCredentialsRequest) GetLivemode() bool

func (*ResolveCredentialsRequest) ProtoMessage added in v1.50.1

func (*ResolveCredentialsRequest) ProtoMessage()

func (*ResolveCredentialsRequest) ProtoReflect added in v1.50.1

func (*ResolveCredentialsRequest) Reset added in v1.50.1

func (x *ResolveCredentialsRequest) Reset()

func (*ResolveCredentialsRequest) String added in v1.50.1

func (x *ResolveCredentialsRequest) String() string

type ResolveCredentialsResponse added in v1.50.1

type ResolveCredentialsResponse struct {
	Token         string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	StripeContext string `protobuf:"bytes,2,opt,name=stripe_context,json=stripeContext,proto3" json:"stripe_context,omitempty"`
	Livemode      bool   `protobuf:"varint,3,opt,name=livemode,proto3" json:"livemode,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveCredentialsResponse) Descriptor deprecated added in v1.50.1

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

Deprecated: Use ResolveCredentialsResponse.ProtoReflect.Descriptor instead.

func (*ResolveCredentialsResponse) GetLivemode added in v1.50.1

func (x *ResolveCredentialsResponse) GetLivemode() bool

func (*ResolveCredentialsResponse) GetStripeContext added in v1.50.1

func (x *ResolveCredentialsResponse) GetStripeContext() string

func (*ResolveCredentialsResponse) GetToken added in v1.50.1

func (x *ResolveCredentialsResponse) GetToken() string

func (*ResolveCredentialsResponse) ProtoMessage added in v1.50.1

func (*ResolveCredentialsResponse) ProtoMessage()

func (*ResolveCredentialsResponse) ProtoReflect added in v1.50.1

func (*ResolveCredentialsResponse) Reset added in v1.50.1

func (x *ResolveCredentialsResponse) Reset()

func (*ResolveCredentialsResponse) String added in v1.50.1

func (x *ResolveCredentialsResponse) String() string

type RunCommandRequest

type RunCommandRequest struct {
	AdditionalInfo  *AdditionalInfo `protobuf:"bytes,1,opt,name=additional_info,json=additionalInfo,proto3" json:"additional_info,omitempty"`
	Args            []string        `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
	CoreCliHelperId uint32          `protobuf:"varint,3,opt,name=core_cli_helper_id,json=coreCliHelperId,proto3" json:"core_cli_helper_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RunCommandRequest) Descriptor deprecated

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

Deprecated: Use RunCommandRequest.ProtoReflect.Descriptor instead.

func (*RunCommandRequest) GetAdditionalInfo

func (x *RunCommandRequest) GetAdditionalInfo() *AdditionalInfo

func (*RunCommandRequest) GetArgs

func (x *RunCommandRequest) GetArgs() []string

func (*RunCommandRequest) GetCoreCliHelperId added in v1.37.4

func (x *RunCommandRequest) GetCoreCliHelperId() uint32

func (*RunCommandRequest) ProtoMessage

func (*RunCommandRequest) ProtoMessage()

func (*RunCommandRequest) ProtoReflect

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

func (*RunCommandRequest) Reset

func (x *RunCommandRequest) Reset()

func (*RunCommandRequest) String

func (x *RunCommandRequest) String() string

type RunCommandResponse

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

func (*RunCommandResponse) Descriptor deprecated

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

Deprecated: Use RunCommandResponse.ProtoReflect.Descriptor instead.

func (*RunCommandResponse) ProtoMessage

func (*RunCommandResponse) ProtoMessage()

func (*RunCommandResponse) ProtoReflect

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

func (*RunCommandResponse) Reset

func (x *RunCommandResponse) Reset()

func (*RunCommandResponse) String

func (x *RunCommandResponse) String() string

type RunPeerPluginRequest added in v1.40.7

type RunPeerPluginRequest struct {
	PluginName string   `protobuf:"bytes,1,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"`
	Args       []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
	Cwd        string   `protobuf:"bytes,3,opt,name=cwd,proto3" json:"cwd,omitempty"`
	// contains filtered or unexported fields
}

func (*RunPeerPluginRequest) Descriptor deprecated added in v1.40.7

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

Deprecated: Use RunPeerPluginRequest.ProtoReflect.Descriptor instead.

func (*RunPeerPluginRequest) GetArgs added in v1.40.7

func (x *RunPeerPluginRequest) GetArgs() []string

func (*RunPeerPluginRequest) GetCwd added in v1.40.7

func (x *RunPeerPluginRequest) GetCwd() string

func (*RunPeerPluginRequest) GetPluginName added in v1.40.7

func (x *RunPeerPluginRequest) GetPluginName() string

func (*RunPeerPluginRequest) ProtoMessage added in v1.40.7

func (*RunPeerPluginRequest) ProtoMessage()

func (*RunPeerPluginRequest) ProtoReflect added in v1.40.7

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

func (*RunPeerPluginRequest) Reset added in v1.40.7

func (x *RunPeerPluginRequest) Reset()

func (*RunPeerPluginRequest) String added in v1.40.7

func (x *RunPeerPluginRequest) String() string

type RunPeerPluginResponse added in v1.40.7

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

func (*RunPeerPluginResponse) Descriptor deprecated added in v1.40.7

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

Deprecated: Use RunPeerPluginResponse.ProtoReflect.Descriptor instead.

func (*RunPeerPluginResponse) ProtoMessage added in v1.40.7

func (*RunPeerPluginResponse) ProtoMessage()

func (*RunPeerPluginResponse) ProtoReflect added in v1.40.7

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

func (*RunPeerPluginResponse) Reset added in v1.40.7

func (x *RunPeerPluginResponse) Reset()

func (*RunPeerPluginResponse) String added in v1.40.7

func (x *RunPeerPluginResponse) String() string

type SendAnalyticsRequest added in v1.37.4

type SendAnalyticsRequest struct {
	EventName  string `protobuf:"bytes,1,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"`
	EventValue string `protobuf:"bytes,2,opt,name=event_value,json=eventValue,proto3" json:"event_value,omitempty"`
	// contains filtered or unexported fields
}

func (*SendAnalyticsRequest) Descriptor deprecated added in v1.37.4

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

Deprecated: Use SendAnalyticsRequest.ProtoReflect.Descriptor instead.

func (*SendAnalyticsRequest) GetEventName added in v1.37.4

func (x *SendAnalyticsRequest) GetEventName() string

func (*SendAnalyticsRequest) GetEventValue added in v1.37.4

func (x *SendAnalyticsRequest) GetEventValue() string

func (*SendAnalyticsRequest) ProtoMessage added in v1.37.4

func (*SendAnalyticsRequest) ProtoMessage()

func (*SendAnalyticsRequest) ProtoReflect added in v1.37.4

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

func (*SendAnalyticsRequest) Reset added in v1.37.4

func (x *SendAnalyticsRequest) Reset()

func (*SendAnalyticsRequest) String added in v1.37.4

func (x *SendAnalyticsRequest) String() string

type SendAnalyticsResponse added in v1.37.4

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

func (*SendAnalyticsResponse) Descriptor deprecated added in v1.37.4

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

Deprecated: Use SendAnalyticsResponse.ProtoReflect.Descriptor instead.

func (*SendAnalyticsResponse) ProtoMessage added in v1.37.4

func (*SendAnalyticsResponse) ProtoMessage()

func (*SendAnalyticsResponse) ProtoReflect added in v1.37.4

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

func (*SendAnalyticsResponse) Reset added in v1.37.4

func (x *SendAnalyticsResponse) Reset()

func (*SendAnalyticsResponse) String added in v1.37.4

func (x *SendAnalyticsResponse) String() string

type SwitchContextRequest added in v1.50.7

type SwitchContextRequest struct {
	AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Livemode  bool   `protobuf:"varint,2,opt,name=livemode,proto3" json:"livemode,omitempty"`
	// contains filtered or unexported fields
}

func (*SwitchContextRequest) Descriptor deprecated added in v1.50.7

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

Deprecated: Use SwitchContextRequest.ProtoReflect.Descriptor instead.

func (*SwitchContextRequest) GetAccountId added in v1.50.7

func (x *SwitchContextRequest) GetAccountId() string

func (*SwitchContextRequest) GetLivemode added in v1.50.7

func (x *SwitchContextRequest) GetLivemode() bool

func (*SwitchContextRequest) ProtoMessage added in v1.50.7

func (*SwitchContextRequest) ProtoMessage()

func (*SwitchContextRequest) ProtoReflect added in v1.50.7

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

func (*SwitchContextRequest) Reset added in v1.50.7

func (x *SwitchContextRequest) Reset()

func (*SwitchContextRequest) String added in v1.50.7

func (x *SwitchContextRequest) String() string

type SwitchContextResponse added in v1.50.7

type SwitchContextResponse struct {
	AccountId   string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	Livemode    bool   `protobuf:"varint,3,opt,name=livemode,proto3" json:"livemode,omitempty"`
	// switched is false if the user cancelled an interactive picker; in that
	// case the other fields are empty.
	Switched bool `protobuf:"varint,4,opt,name=switched,proto3" json:"switched,omitempty"`
	// contains filtered or unexported fields
}

func (*SwitchContextResponse) Descriptor deprecated added in v1.50.7

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

Deprecated: Use SwitchContextResponse.ProtoReflect.Descriptor instead.

func (*SwitchContextResponse) GetAccountId added in v1.50.7

func (x *SwitchContextResponse) GetAccountId() string

func (*SwitchContextResponse) GetAccountName added in v1.50.7

func (x *SwitchContextResponse) GetAccountName() string

func (*SwitchContextResponse) GetLivemode added in v1.50.7

func (x *SwitchContextResponse) GetLivemode() bool

func (*SwitchContextResponse) GetSwitched added in v1.50.7

func (x *SwitchContextResponse) GetSwitched() bool

func (*SwitchContextResponse) ProtoMessage added in v1.50.7

func (*SwitchContextResponse) ProtoMessage()

func (*SwitchContextResponse) ProtoReflect added in v1.50.7

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

func (*SwitchContextResponse) Reset added in v1.50.7

func (x *SwitchContextResponse) Reset()

func (*SwitchContextResponse) String added in v1.50.7

func (x *SwitchContextResponse) String() string

type TerminalDimensions added in v1.40.3

type TerminalDimensions struct {
	Width  uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*TerminalDimensions) Descriptor deprecated added in v1.40.3

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

Deprecated: Use TerminalDimensions.ProtoReflect.Descriptor instead.

func (*TerminalDimensions) GetHeight added in v1.40.3

func (x *TerminalDimensions) GetHeight() uint32

func (*TerminalDimensions) GetWidth added in v1.40.3

func (x *TerminalDimensions) GetWidth() uint32

func (*TerminalDimensions) ProtoMessage added in v1.40.3

func (*TerminalDimensions) ProtoMessage()

func (*TerminalDimensions) ProtoReflect added in v1.40.3

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

func (*TerminalDimensions) Reset added in v1.40.3

func (x *TerminalDimensions) Reset()

func (*TerminalDimensions) String added in v1.40.3

func (x *TerminalDimensions) String() string

type UnimplementedCoreCLIHelperServer added in v1.37.4

type UnimplementedCoreCLIHelperServer struct{}

UnimplementedCoreCLIHelperServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCoreCLIHelperServer) Echo added in v1.37.4

func (UnimplementedCoreCLIHelperServer) KeychainDeletePassword added in v1.38.0

func (UnimplementedCoreCLIHelperServer) KeychainFindCredentials added in v1.38.0

func (UnimplementedCoreCLIHelperServer) KeychainGetPassword added in v1.38.0

func (UnimplementedCoreCLIHelperServer) KeychainSetPassword added in v1.38.0

func (UnimplementedCoreCLIHelperServer) ResolveCredentials added in v1.50.1

func (UnimplementedCoreCLIHelperServer) ResolveCredentialsForAnyMode added in v1.50.3

func (UnimplementedCoreCLIHelperServer) RunPeerPlugin added in v1.40.7

func (UnimplementedCoreCLIHelperServer) SendAnalytics added in v1.37.4

func (UnimplementedCoreCLIHelperServer) SwitchContext added in v1.50.7

type UnimplementedMainServer

type UnimplementedMainServer struct{}

UnimplementedMainServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMainServer) PostInstall added in v1.50.7

func (UnimplementedMainServer) PreUninstall added in v1.50.7

func (UnimplementedMainServer) RunCommand

type UnsafeCoreCLIHelperServer added in v1.37.4

type UnsafeCoreCLIHelperServer interface {
	// contains filtered or unexported methods
}

UnsafeCoreCLIHelperServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CoreCLIHelperServer will result in compilation errors.

type UnsafeMainServer

type UnsafeMainServer interface {
	// contains filtered or unexported methods
}

UnsafeMainServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MainServer will result in compilation errors.

Jump to

Keyboard shortcuts

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