Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveToFile ¶
Types ¶
type Config ¶
type Config struct { Organization string `yaml:"organization"` OrgUnits []OrgUnitConfig `yaml:"org_units,omitempty"` Users []UserConfig `yaml:"users,omitempty"` Groups []GroupConfig `yaml:"groups,omitempty"` }
func LoadFromFile ¶
func (*Config) ValidateGroups ¶ added in v0.0.6
func (*Config) ValidateOrgUnits ¶ added in v0.0.6
func (*Config) ValidateUsers ¶ added in v0.0.6
type EmployeeConfig ¶ added in v0.0.4
type EmployeeConfig struct { EmployeeID string `yaml:"employee_ID,omitempty"` Department string `yaml:"department,omitempty"` JobTitle string `yaml:"job_title,omitempty"` Type string `yaml:"type,omitempty"` CostCenter string `yaml:"cost_center,omitempty"` ManagerEmail string `yaml:"manager_email,omitempty"` }
type GroupConfig ¶
type GroupConfig struct { Name string `yaml:"name"` Email string `yaml:"email"` Description string `yaml:"description,omitempty"` WhoCanContactOwner string `yaml:"who_can_contact_owner,omitempty"` WhoCanViewMembership string `yaml:"who_can_view_members,omitempty"` WhoCanApproveMembers string `yaml:"who_can_approve_members,omitempty"` WhoCanPostMessage string `yaml:"who_can_post,omitempty"` WhoCanJoin string `yaml:"who_can_join,omitempty"` AllowExternalMembers bool `yaml:"allow_external_members"` IsArchived bool `yaml:"is_archived"` Members []MemberConfig `yaml:"members,omitempty"` }
type LocationConfig ¶ added in v0.0.4
type MemberConfig ¶
type OrgUnitConfig ¶
type UserConfig ¶
type UserConfig struct { FirstName string `yaml:"given_name"` LastName string `yaml:"family_name"` PrimaryEmail string `yaml:"primary_email"` SecondaryEmail string `yaml:"secondary_email,omitempty"` Aliases []string `yaml:"aliases,omitempty"` Phones []string `yaml:"phones,omitempty"` RecoveryPhone string `yaml:"recovery_phone,omitempty"` RecoveryEmail string `yaml:"recovery_email,omitempty"` OrgUnitPath string `yaml:"org_unit_path,omitempty"` Licenses []string `yaml:"licenses,omitempty"` Employee EmployeeConfig `yaml:"employee_info,omitempty"` Location LocationConfig `yaml:"location,omitempty"` Address string `yaml:"addresses,omitempty"` }
Click to show internal directories.
Click to hide internal directories.