Versions in this module Expand all Collapse all v0 v0.3.0 Jun 20, 2025 Changes in this version + type AccessToken struct + ExpiresAt time.Time + RefreshToken string + Token string + TokenType string + func (at *AccessToken) GetAuthorizationHeader() string + func (at *AccessToken) IsExpired() bool + type Application struct + CreatedAt time.Time + Description string + EnvCount string + EnvTypes []EnvType + ID string + Metadata map[string]any + Name string + OrgID string + UpdatedAt time.Time + func NewApplication(name, description string, metadata map[string]any) *Application + type AuthResult struct + AccessToken *AccessToken + Error error + Success bool + type EnvType struct + AppID string + Color string + CreatedAt time.Time + ID string + IsDefault bool + IsProtected bool + Name string + OrgID string + UpdatedAt time.Time + func NewEnvType(appID, name string, isDefault, isProtected bool, color string) *EnvType + type EnvironmentSync struct + LastSynced time.Time + Local map[string]string + Remote map[string]EnvironmentVariable + ToAdd []EnvironmentVariable + ToDelete []string + ToUpdate []EnvironmentVariable + func NewEnvironmentSync(local map[string]string, remote map[string]EnvironmentVariable) *EnvironmentSync + func (es *EnvironmentSync) CalculateDiff() + func (es *EnvironmentSync) GetSummary() SyncSummary + func (es *EnvironmentSync) HasChanges() bool + func (es *EnvironmentSync) ToMap() map[string]string + type EnvironmentVariable struct + Key string + Value string + type LoginCredentials struct + AuthDomain string + ClientId string + DeviceCode string + ExpiresIn int + Interval int + UserCode string + VerificationUri string + func (lc *LoginCredentials) GetExpirationTime() time.Time + func (lc *LoginCredentials) GetInterval() time.Duration + func (lc *LoginCredentials) GetUserCode() string + func (lc *LoginCredentials) GetVerificationUri() string + func (lc *LoginCredentials) IsExpired() bool + type SyncConfig struct + AppID string + EnvTypeID string + type SyncSummary struct + AddCount int + DeleteCount int + LastSynced time.Time + UpdateCount int + type UserInfo struct + Email string + Org string + Role string + UserId string v0.2.7 Jun 18, 2025