Documentation ¶
Index ¶
Constants ¶
View Source
const (
FinalizerServiceDescriptorComposition = voyager.Domain + "/serviceDescriptorComposition"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) Process ¶
func (c *Controller) Process(ctx *ctrl.ProcessContext) (bool, bool, error)
func (*Controller) Run ¶
func (c *Controller) Run(ctx context.Context)
type ControllerConstructor ¶
type ControllerConstructor struct {
FlagConfigFile string
}
func (*ControllerConstructor) AddFlags ¶
func (cc *ControllerConstructor) AddFlags(flagset ctrl.FlagSet)
func (*ControllerConstructor) Describe ¶
func (cc *ControllerConstructor) Describe() ctrl.Descriptor
func (*ControllerConstructor) New ¶
func (cc *ControllerConstructor) New(config *ctrl.Config, cctx *ctrl.Context) (*ctrl.Constructed, error)
type FormationObjectInfo ¶
type FormationObjectInfo struct { // Name is the name of the location descriptor (NOT the name of the location) Name string // Namespace is where the location descriptor should be placed Namespace string // ServiceName is the service creating the location descriptor (==service descriptor Name) ServiceName voyager.ServiceName Location voyager.Location Resources []comp_v1.ServiceDescriptorResource }
Information required to generate the formation object (LocationDescriptor)
type Options ¶
func (*Options) DefaultAndValidate ¶
type ResourceGroupEvalContext ¶
type ResourceGroupEvalContext struct { Location comp_v1.ServiceDescriptorLocation ResourceGroup comp_v1.ServiceDescriptorResourceGroupName }
The current context for the resourceGroup being evaluated/expanded
type SdTransformer ¶
type SdTransformer interface {
CreateFormationObjectDef(sd *comp_v1.ServiceDescriptor) ([]FormationObjectInfo, error)
}
type ServiceDescriptorTransformer ¶
type ServiceDescriptorTransformer struct {
ClusterLocation voyager.ClusterLocation
}
func NewServiceDescriptorTransformer ¶
func NewServiceDescriptorTransformer(location voyager.ClusterLocation) *ServiceDescriptorTransformer
Constructor for the ServiceDescriptorTransformer
func (*ServiceDescriptorTransformer) CreateFormationObjectDef ¶
func (t *ServiceDescriptorTransformer) CreateFormationObjectDef(sd *comp_v1.ServiceDescriptor) ([]FormationObjectInfo, error)
Given a service descriptor, returns a list of formation objects definitions per location. If there are no resources at the location, it will still return a formation object definition, but this definition will only contain location information, and not resource information
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This package has the automatically generated clientset.
|
This package has the automatically generated clientset. |
fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
typed/composition/v1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
typed/composition/v1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |
Click to show internal directories.
Click to hide internal directories.