applicationset

package
v2.10.7 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 10

Documentation

Overview

Package applicationset is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthApplicationset        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApplicationset          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupApplicationset = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterApplicationSetServiceHandler

func RegisterApplicationSetServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterApplicationSetServiceHandler registers the http handlers for service ApplicationSetService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterApplicationSetServiceHandlerClient

func RegisterApplicationSetServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApplicationSetServiceClient) error

RegisterApplicationSetServiceHandlerClient registers the http handlers for service ApplicationSetService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ApplicationSetServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ApplicationSetServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ApplicationSetServiceClient" to call the correct interceptors.

func RegisterApplicationSetServiceHandlerFromEndpoint

func RegisterApplicationSetServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterApplicationSetServiceHandlerFromEndpoint is same as RegisterApplicationSetServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterApplicationSetServiceHandlerServer

func RegisterApplicationSetServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ApplicationSetServiceServer) error

RegisterApplicationSetServiceHandlerServer registers the http handlers for service ApplicationSetService to "mux". UnaryRPC :call ApplicationSetServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterApplicationSetServiceHandlerFromEndpoint instead.

func RegisterApplicationSetServiceServer

func RegisterApplicationSetServiceServer(s *grpc.Server, srv ApplicationSetServiceServer)

Types

type ApplicationSetCreateRequest

