The principal purpose of the California Rehabilitation Center shall be the receiving, control, confinement, employment, education, treatment and rehabilitation of persons under the custody of the Department of Corrections or any agency thereof who are addicted to the use of narcotics or are in imminent danger of becoming so addicted.
Ca. Welf. and Inst. Code § 3301