Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyBridgeLocalTime = "bridge-local-time" KeyBridgeToken = "bridge-token" )
Variables ¶
This section is empty.
Functions ¶
func ManagedInstallationReconciler ¶
ManagedInstallationReconciler creates an InstallationReconciler and adds it to m.
Types ¶
type AuthObject ¶
type Client ¶
func NewClient ¶
NewClient creates a Client with backoff settings that amount to ~10 attempts over ~2 minutes. A default is used when apiURL is not an acceptable URL.
func (*Client) CreateInstallation ¶
func (c *Client) CreateInstallation(ctx context.Context) (Installation, error)
type Installation ¶
type Installation struct { ID string `json:"id"` AuthObject AuthObject `json:"auth_object"` }
type InstallationReconciler ¶
type InstallationReconciler struct { Owner client.FieldOwner Reader interface { Get(context.Context, client.ObjectKey, client.Object) error } Writer interface { Patch(context.Context, client.Object, client.Patch, ...client.PatchOption) error } // SecretRef is the name of the corev1.Secret in which to store Bridge tokens. SecretRef client.ObjectKey // NewClient is called each time a new Client is needed. NewClient func() *Client }
Click to show internal directories.
Click to hide internal directories.