Documentation ¶
Index ¶
- func GetDefaultTags(config *ackconfig.Config, metadata *acktypes.RuntimeMetaObject) map[string]string
- func IsAdopted(res acktypes.AWSResource) bool
- func IsSynced(res acktypes.AWSResource) bool
- func NewAdoptionReconciler(sc acktypes.ServiceController, log logr.Logger, cfg ackcfg.Config, ...) acktypes.Reconciler
- func NewReconciler(sc acktypes.ServiceController, rmf acktypes.AWSResourceManagerFactory, ...) acktypes.AWSResourceReconciler
- func NewServiceController(svcAlias string, svcAPIGroup string, versionInfo VersionInfo) acktypes.ServiceController
- type Registry
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultTags ¶
func GetDefaultTags( config *ackconfig.Config, metadata *acktypes.RuntimeMetaObject, ) map[string]string
GetDefaultTags provides Default tags (key value pairs) for given resource
func IsAdopted ¶
func IsAdopted(res acktypes.AWSResource) bool
IsAdopted returns true if the supplied AWSResource was created with a non-nil ARN annotation, which indicates that the Kubernetes user who created the CR for the resource expects the ACK service controller to "adopt" a pre-existing resource and bring it under ACK management.
func IsSynced ¶
func IsSynced(res acktypes.AWSResource) bool
IsSynced returns true if the supplied AWSResource's CR and associated backend AWS service API resource are in sync.
func NewAdoptionReconciler ¶ added in v0.1.0
func NewAdoptionReconciler( sc acktypes.ServiceController, log logr.Logger, cfg ackcfg.Config, metrics *ackmetrics.Metrics, ) acktypes.Reconciler
NewAdoptionReconciler returns a new adoptionReconciler object
func NewReconciler ¶
func NewReconciler( sc acktypes.ServiceController, rmf acktypes.AWSResourceManagerFactory, log logr.Logger, cfg ackcfg.Config, metrics *ackmetrics.Metrics, ) acktypes.AWSResourceReconciler
NewReconciler returns a new reconciler object that
func NewServiceController ¶
func NewServiceController( svcAlias string, svcAPIGroup string, versionInfo VersionInfo, ) acktypes.ServiceController
NewServiceController returns a new serviceController instance
Types ¶
type Registry ¶
func (*Registry) GetResourceManagerFactories ¶
func (r *Registry) GetResourceManagerFactories() []types.AWSResourceManagerFactory
GetResourceManagerFactories returns AWSResourceManagerFactories that are registered with the RegistryA
func (*Registry) RegisterResourceManagerFactory ¶
func (r *Registry) RegisterResourceManagerFactory(f types.AWSResourceManagerFactory)
RegisterResourceManagerFactory registers a resource manager factory with the package's registry
type VersionInfo ¶
type VersionInfo struct { // GitCommit is the SHA1 commit for the service controller's code GitCommit string // GitVersion is the latest Git tag from the service controller's code GitVersion string // BuildDate is a timestamp of when the code was built BuildDate string }
VersionInfo contains information about the version of the runtime and service controller in use