Versions in this module Expand all Collapse all v1 v1.0.0 Dec 12, 2018 Changes in this version + const ArchitectureEndpointPrefix + const BmcBootCdrom + const BmcBootDisk + const BmcBootPxe + const BmcBootSuffix + const BmcPowerBios + const BmcPowerCycle + const BmcPowerOff + const BmcPowerOn + const BmcPowerSoft + const BmcPowerState + const BmcPowerSuffix + const DomainEndpointPrefix + const EnvironmentEndpointPrefix + const FOREMAN_API_URL_PREFIX + const FOREMAN_API_VERSION + const HostEndpointPrefix + const HostgroupEndpointPrefix + const MediaEndpointPrefix + const ModelEndpointPrefix + const OperatingSystemEndpointPrefix + const PartitionTableEndpointPrefix + const ProvisioningTemplateEndpointPrefix + const SmartProxyEndpointPrefix + const SubnetEndpointPrefix + const TemplateKindEndpointPrefix + type BMCBoot struct + Boot struct{ ... } + Device string + type BMCPower struct + Power bool + PowerAction string + type Client struct + func NewClient(s Server, c ClientCredentials, cfg ClientConfig) *Client + func (c *Client) CreateArchitecture(a *ForemanArchitecture) (*ForemanArchitecture, error) + func (c *Client) CreateDomain(d *ForemanDomain) (*ForemanDomain, error) + func (c *Client) CreateEnvironment(e *ForemanEnvironment) (*ForemanEnvironment, error) + func (c *Client) CreateHost(h *ForemanHost, retryCount int) (*ForemanHost, error) + func (c *Client) CreateHostgroup(h *ForemanHostgroup) (*ForemanHostgroup, error) + func (c *Client) CreateMedia(m *ForemanMedia) (*ForemanMedia, error) + func (c *Client) CreateModel(m *ForemanModel) (*ForemanModel, error) + func (c *Client) CreateOperatingSystem(o *ForemanOperatingSystem) (*ForemanOperatingSystem, error) + func (c *Client) CreatePartitionTable(t *ForemanPartitionTable) (*ForemanPartitionTable, error) + func (c *Client) CreateProvisioningTemplate(t *ForemanProvisioningTemplate) (*ForemanProvisioningTemplate, error) + func (c *Client) CreateSmartProxy(s *ForemanSmartProxy) (*ForemanSmartProxy, error) + func (c *Client) CreateSubnet(s *ForemanSubnet) (*ForemanSubnet, error) + func (c *Client) DeleteArchitecture(id int) error + func (c *Client) DeleteDomain(id int) error + func (c *Client) DeleteEnvironment(id int) error + func (c *Client) DeleteHost(id int) error + func (c *Client) DeleteHostgroup(id int) error + func (c *Client) DeleteMedia(id int) error + func (c *Client) DeleteModel(id int) error + func (c *Client) DeleteOperatingSystem(id int) error + func (c *Client) DeletePartitionTable(id int) error + func (c *Client) DeleteProvisioningTemplate(id int) error + func (c *Client) DeleteSmartProxy(id int) error + func (c *Client) DeleteSubnet(id int) error + func (c *Client) QueryArchitecture(a *ForemanArchitecture) (QueryResponse, error) + func (c *Client) QueryDomain(d *ForemanDomain) (QueryResponse, error) + func (c *Client) QueryEnvironment(e *ForemanEnvironment) (QueryResponse, error) + func (c *Client) QueryHostgroup(h *ForemanHostgroup) (QueryResponse, error) + func (c *Client) QueryMedia(m *ForemanMedia) (QueryResponse, error) + func (c *Client) QueryModel(m *ForemanModel) (QueryResponse, error) + func (c *Client) QueryOperatingSystem(o *ForemanOperatingSystem) (QueryResponse, error) + func (c *Client) QueryPartitionTable(t *ForemanPartitionTable) (QueryResponse, error) + func (c *Client) QueryProvisioningTemplate(t *ForemanProvisioningTemplate) (QueryResponse, error) + func (c *Client) QuerySmartProxy(s *ForemanSmartProxy) (QueryResponse, error) + func (c *Client) QuerySubnet(s *ForemanSubnet) (QueryResponse, error) + func (c *Client) QueryTemplateKind(t *ForemanTemplateKind) (QueryResponse, error) + func (c *Client) ReadArchitecture(id int) (*ForemanArchitecture, error) + func (c *Client) ReadDomain(id int) (*ForemanDomain, error) + func (c *Client) ReadEnvironment(id int) (*ForemanEnvironment, error) + func (c *Client) ReadHost(id int) (*ForemanHost, error) + func (c *Client) ReadHostgroup(id int) (*ForemanHostgroup, error) + func (c *Client) ReadMedia(id int) (*ForemanMedia, error) + func (c *Client) ReadModel(id int) (*ForemanModel, error) + func (c *Client) ReadOperatingSystem(id int) (*ForemanOperatingSystem, error) + func (c *Client) ReadPartitionTable(id int) (*ForemanPartitionTable, error) + func (c *Client) ReadProvisioningTemplate(id int) (*ForemanProvisioningTemplate, error) + func (c *Client) ReadSmartProxy(id int) (*ForemanSmartProxy, error) + func (c *Client) ReadSubnet(id int) (*ForemanSubnet, error) + func (c *Client) ReadTemplateKind(id int) (*ForemanTemplateKind, error) + func (c *Client) SendBMCCommand(h *ForemanHost, cmd interface{}, retryCount int) error + func (c *Client) UpdateArchitecture(a *ForemanArchitecture) (*ForemanArchitecture, error) + func (c *Client) UpdateDomain(d *ForemanDomain) (*ForemanDomain, error) + func (c *Client) UpdateEnvironment(e *ForemanEnvironment) (*ForemanEnvironment, error) + func (c *Client) UpdateHost(h *ForemanHost, retryCount int) (*ForemanHost, error) + func (c *Client) UpdateHostgroup(h *ForemanHostgroup) (*ForemanHostgroup, error) + func (c *Client) UpdateMedia(m *ForemanMedia) (*ForemanMedia, error) + func (c *Client) UpdateModel(m *ForemanModel) (*ForemanModel, error) + func (c *Client) UpdateOperatingSystem(o *ForemanOperatingSystem) (*ForemanOperatingSystem, error) + func (c *Client) UpdatePartitionTable(t *ForemanPartitionTable) (*ForemanPartitionTable, error) + func (c *Client) UpdateProvisioningTemplate(t *ForemanProvisioningTemplate) (*ForemanProvisioningTemplate, error) + func (c *Client) UpdateSmartProxy(s *ForemanSmartProxy) (*ForemanSmartProxy, error) + func (c *Client) UpdateSubnet(s *ForemanSubnet) (*ForemanSubnet, error) + func (client *Client) NewRequest(method string, endpoint string, body io.Reader) (*http.Request, error) + func (client *Client) Send(request *http.Request) (int, []byte, error) + func (client *Client) SendAndParse(req *http.Request, obj interface{}) error + type ClientConfig struct + TLSInsecureEnabled bool + type ClientCredentials struct + Password string + Username string + type ForemanArchitecture struct + OperatingSystemIds []int + func (fa *ForemanArchitecture) UnmarshalJSON(b []byte) error + type ForemanDomain struct + Fullname string + type ForemanEnvironment struct + type ForemanHost struct + BMCSuccess bool + Build bool + Comment string + DomainId int + EnableBMC bool + EnvironmentId int + HostgroupId int + InterfacesAttributes []ForemanInterfacesAttribute + OperatingSystemId int + func (fh *ForemanHost) UnmarshalJSON(b []byte) error + func (fh ForemanHost) MarshalJSON() ([]byte, error) + type ForemanHostgroup struct + ArchitectureId int + ComputeProfileId int + DomainId int + EnvironmentId int + MediaId int + OperatingSystemId int + ParentId int + PartitionTableId int + PuppetCAProxyId int + PuppetProxyId int + RealmId int + SubnetId int + Title string + func (fh ForemanHostgroup) MarshalJSON() ([]byte, error) + type ForemanInterfacesAttribute struct + Destroy bool + IP string + Id int + Identifier string + MAC string + Managed bool + Name string + Password string + Primary bool + Provider string + Provision bool + SubnetId int + Type string + Username string + Virtual bool + type ForemanMedia struct + OSFamily string + OperatingSystemIds []int + Path string + func (fm *ForemanMedia) UnmarshalJSON(b []byte) error + type ForemanModel struct + HardwareModel string + Info string + VendorClass string + type ForemanObject struct + CreatedAt string + Id int + Name string + UpdatedAt string + type ForemanOperatingSystem struct + Description string + Family string + Major string + Minor string + PasswordHash string + ReleaseName string + Title string + type ForemanPartitionTable struct + AuditComment string + HostIds []int + HostgroupIds []int + Layout string + Locked bool + OSFamily string + OperatingSystemIds []int + Snippet bool + func (ft *ForemanPartitionTable) UnmarshalJSON(b []byte) error + type ForemanProvisioningTemplate struct + AuditComment string + Locked bool + OperatingSystemIds []int + Snippet bool + Template string + TemplateCombinationsAttributes []ForemanTemplateCombinationAttribute + TemplateKindId int + func (ft *ForemanProvisioningTemplate) UnmarshalJSON(b []byte) error + func (ft ForemanProvisioningTemplate) MarshalJSON() ([]byte, error) + type ForemanSmartProxy struct + URL string + type ForemanSubnet struct + BootMode string + DnsPrimary string + DnsSecondary string + From string + Gateway string + Ipam string + Mask string + Network string + To string + type ForemanTemplateCombinationAttribute struct + Destroy bool + EnvironmentId int + HostgroupId int + Id int + type ForemanTemplateKind struct + type QueryResponse struct + Page int + PerPage int + Results []interface{} + Search string + Sort QueryResponseSort + Subtotal int + Total int + type QueryResponseSort struct + By string + Order string + type Server struct + URL url.URL