server

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentType   = "Content-Type"
	ContentLength = "Content-Length"
)
View Source
const (
	// MaxGRPCMessageSize contains max grpc message size
	MaxGRPCMessageSize = 100 * 1024 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgoRolloutsServer

type ArgoRolloutsServer struct {
	Options ServerOptions
	// contains filtered or unexported fields
}

ArgoRolloutsServer holds information about rollouts server

func NewServer

func NewServer(o ServerOptions) *ArgoRolloutsServer

NewServer creates an ArgoRolloutsServer

func (*ArgoRolloutsServer) AbortRollout

func (*ArgoRolloutsServer) GetNamespace

func (s *ArgoRolloutsServer) GetNamespace(ctx context.Context, e *empty.Empty) (*rollout.NamespaceInfo, error)

func (*ArgoRolloutsServer) GetRolloutInfo

GetRolloutInfo returns a rollout

func (*ArgoRolloutsServer) ListReplicaSetsAndPods

func (s *ArgoRolloutsServer) ListReplicaSetsAndPods(ctx context.Context, namespace string) ([]*appsv1.ReplicaSet, []*corev1.Pod, error)

func (*ArgoRolloutsServer) ListRolloutInfos

ListRolloutInfos returns a list of all rollouts

func (*ArgoRolloutsServer) PromoteRollout

func (*ArgoRolloutsServer) RestartRollout

func (*ArgoRolloutsServer) RetryRollout

func (*ArgoRolloutsServer) RolloutToRolloutInfo

func (s *ArgoRolloutsServer) RolloutToRolloutInfo(ro *v1alpha1.Rollout) (*rollout.RolloutInfo, error)

func (*ArgoRolloutsServer) Run

func (s *ArgoRolloutsServer) Run(ctx context.Context, port int, dashboard bool)

Run starts the server

func (*ArgoRolloutsServer) SetRolloutImage

func (*ArgoRolloutsServer) UndoRollout

func (*ArgoRolloutsServer) Version

func (*ArgoRolloutsServer) WatchRolloutInfo

WatchRolloutInfo returns a rollout stream

func (*ArgoRolloutsServer) WatchRolloutInfos

WatchRolloutInfos returns a stream of all rollouts

type ServerOptions

type ServerOptions struct {
	KubeClientset     kubernetes.Interface
	RolloutsClientset rolloutclientset.Interface
	DynamicClientset  dynamic.Interface
	Namespace         string
	RootPath          string
}

Jump to

Keyboard shortcuts

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