type ApplicationSetCreateRequest struct {
	Applicationset       *v1alpha1.ApplicationSet `protobuf:"bytes,1,opt,name=applicationset,proto3" json:"applicationset,omitempty"`
	Upsert               bool                     `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*ApplicationSetCreateRequest) Descriptor

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

func (*ApplicationSetCreateRequest) GetApplicationset

func (m *ApplicationSetCreateRequest) GetApplicationset() *v1alpha1.ApplicationSet

func (*ApplicationSetCreateRequest) GetUpsert

func (m *ApplicationSetCreateRequest) GetUpsert() bool

func (*ApplicationSetCreateRequest) Marshal

func (m *ApplicationSetCreateRequest) Marshal() (dAtA []byte, err error)

func (*ApplicationSetCreateRequest) MarshalTo

func (m *ApplicationSetCreateRequest) MarshalTo(dAtA []byte) (int, error)

func (*ApplicationSetCreateRequest) MarshalToSizedBuffer

func (m *ApplicationSetCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ApplicationSetCreateRequest) ProtoMessage

func (*ApplicationSetCreateRequest) ProtoMessage()

func (*ApplicationSetCreateRequest) Reset

func (m *ApplicationSetCreateRequest) Reset()

func (*ApplicationSetCreateRequest) Size

func (m *ApplicationSetCreateRequest) Size() (n int)

func (*ApplicationSetCreateRequest) String

func (m *ApplicationSetCreateRequest) String() string

func (*ApplicationSetCreateRequest) Unmarshal

func (m *ApplicationSetCreateRequest) Unmarshal(dAtA []byte) error

func (*ApplicationSetCreateRequest) XXX_DiscardUnknown

func (m *ApplicationSetCreateRequest) XXX_DiscardUnknown()

func (*ApplicationSetCreateRequest) XXX_Marshal

func (m *ApplicationSetCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApplicationSetCreateRequest) XXX_Merge

func (m *ApplicationSetCreateRequest) XXX_Merge(src proto.Message)

func (*ApplicationSetCreateRequest) XXX_Size

func (m *ApplicationSetCreateRequest) XXX_Size() int

func (*ApplicationSetCreateRequest) XXX_Unmarshal

func (m *ApplicationSetCreateRequest) XXX_Unmarshal(b []byte) error

type ApplicationSetDeleteRequest

type ApplicationSetDeleteRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The application set namespace. Default empty is argocd control plane namespace
	AppsetNamespace      string   `protobuf:"bytes,2,opt,name=appsetNamespace,proto3" json:"appsetNamespace,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ApplicationSetDeleteRequest) Descriptor

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

func (*ApplicationSetDeleteRequest) GetAppsetNamespace added in v2.8.0

func (m *ApplicationSetDeleteRequest) GetAppsetNamespace() string

func (*ApplicationSetDeleteRequest) GetName

func (m *ApplicationSetDeleteRequest) GetName() string

func (*ApplicationSetDeleteRequest) Marshal

func (m *ApplicationSetDeleteRequest) Marshal() (dAtA []byte, err error)

func (*ApplicationSetDeleteRequest) MarshalTo

func (m *ApplicationSetDeleteRequest) MarshalTo(dAtA []byte) (int, error)

func (*ApplicationSetDeleteRequest) MarshalToSizedBuffer

func (m *ApplicationSetDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ApplicationSetDeleteRequest) ProtoMessage

func (*ApplicationSetDeleteRequest) ProtoMessage()

func (*ApplicationSetDeleteRequest) Reset

func (m *ApplicationSetDeleteRequest) Reset()

func (*ApplicationSetDeleteRequest) Size

func (m *ApplicationSetDeleteRequest) Size() (n int)

func (*ApplicationSetDeleteRequest) String

func (m *ApplicationSetDeleteRequest) String() string

func (*ApplicationSetDeleteRequest) Unmarshal

func (m *ApplicationSetDeleteRequest) Unmarshal(dAtA []byte) error

func (*ApplicationSetDeleteRequest) XXX_DiscardUnknown

func (m *ApplicationSetDeleteRequest) XXX_DiscardUnknown()

func (*ApplicationSetDeleteRequest) XXX_Marshal

func (m *ApplicationSetDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApplicationSetDeleteRequest) XXX_Merge

func (m *ApplicationSetDeleteRequest) XXX_Merge(src proto.Message)

func (*ApplicationSetDeleteRequest) XXX_Size

func (m *ApplicationSetDeleteRequest) XXX_Size() int

func (*ApplicationSetDeleteRequest) XXX_Unmarshal

func (m *ApplicationSetDeleteRequest) XXX_Unmarshal(b []byte) error

type ApplicationSetGetQuery

type ApplicationSetGetQuery struct {
	// the applicationsets's name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The application set namespace. Default empty is argocd control plane namespace
	AppsetNamespace      string   `protobuf:"bytes,2,opt,name=appsetNamespace,proto3" json:"appsetNamespace,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ApplicationSetGetQuery is a query for applicationset resources

func (*ApplicationSetGetQuery) Descriptor

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

func (*ApplicationSetGetQuery) GetAppsetNamespace added in v2.8.0

func (m *ApplicationSetGetQuery) GetAppsetNamespace() string

func (*ApplicationSetGetQuery) GetName

func (m *ApplicationSetGetQuery) GetName() string

func (*ApplicationSetGetQuery) Marshal

func (m *ApplicationSetGetQuery) Marshal() (dAtA []byte, err error)

func (*ApplicationSetGetQuery) MarshalTo

func (m *ApplicationSetGetQuery) MarshalTo(dAtA []byte) (int, error)

func (*ApplicationSetGetQuery) MarshalToSizedBuffer

func (m *ApplicationSetGetQuery) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ApplicationSetGetQuery) ProtoMessage

func (*ApplicationSetGetQuery) ProtoMessage()

func (*ApplicationSetGetQuery) Reset

func (m *ApplicationSetGetQuery) Reset()

func (*ApplicationSetGetQuery) Size

func (m *ApplicationSetGetQuery) Size() (n int)

func (*ApplicationSetGetQuery) String

func (m *ApplicationSetGetQuery) String() string

func (*ApplicationSetGetQuery) Unmarshal

func (m *ApplicationSetGetQuery) Unmarshal(dAtA []byte) error

func (*ApplicationSetGetQuery) XXX_DiscardUnknown

func (m *ApplicationSetGetQuery) XXX_DiscardUnknown()

func (*ApplicationSetGetQuery) XXX_Marshal

func (m *ApplicationSetGetQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApplicationSetGetQuery) XXX_Merge

func (m *ApplicationSetGetQuery) XXX_Merge(src proto.Message)

func (*ApplicationSetGetQuery) XXX_Size

func (m *ApplicationSetGetQuery) XXX_Size() int

func (*ApplicationSetGetQuery) XXX_Unmarshal

func (m *ApplicationSetGetQuery) XXX_Unmarshal(b []byte) error

type ApplicationSetListQuery

type ApplicationSetListQuery struct {
	// the project names to restrict returned list applicationsets
	Projects []string `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
	// the selector to restrict returned list to applications only with matched labels
	Selector string `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"`
	// The application set namespace. Default empty is argocd control plane namespace
	AppsetNamespace      string   `protobuf:"bytes,3,opt,name=appsetNamespace,proto3" json:"appsetNamespace,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ApplicationSetListQuery) Descriptor

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

func (*ApplicationSetListQuery) GetAppsetNamespace added in v2.8.0

func (m *ApplicationSetListQuery) GetAppsetNamespace() string

func (*ApplicationSetListQuery) GetProjects

func (m *ApplicationSetListQuery) GetProjects() []string

func (*ApplicationSetListQuery) GetSelector

func (m *ApplicationSetListQuery) GetSelector() string

func (*ApplicationSetListQuery) Marshal

func (m *ApplicationSetListQuery) Marshal() (dAtA []byte, err error)

func (*ApplicationSetListQuery) MarshalTo

func (m *ApplicationSetListQuery) MarshalTo(dAtA []byte) (int, error)

func (*ApplicationSetListQuery) MarshalToSizedBuffer

func (m *ApplicationSetListQuery) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ApplicationSetListQuery) ProtoMessage

func (*ApplicationSetListQuery) ProtoMessage()

func (*ApplicationSetListQuery) Reset

func (m *ApplicationSetListQuery) Reset()

func (*ApplicationSetListQuery) Size

func (m *ApplicationSetListQuery) Size() (n int)

func (*ApplicationSetListQuery) String

func (m *ApplicationSetListQuery) String() string

func (*ApplicationSetListQuery) Unmarshal

func (m *ApplicationSetListQuery) Unmarshal(dAtA []byte) error

func (*ApplicationSetListQuery) XXX_DiscardUnknown

func (m *ApplicationSetListQuery) XXX_DiscardUnknown()

func (*ApplicationSetListQuery) XXX_Marshal

func (m *ApplicationSetListQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApplicationSetListQuery) XXX_Merge

func (m *ApplicationSetListQuery) XXX_Merge(src proto.Message)

func (*ApplicationSetListQuery) XXX_Size

func (m *ApplicationSetListQuery) XXX_Size() int

func (*ApplicationSetListQuery) XXX_Unmarshal

func (m *ApplicationSetListQuery) XXX_Unmarshal(b []byte) error

type ApplicationSetResponse

type ApplicationSetResponse struct {
	Project              string                   `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	Applicationset       *v1alpha1.ApplicationSet `protobuf:"bytes,2,opt,name=applicationset,proto3" json:"applicationset,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*ApplicationSetResponse) Descriptor

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

func (*ApplicationSetResponse) GetApplicationset

func (m *ApplicationSetResponse) GetApplicationset() *v1alpha1.ApplicationSet

func (*ApplicationSetResponse) GetProject

func (m *ApplicationSetResponse) GetProject() string

func (*ApplicationSetResponse) Marshal

func (m *ApplicationSetResponse) Marshal() (dAtA []byte, err error)

func (*ApplicationSetResponse) MarshalTo

func (m *ApplicationSetResponse) MarshalTo(dAtA []byte) (int, error)

func (*ApplicationSetResponse) MarshalToSizedBuffer

func (m *ApplicationSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ApplicationSetResponse) ProtoMessage

func (*ApplicationSetResponse) ProtoMessage()

func (*ApplicationSetResponse) Reset

func (m *ApplicationSetResponse) Reset()

func (*ApplicationSetResponse) Size

func (m *ApplicationSetResponse) Size() (n int)

func (*ApplicationSetResponse) String

func (m *ApplicationSetResponse) String() string

func (*ApplicationSetResponse) Unmarshal

func (m *ApplicationSetResponse) Unmarshal(dAtA []byte) error

func (*ApplicationSetResponse) XXX_DiscardUnknown

func (m *ApplicationSetResponse) XXX_DiscardUnknown()

func (*ApplicationSetResponse) XXX_Marshal

func (m *ApplicationSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApplicationSetResponse) XXX_Merge

func (m *ApplicationSetResponse) XXX_Merge(src proto.Message)

func (*ApplicationSetResponse) XXX_Size

func (m *ApplicationSetResponse) XXX_Size() int

func (*ApplicationSetResponse) XXX_Unmarshal

func (m *ApplicationSetResponse) XXX_Unmarshal(b []byte) error

type ApplicationSetServiceClient

type ApplicationSetServiceClient interface {
	// Get returns an applicationset by name
	Get(ctx context.Context, in *ApplicationSetGetQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationSet, error)
	//List returns list of applicationset
	List(ctx context.Context, in *ApplicationSetListQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationSetList, error)
	//Create creates an applicationset
	Create(ctx context.Context, in *ApplicationSetCreateRequest, opts ...grpc.CallOption) (*v1alpha1.ApplicationSet, error)
	// Delete deletes an application set
	Delete(ctx context.Context, in *ApplicationSetDeleteRequest, opts ...grpc.CallOption) (*ApplicationSetResponse, error)
}

ApplicationSetServiceClient is the client API for ApplicationSetService service.

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

func NewApplicationSetServiceClient

func NewApplicationSetServiceClient(cc *grpc.ClientConn) ApplicationSetServiceClient

type ApplicationSetServiceServer

type ApplicationSetServiceServer interface {
	// Get returns an applicationset by name
	Get(context.Context, *ApplicationSetGetQuery) (*v1alpha1.ApplicationSet, error)
	//List returns list of applicationset
	List(context.Context, *ApplicationSetListQuery) (*v1alpha1.ApplicationSetList, error)
	//Create creates an applicationset
	Create(context.Context, *ApplicationSetCreateRequest) (*v1alpha1.ApplicationSet, error)
	// Delete deletes an application set
	Delete(context.Context, *ApplicationSetDeleteRequest) (*ApplicationSetResponse, error)
}

ApplicationSetServiceServer is the server API for ApplicationSetService service.

type UnimplementedApplicationSetServiceServer

type UnimplementedApplicationSetServiceServer struct {
}

UnimplementedApplicationSetServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedApplicationSetServiceServer) Create

func (*UnimplementedApplicationSetServiceServer) Delete

func (*UnimplementedApplicationSetServiceServer) Get

func (*UnimplementedApplicationSetServiceServer) List

Jump to

Keyboard shortcuts

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