Documentation ¶
Index ¶
- Constants
- Variables
- func FindNamespaceForAccount(ctx context.Context, k8sCli client.Client, accountName string) (*corev1.Namespace, error)
- func PatchForErrorFromAgent(errMsg string, opts PatchOpts) repos.Document
- func PatchForMarkDeletion(opts ...PatchOpts) repos.Document
- func PatchForSyncFromAgent(res ResourceForSyncFromAgent, recordVersion int, status types.ResourceStatus, ...) repos.Document
- func PatchForUpdate(ctx ResourceUpdateContext, res ResourceForSync, opts ...PatchOpts) repos.Document
- func PrintBuildInfo()
- func PrintKloudliteBanner()
- func PrintReadyBanner()
- func PrintReadyBanner2(readyIn time.Duration)
- func ReceiveFromAgentSubjectName(args ReceiveFromAgentArgs, receiver MessageReceiver, ev platformEvent) string
- func ReceiveFromAgentSubjectPrefix(accountName string, clusterName string) string
- func SendToAgentSubjectName(accountName string, clusterName string, gvk string, namespace string, ...) string
- func SendToAgentSubjectPrefix(accountName string, clusterName string) string
- type AuthSession
- type CreatedOrUpdatedBy
- type EncodedValue
- type Json
- type MessageReceiver
- type MetadataInResolver
- type MetadataResolver
- func (*MetadataResolver) Annotations(ctx context.Context, obj *v1.ObjectMeta) (map[string]interface{}, error)
- func (*MetadataResolver) CreationTimestamp(ctx context.Context, obj *v1.ObjectMeta) (string, error)
- func (*MetadataResolver) DeletionTimestamp(ctx context.Context, obj *v1.ObjectMeta) (*string, error)
- func (*MetadataResolver) Labels(ctx context.Context, obj *v1.ObjectMeta) (map[string]interface{}, error)
- type PatchInResolver
- type PatchOpts
- type PatchResolver
- type ReceiveFromAgentArgs
- type ResourceForSync
- type ResourceForSyncFromAgent
- type ResourceMetadata
- type ResourceUpdateContext
- type StatusResolver
- type SyncStatusResolver
- func (*SyncStatusResolver) Action(ctx context.Context, obj *t.SyncStatus) (t.SyncAction, error)
- func (*SyncStatusResolver) LastSyncedAt(ctx context.Context, obj *t.SyncStatus) (*string, error)
- func (*SyncStatusResolver) State(ctx context.Context, obj *t.SyncStatus) (t.SyncState, error)
- func (*SyncStatusResolver) SyncScheduledAt(ctx context.Context, obj *t.SyncStatus) (string, error)
- type ValidationError
Constants ¶
View Source
const ( GitWebhookTopicName topicName = "events.webhooks.git" AuditEventLogTopicName topicName = "events.audit.event-log" NotificationTopicName topicName = "events.notification" ImageRegistryHookTopicName topicName = "events.webhooks.image" ImageUpdateRegistryHookTopicName topicName = "events.webhooks.image-update" )
View Source
const ( EventErrorOnApply platformEvent = "error-on-apply" EventResourceUpdate platformEvent = "resource-update" )
View Source
const ( CreatedByResourceSyncUsername string = "created-by-resource-sync-user-name" CreatedByResourceSyncUserEmail string = "created-by-resource-sync-user-email" CreatedByResourceSyncUserId string = "created-by-resource-sync-user-id" )
View Source
const KloudliteBanner = `` /* 1845-byte string literal not displayed */
View Source
const KloudliteReadyBanner = `` /* 1897-byte string literal not displayed */
Variables ¶
View Source
var BuiltAt string
View Source
var CreatedOrUpdatedByKloudlite = CreatedOrUpdatedBy{ UserId: repos.ID(""), UserName: "kloudlite", UserEmail: "support@kloudlite.io", }
View Source
var CreatedOrUpdatedByResourceSync = CreatedOrUpdatedBy{ UserId: repos.ID(CreatedByResourceSyncUserId), UserName: CreatedByResourceSyncUsername, UserEmail: CreatedByResourceSyncUserEmail, }
Functions ¶
func FindNamespaceForAccount ¶
func PatchForErrorFromAgent ¶
func PatchForMarkDeletion ¶
func PatchForSyncFromAgent ¶
func PatchForSyncFromAgent( res ResourceForSyncFromAgent, recordVersion int, status types.ResourceStatus, opts PatchOpts, ) repos.Document
func PatchForUpdate ¶
func PatchForUpdate( ctx ResourceUpdateContext, res ResourceForSync, opts ...PatchOpts, ) repos.Document
func PrintBuildInfo ¶
func PrintBuildInfo()
func PrintKloudliteBanner ¶
func PrintKloudliteBanner()
func PrintReadyBanner ¶
func PrintReadyBanner()
func PrintReadyBanner2 ¶
func ReceiveFromAgentSubjectName ¶
func ReceiveFromAgentSubjectName(args ReceiveFromAgentArgs, receiver MessageReceiver, ev platformEvent) string
func SendToAgentSubjectName ¶
Types ¶
type AuthSession ¶
type CreatedOrUpdatedBy ¶
type EncodedValue ¶
type MessageReceiver ¶
type MessageReceiver string
const ( ConsoleReceiver MessageReceiver = "kloudlite-console" InfraReceiver MessageReceiver = "kloudlite-infra" ContainerRegistryReceiver MessageReceiver = "kloudlite-cr" )
type MetadataInResolver ¶
type MetadataInResolver struct{}
func (*MetadataInResolver) Annotations ¶
func (*MetadataInResolver) Annotations(ctx context.Context, obj *v1.ObjectMeta, data map[string]interface{}) error
func (*MetadataInResolver) Labels ¶
func (*MetadataInResolver) Labels(ctx context.Context, obj *v1.ObjectMeta, data map[string]interface{}) error
type MetadataResolver ¶
type MetadataResolver struct{}
func (*MetadataResolver) Annotations ¶
func (*MetadataResolver) Annotations(ctx context.Context, obj *v1.ObjectMeta) (map[string]interface{}, error)
func (*MetadataResolver) CreationTimestamp ¶
func (*MetadataResolver) CreationTimestamp(ctx context.Context, obj *v1.ObjectMeta) (string, error)
func (*MetadataResolver) DeletionTimestamp ¶
func (*MetadataResolver) DeletionTimestamp(ctx context.Context, obj *v1.ObjectMeta) (*string, error)
func (*MetadataResolver) Labels ¶
func (*MetadataResolver) Labels(ctx context.Context, obj *v1.ObjectMeta) (map[string]interface{}, error)
type PatchInResolver ¶
type PatchInResolver struct{}
func (*PatchInResolver) Value ¶
func (r *PatchInResolver) Value(ctx context.Context, obj *json_patch.PatchOperation, data interface{}) error
type PatchResolver ¶
type PatchResolver struct{}
func (*PatchResolver) Value ¶
func (r *PatchResolver) Value(ctx context.Context, obj *json_patch.PatchOperation) (interface{}, error)
type ReceiveFromAgentArgs ¶
type ResourceForSync ¶
type ResourceMetadata ¶
type ResourceMetadata struct { DisplayName string `json:"displayName"` CreatedBy CreatedOrUpdatedBy `json:"createdBy" graphql:"noinput"` LastUpdatedBy CreatedOrUpdatedBy `json:"lastUpdatedBy" graphql:"noinput"` }
type ResourceUpdateContext ¶
type StatusResolver ¶
type StatusResolver struct{}
func (*StatusResolver) DisplayVars ¶
type SyncStatusResolver ¶
type SyncStatusResolver struct{}
func (*SyncStatusResolver) Action ¶
func (*SyncStatusResolver) Action(ctx context.Context, obj *t.SyncStatus) (t.SyncAction, error)
func (*SyncStatusResolver) LastSyncedAt ¶
func (*SyncStatusResolver) LastSyncedAt(ctx context.Context, obj *t.SyncStatus) (*string, error)
func (*SyncStatusResolver) State ¶
func (*SyncStatusResolver) State(ctx context.Context, obj *t.SyncStatus) (t.SyncState, error)
func (*SyncStatusResolver) SyncScheduledAt ¶
func (*SyncStatusResolver) SyncScheduledAt(ctx context.Context, obj *t.SyncStatus) (string, error)
type ValidationError ¶
func (ValidationError) Error ¶
func (v ValidationError) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.